diff options
author | Marco Felsch <m.felsch@pengutronix.de> | 2021-06-25 09:25:22 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-25 10:01:00 +0200 |
commit | c35c4270238dae6951c79a5e9295574328e1c220 (patch) | |
tree | a56d17b2d3967e0a5f2b5e02682edf54c9108201 /arch/arm/mach-imx | |
parent | 30a5e60e7d23fba9c5c12ff93c022a6c236dd01f (diff) | |
download | barebox-c35c4270238dae6951c79a5e9295574328e1c220.tar.gz barebox-c35c4270238dae6951c79a5e9295574328e1c220.tar.xz |
imx53: remove unused imx53_add_nand
The TX53 board was the last user of this function. This board was
converted to device tree based boot by commit 971366078893
("i.MX53/TX53: rework to dts based boot") so we can remove this
legacy helper.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20201021115813.31645-2-m.felsch@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.barebox.org/20210625072540.32717-2-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/include/mach/devices-imx53.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/arch/arm/mach-imx/include/mach/devices-imx53.h b/arch/arm/mach-imx/include/mach/devices-imx53.h index e5c257a40b..3d1e8a27a8 100644 --- a/arch/arm/mach-imx/include/mach/devices-imx53.h +++ b/arch/arm/mach-imx/include/mach/devices-imx53.h @@ -77,33 +77,6 @@ static inline struct device_d *imx53_add_mmc3(struct esdhc_platform_data *pdata) return imx_add_esdhc_imx5((void *)MX53_ESDHC4_BASE_ADDR, 3, pdata); } -static inline struct device_d *imx53_add_nand(struct imx_nand_platform_data *pdata) -{ - struct resource res[] = { - { - .start = MX53_NFC_BASE_ADDR, - .end = MX53_NFC_BASE_ADDR + SZ_4K - 1, - .flags = IORESOURCE_MEM, - }, { - .start = MX53_NFC_AXI_BASE_ADDR, - .end = MX53_NFC_AXI_BASE_ADDR + SZ_4K - 1, - .flags = IORESOURCE_MEM, - }, - }; - struct device_d *dev = xzalloc(sizeof(*dev)); - - dev->resource = xzalloc(sizeof(struct resource) * ARRAY_SIZE(res)); - memcpy(dev->resource, res, sizeof(struct resource) * ARRAY_SIZE(res)); - dev->num_resources = ARRAY_SIZE(res); - dev_set_name(dev, "imx_nand"); - dev->id = DEVICE_ID_DYNAMIC; - dev->platform_data = pdata; - - platform_device_register(dev); - - return dev; -} - static inline struct device_d *imx53_add_kpp(struct matrix_keymap_data *pdata) { return imx_add_kpp((void *)MX53_KPP_BASE_ADDR, pdata); |