aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2016-08-06 00:56:23 -0400
committerShawn Guo <shawnguo@kernel.org>2016-08-09 10:47:16 -0400
commit5081c3262f0466e52e6ce49453a5603fd85e048a (patch)
tree37e7f366a3ab314894309a7366e9ed46d83d49c8 /arch/arm
parent7705b5ed8adccd921423019e870df672fa423279 (diff)
ARM: i.MX: Remove i.MX1 Armadeus APF9328 board support
mach-apf9328.c can be replaced with devicetree equivalent: imx1-apf9328.dts, so remove the board file. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/configs/imx_v4_v5_defconfig1
-rw-r--r--arch/arm/configs/multi_v4t_defconfig1
-rw-r--r--arch/arm/mach-imx/Kconfig8
-rw-r--r--arch/arm/mach-imx/Makefile1
-rw-r--r--arch/arm/mach-imx/mach-apf9328.c148
5 files changed, 0 insertions, 159 deletions
diff --git a/arch/arm/configs/imx_v4_v5_defconfig b/arch/arm/configs/imx_v4_v5_defconfig
index 9083399a8ab1..2b2d589017b9 100644
--- a/arch/arm/configs/imx_v4_v5_defconfig
+++ b/arch/arm/configs/imx_v4_v5_defconfig
@@ -23,7 +23,6 @@ CONFIG_ARCH_MULTI_V5=y
23# CONFIG_ARCH_MULTI_V7 is not set 23# CONFIG_ARCH_MULTI_V7 is not set
24CONFIG_ARCH_MXC=y 24CONFIG_ARCH_MXC=y
25CONFIG_MACH_SCB9328=y 25CONFIG_MACH_SCB9328=y
26CONFIG_MACH_APF9328=y
27CONFIG_MACH_MX21ADS=y 26CONFIG_MACH_MX21ADS=y
28CONFIG_MACH_MX27ADS=y 27CONFIG_MACH_MX27ADS=y
29CONFIG_MACH_MX27_3DS=y 28CONFIG_MACH_MX27_3DS=y
diff --git a/arch/arm/configs/multi_v4t_defconfig b/arch/arm/configs/multi_v4t_defconfig
index 433eebb4103f..d744692f308d 100644
--- a/arch/arm/configs/multi_v4t_defconfig
+++ b/arch/arm/configs/multi_v4t_defconfig
@@ -21,7 +21,6 @@ CONFIG_INTEGRATOR_CM920T=y
21CONFIG_INTEGRATOR_CM922T_XA10=y 21CONFIG_INTEGRATOR_CM922T_XA10=y
22CONFIG_ARCH_MXC=y 22CONFIG_ARCH_MXC=y
23CONFIG_MACH_SCB9328=y 23CONFIG_MACH_SCB9328=y
24CONFIG_MACH_APF9328=y
25CONFIG_MACH_IMX1_DT=y 24CONFIG_MACH_IMX1_DT=y
26CONFIG_ARCH_NSPIRE=y 25CONFIG_ARCH_NSPIRE=y
27CONFIG_AEABI=y 26CONFIG_AEABI=y
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index ee9a318cab31..52dd9440f04f 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -109,14 +109,6 @@ config MACH_SCB9328
109 help 109 help
110 Say Y here if you are using a Synertronixx scb9328 board 110 Say Y here if you are using a Synertronixx scb9328 board
111 111
112config MACH_APF9328
113 bool "APF9328"
114 select IMX_HAVE_PLATFORM_IMX_I2C
115 select IMX_HAVE_PLATFORM_IMX_UART
116 select SOC_IMX1
117 help
118 Say Yes here if you are using the Armadeus APF9328 development board
119
120config MACH_IMX1_DT 112config MACH_IMX1_DT
121 bool "Support i.MX1 platforms from device tree" 113 bool "Support i.MX1 platforms from device tree"
122 select SOC_IMX1 114 select SOC_IMX1
diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile
index 9f5fffd62702..3bbd06d76cba 100644
--- a/arch/arm/mach-imx/Makefile
+++ b/arch/arm/mach-imx/Makefile
@@ -37,7 +37,6 @@ endif
37 37
38# i.MX1 based machines 38# i.MX1 based machines
39obj-$(CONFIG_MACH_SCB9328) += mach-scb9328.o 39obj-$(CONFIG_MACH_SCB9328) += mach-scb9328.o
40obj-$(CONFIG_MACH_APF9328) += mach-apf9328.o
41obj-$(CONFIG_MACH_IMX1_DT) += imx1-dt.o 40obj-$(CONFIG_MACH_IMX1_DT) += imx1-dt.o
42 41
43# i.MX21 based machines 42# i.MX21 based machines
diff --git a/arch/arm/mach-imx/mach-apf9328.c b/arch/arm/mach-imx/mach-apf9328.c
deleted file mode 100644
index ebbb5ab63529..000000000000
--- a/arch/arm/mach-imx/mach-apf9328.c
+++ /dev/null
@@ -1,148 +0,0 @@
1/*
2 * linux/arch/arm/mach-imx/mach-apf9328.c
3 *
4 * Copyright (c) 2005-2011 ARMadeus systems <support@armadeus.com>
5 *
6 * This work is based on mach-scb9328.c which is:
7 * Copyright (c) 2004 Sascha Hauer <saschahauer@web.de>
8 * Copyright (c) 2006-2008 Juergen Beisert <jbeisert@netscape.net>
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 *
14 */
15
16#include <linux/init.h>
17#include <linux/kernel.h>
18#include <linux/platform_device.h>
19#include <linux/mtd/physmap.h>
20#include <linux/dm9000.h>
21#include <linux/gpio.h>
22#include <linux/i2c.h>
23
24#include <asm/mach-types.h>
25#include <asm/mach/arch.h>
26#include <asm/mach/time.h>
27
28#include "common.h"
29#include "devices-imx1.h"
30#include "hardware.h"
31#include "iomux-mx1.h"
32
33static const int apf9328_pins[] __initconst = {
34 /* UART1 */
35 PC9_PF_UART1_CTS,
36 PC10_PF_UART1_RTS,
37 PC11_PF_UART1_TXD,
38 PC12_PF_UART1_RXD,
39 /* UART2 */
40 PB28_PF_UART2_CTS,
41 PB29_PF_UART2_RTS,
42 PB30_PF_UART2_TXD,
43 PB31_PF_UART2_RXD,
44 /* I2C */
45 PA15_PF_I2C_SDA,
46 PA16_PF_I2C_SCL,
47};
48
49/*
50 * The APF9328 can have up to 32MB NOR Flash
51 */
52static struct resource flash_resource = {
53 .start = MX1_CS0_PHYS,
54 .end = MX1_CS0_PHYS + SZ_32M - 1,
55 .flags = IORESOURCE_MEM,
56};
57
58static struct physmap_flash_data apf9328_flash_data = {
59 .width = 2,
60};
61
62static struct platform_device apf9328_flash_device = {
63 .name = "physmap-flash",
64 .id = 0,
65 .dev = {
66 .platform_data = &apf9328_flash_data,
67 },
68 .resource = &flash_resource,
69 .num_resources = 1,
70};
71
72/*
73 * APF9328 has a DM9000 Ethernet controller
74 */
75static struct dm9000_plat_data dm9000_setup = {
76 .flags = DM9000_PLATF_16BITONLY
77};
78
79static struct resource dm9000_resources[] = {
80 {
81 .start = MX1_CS4_PHYS + 0x00C00000,
82 .end = MX1_CS4_PHYS + 0x00C00001,
83 .flags = IORESOURCE_MEM,
84 }, {
85 .start = MX1_CS4_PHYS + 0x00C00002,
86 .end = MX1_CS4_PHYS + 0x00C00003,
87 .flags = IORESOURCE_MEM,
88 }, {
89 /* irq number is run-time assigned */
90 .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
91 },
92};
93
94static struct platform_device dm9000x_device = {
95 .name = "dm9000",
96 .id = 0,
97 .num_resources = ARRAY_SIZE(dm9000_resources),
98 .resource = dm9000_resources,
99 .dev = {
100 .platform_data = &dm9000_setup,
101 }
102};
103
104static const struct imxuart_platform_data uart1_pdata __initconst = {
105 .flags = IMXUART_HAVE_RTSCTS,
106};
107
108static const struct imxi2c_platform_data apf9328_i2c_data __initconst = {
109 .bitrate = 100000,
110};
111
112static struct platform_device *devices[] __initdata = {
113 &apf9328_flash_device,
114 &dm9000x_device,
115};
116
117static void __init apf9328_init(void)
118{
119 imx1_soc_init();
120
121 mxc_gpio_setup_multiple_pins(apf9328_pins,
122 ARRAY_SIZE(apf9328_pins),
123 "APF9328");
124
125 imx1_add_imx_uart0(NULL);
126 imx1_add_imx_uart1(&uart1_pdata);
127
128 imx1_add_imx_i2c(&apf9328_i2c_data);
129
130 dm9000_resources[2].start = gpio_to_irq(IMX_GPIO_NR(2, 14));
131 dm9000_resources[2].end = gpio_to_irq(IMX_GPIO_NR(2, 14));
132 platform_add_devices(devices, ARRAY_SIZE(devices));
133}
134
135static void __init apf9328_timer_init(void)
136{
137 mx1_clocks_init(32768);
138}
139
140MACHINE_START(APF9328, "Armadeus APF9328")
141 /* Maintainer: Gwenhael Goavec-Merou, ARMadeus Systems */
142 .map_io = mx1_map_io,
143 .init_early = imx1_init_early,
144 .init_irq = mx1_init_irq,
145 .init_time = apf9328_timer_init,
146 .init_machine = apf9328_init,
147 .restart = mxc_restart,
148MACHINE_END