diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-09 11:39:56 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-13 10:36:43 +0100 |
commit | cee6e122ffc0b1fd6a90613f283626be899f812b (patch) | |
tree | a8c6f00fcc26412c14beb27bfee086de4ff37b8b /arch/arm/mach-omap/include/mach/am33xx-devices.h | |
parent | 582432593625e4248b72363c34d8dc64b75f0a59 (diff) | |
download | barebox-cee6e122ffc0b1fd6a90613f283626be899f812b.tar.gz barebox-cee6e122ffc0b1fd6a90613f283626be899f812b.tar.xz |
ARM am33xx: Add cpws convenience functions
This adds a function to register the cpws device and another one
to register the MAC addresses provided by the am33xx.
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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-omap/include/mach/am33xx-devices.h b/arch/arm/mach-omap/include/mach/am33xx-devices.h index c194303a58..fe9fba996b 100644 --- a/arch/arm/mach-omap/include/mach/am33xx-devices.h +++ b/arch/arm/mach-omap/include/mach/am33xx-devices.h @@ -6,6 +6,7 @@ #include <mach/am33xx-silicon.h> #include <mach/devices.h> #include <mach/omap_hsmmc.h> +#include <mach/cpsw.h> /* the device numbering is the same as in the TRM memory map (SPRUH73G) */ @@ -30,4 +31,10 @@ static inline struct device_d *am33xx_add_mmc0(struct omap_hsmmc_platform_data * AM33XX_MMCHS0_BASE, SZ_4K, IORESOURCE_MEM, pdata); } +static inline struct device_d *am33xx_add_cpsw(struct cpsw_platform_data *cpsw_data) +{ + return add_generic_device("cpsw", 0, NULL, + AM335X_CPSW_BASE, SZ_32K, IORESOURCE_MEM, cpsw_data); +} + #endif /* __MACH_OMAP3_DEVICES_H */ |