[U-Boot] [PATCH] TI DaVinci: Driver for the davinci SPI controller

Mike Frysinger vapier at gentoo.org
Tue Jan 5 01:20:21 CET 2010


On Monday 04 January 2010 14:50:54 Dirk Behme wrote:
> struct mcspi {
> 	unsigned char res1[0x10];
> 	unsigned int sysconfig;		/* 0x10 */
> 	unsigned int sysstatus;		/* 0x14 */
> 	unsigned int irqstatus;		/* 0x18 */
> 	unsigned int irqenable;		/* 0x1C */
> 	unsigned int wakeupenable;	/* 0x20 */
> 	unsigned int syst;		/* 0x24 */
> 	unsigned int modulctrl;		/* 0x28 */
> 	struct mcspi_channel channel[4];
> }
> 
> regs = (struct mcspi *)OMAP3_MCSPI1_BASE;
> 
> writel(value, regs->modulctrl);

i think you mean &regs->modulctrl
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100104/1e061348/attachment.pgp 


More information about the U-Boot mailing list