diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-30 14:55:50 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-02-06 08:46:39 +0100 |
commit | c98b43f5a081bdb849c4bca6565c3189e5f0466c (patch) | |
tree | 8d6b663715821cf799a68f1043a414c791530e68 /arch/arm/mach-imx/devices.c | |
parent | 1ebee1e97ad43b4419e42d778d82059933405668 (diff) | |
download | barebox-c98b43f5a081bdb849c4bca6565c3189e5f0466c.tar.gz barebox-c98b43f5a081bdb849c4bca6565c3189e5f0466c.tar.xz |
mci: imx-esdhc: use dev_id
Avoid using cpu_is_* macros and use a dev_id instead. This will make it
easier to integrate the driver into another architecture.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/devices.c')
-rw-r--r-- | arch/arm/mach-imx/devices.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/devices.c b/arch/arm/mach-imx/devices.c index 11444ef1a6..a0609e282a 100644 --- a/arch/arm/mach-imx/devices.c +++ b/arch/arm/mach-imx/devices.c @@ -68,9 +68,14 @@ struct device_d *imx_add_mmc(void *base, int id, void *pdata) return imx_add_device("imx-mmc", id, base, 0x1000, pdata); } -struct device_d *imx_add_esdhc(void *base, int id, struct esdhc_platform_data *pdata) +struct device_d *imx_add_esdhc_imx25(void *base, int id, struct esdhc_platform_data *pdata) { - return imx_add_device("imx-esdhc", id, base, 0x1000, pdata); + return imx_add_device("imx25-esdhc", id, base, 0x1000, pdata); +} + +struct device_d *imx_add_esdhc_imx5(void *base, int id, struct esdhc_platform_data *pdata) +{ + return imx_add_device("imx5-esdhc", id, base, 0x1000, pdata); } struct device_d *imx_add_kpp(void *base, struct matrix_keymap_data *pdata) |