summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-mx31
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2011-01-19 22:46:33 (GMT)
committerAlbert Aribaud <albert.aribaud@free.fr>2011-02-01 23:54:43 (GMT)
commitac87c17d344ede52d8d421addf92cbb2e271f73e (patch)
treec8dfd730008e75ab907d68e10ce3f4fa0fb506aa /arch/arm/include/asm/arch-mx31
parentafaa9f65c24d815ed4f6133c800884921e051913 (diff)
downloadu-boot-fsl-qoriq-ac87c17d344ede52d8d421addf92cbb2e271f73e.tar.xz
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-mx31')
-rw-r--r--arch/arm/include/asm/arch-mx31/mx31-regs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx31/mx31-regs.h b/arch/arm/include/asm/arch-mx31/mx31-regs.h
index 46ed47c..105f7d8 100644
--- a/arch/arm/include/asm/arch-mx31/mx31-regs.h
+++ b/arch/arm/include/asm/arch-mx31/mx31-regs.h
@@ -64,6 +64,17 @@ struct gpio_regs {
u32 gpio_psr;
};
+struct cspi_regs {
+ u32 rxdata;
+ u32 txdata;
+ u32 ctrl;
+ u32 intr;
+ u32 dma;
+ u32 stat;
+ u32 period;
+ u32 test;
+};
+
#define IOMUX_PADNUM_MASK 0x1ff
#define IOMUX_PIN(gpionum, padnum) ((padnum) & IOMUX_PADNUM_MASK)