From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Gehrlein Date: Thu, 28 Oct 2010 08:44:49 +0200 Subject: [U-Boot] SPI on PPC MPC85xx In-Reply-To: <201010271002.31707.sr@denx.de> References: <1FDB1F4C-DCFF-404E-BF47-9D2F7A64E4C2@t1817.greatnet.de> <6A334922-E6EE-4DC3-AE44-F431570066C9@t1817.greatnet.de> <201010271002.31707.sr@denx.de> Message-ID: <4CC91BE1.4040707@tqs.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Matthias, Stefan Roese schrieb: > Hi Matthias, > > On Wednesday 27 October 2010 08:55:42 Matthias Dunda wrote: >> unfortunately I have to push this message, as I received no comment on it, >> yet. >> >> Is there a reason why the immap_t is not implemented for mpc85xx? >> >> I tried to copy it from mpc8360 but there are so many dependent mpc83xx >> datatypes in that struct that I postponed the work on that, because I >> think it'll lead to no success... >> >> Even trying to use the soft SPI fails, because first thing the code does is >> using that immap_t datatype... :-( >> >> Does anyone have a comment on this? > > I took a quick glance at this. There are different versions of SPI controllers > in the MPC8xxx SoC's. As it seems mpc8xxx_spi.c does "only" support the "CPU- > mode" (meaning non-CPM/QE-mode) Freescale SPI controllers. This controller is > implemented for example in the MPC8349. For your SoC (MPC8568) you need to > implement the QE-mode which is currently not supported. I didn't compare the MPC85xx QE SPI controller with the MPC8xx CPM SPI controller, but maybe a look at arch/powerpc/cpu/mpc8xx/spi.c could help you as a base for porting/creating a driver? -- Kind regards, Jens