diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-11-19 14:04:12 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-11-22 15:35:12 +0100 |
commit | 186980340531bea3c98ff51c046e8a01d5892c84 (patch) | |
tree | 58fe43e38b4c78b1a547334dfd594d9a5f051cfc /arch/arm/mach-omap/include/mach/am33xx-devices.h | |
parent | 26c725874bc92ecf92885f86386da82d04a85b2c (diff) | |
download | barebox-186980340531bea3c98ff51c046e8a01d5892c84.tar.gz barebox-186980340531bea3c98ff51c046e8a01d5892c84.tar.xz |
spi: omap: encode register offset into device_id
The omap3 and omap4/am33xx spi cores differ in the offset of the
registers in the address space. Instead of encoding this into the
resources use the platform_device_id mechanism. This is done in
preparation for devicetree probe support where the address space
is in the devicetree and can't be adjusted.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-omap/include/mach/am33xx-devices.h')
-rw-r--r-- | arch/arm/mach-omap/include/mach/am33xx-devices.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap/include/mach/am33xx-devices.h b/arch/arm/mach-omap/include/mach/am33xx-devices.h index 669198023c..d2411a4fec 100644 --- a/arch/arm/mach-omap/include/mach/am33xx-devices.h +++ b/arch/arm/mach-omap/include/mach/am33xx-devices.h @@ -45,7 +45,7 @@ static inline struct device_d *am33xx_add_cpsw(struct cpsw_platform_data *cpsw_d static inline struct device_d *am33xx_add_spi(int id, resource_size_t start) { - return add_generic_device("omap3_spi", id, NULL, start + 0x100, SZ_4K - 0x100, + return add_generic_device("omap4-spi", id, NULL, start, SZ_4K, IORESOURCE_MEM, NULL); } |