From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dirk Behme Date: Sun, 07 Mar 2010 13:38:06 +0100 Subject: [U-Boot] OMAP3 SPI driver ( was Re: [PATCH] TI DaVinci: Driver for the davinci SPI controller) In-Reply-To: References: <1261554276-20449-1-git-send-email-sudhakar.raj@ti.com> <4B41B947.9090301@ge.com> <02fa01ca8d2a$91fe37a0$b5faa6e0$@raj@ti.com> <4B42469E.7070100@googlemail.com> Message-ID: <4B939E2E.10603@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Mansoor, On 05.03.2010 07:47, Mansoor wrote: > Dirk Behme googlemail.com> writes: > > > >> >> E.g. what I did for OMAP3 SPI driver: >> >> /* OMAP3 McSPI registers */ >> struct mcspi_channel { >> unsigned int chconf; /* 0x2C, 0x40, 0x54, 0x68 */ >> unsigned int chstat; /* 0x30, 0x44, 0x58, 0x6C */ >> unsigned int chctrl; /* 0x34, 0x48, 0x5C, 0x70 */ >> unsigned int tx; /* 0x38, 0x4C, 0x60, 0x74 */ >> unsigned int rx; /* 0x3C, 0x50, 0x64, 0x78 */ >> }; >> > > [...] > >> writel(value, regs->modulctrl); >> > > Hi Dirk, > > I could not find this code in any of the repositories. Could you share the > u-boot omap3 spi driver? I used the SPI driver for DaVinci (which this thread is about) as starting point for an U-Boot OMAP3 driver. The goal was to be able to access SPI ethernet on Zippy expansion board for Beagle. Unfortunately, I never found the time to finalize it. Please find my latest patch from beginning of January 2010 in attachment. I really hope it might help to finalize it! Many thanks for asking and best regards Dirk P.S.: You might notice that the patch contains changes for the SPI ethernet, too. This should be moved to a separate patch. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: omap3_spi_patch.txt Url: http://lists.denx.de/pipermail/u-boot/attachments/20100307/3ea76be9/attachment.txt