diff options
| author | Stefano Babic <sbabic@denx.de> | 2011-01-19 22:46:33 +0000 | 
|---|---|---|
| committer | Albert Aribaud <albert.aribaud@free.fr> | 2011-02-02 00:54:43 +0100 | 
| commit | ac87c17d344ede52d8d421addf92cbb2e271f73e (patch) | |
| tree | c8dfd730008e75ab907d68e10ce3f4fa0fb506aa /arch/arm/include/asm/arch-mx5/imx-regs.h | |
| parent | afaa9f65c24d815ed4f6133c800884921e051913 (diff) | |
| download | olio-uboot-2014.01-ac87c17d344ede52d8d421addf92cbb2e271f73e.tar.xz olio-uboot-2014.01-ac87c17d344ede52d8d421addf92cbb2e271f73e.zip | |
SPI: mxc_spi: replace fixed offsets with structures
This patch cleans driver code replacing all accesses
to registers with fixed offsets with a corresponding
structure.
Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/include/asm/arch-mx5/imx-regs.h')
| -rw-r--r-- | arch/arm/include/asm/arch-mx5/imx-regs.h | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/arch/arm/include/asm/arch-mx5/imx-regs.h b/arch/arm/include/asm/arch-mx5/imx-regs.h index 09b69f6b5..a1849f8c0 100644 --- a/arch/arm/include/asm/arch-mx5/imx-regs.h +++ b/arch/arm/include/asm/arch-mx5/imx-regs.h @@ -256,6 +256,18 @@ struct src {  	u32	simr;  }; +/* CSPI registers */ +struct cspi_regs { +	u32 rxdata; +	u32 txdata; +	u32 ctrl; +	u32 cfg; +	u32 intr; +	u32 dma; +	u32 stat; +	u32 period; +}; +  struct iim_regs {  	u32	stat;  	u32	statm; |