Skip to content

Commit 7356420

Browse files
Fabio EstevamShawn Guo
authored andcommitted
ARM: imx: Remove mx508 support
Only mx508 based board is mach-mx50_rdp and it has been marked as BROKEN for several releases. mx508 currently lacks clock support. In case someone needs to add mx508 support back, then the recommended approach is to use device tree. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
1 parent d0ab36c commit 7356420

19 files changed

Lines changed: 9 additions & 1703 deletions

‎arch/arm/Kconfig.debug‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,12 @@ choice
219219
Say Y here if you want kernel low-level debugging support
220220
on i.MX51.
221221

222-
config DEBUG_IMX50_IMX53_UART
223-
bool "i.MX50 and i.MX53 Debug UART"
224-
depends on SOC_IMX50 || SOC_IMX53
222+
config DEBUG_IMX53_UART
223+
bool "i.MX53 Debug UART"
224+
depends on SOC_IMX53
225225
help
226226
Say Y here if you want kernel low-level debugging support
227-
on i.MX50 or i.MX53.
227+
on i.MX53.
228228

229229
config DEBUG_IMX6Q_UART
230230
bool "i.MX6Q Debug UART"
@@ -497,7 +497,7 @@ config DEBUG_LL_INCLUDE
497497
DEBUG_IMX21_IMX27_UART || \
498498
DEBUG_IMX31_IMX35_UART || \
499499
DEBUG_IMX51_UART || \
500-
DEBUG_IMX50_IMX53_UART ||\
500+
DEBUG_IMX53_UART ||\
501501
DEBUG_IMX6Q_UART
502502
default "debug/highbank.S" if DEBUG_HIGHBANK_UART
503503
default "debug/mvebu.S" if DEBUG_MVEBU_UART

‎arch/arm/include/debug/imx.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define UART_PADDR 0x43f90000
3535
#elif defined (CONFIG_DEBUG_IMX51_UART)
3636
#define UART_PADDR 0x73fbc000
37-
#elif defined (CONFIG_DEBUG_IMX50_IMX53_UART)
37+
#elif defined (CONFIG_DEBUG_IMX53_UART)
3838
#define UART_PADDR 0x53fbc000
3939
#elif defined (CONFIG_DEBUG_IMX6Q_UART)
4040
#define UART_PADDR IMX6Q_DEBUG_UART_BASE

‎arch/arm/mach-imx/Kconfig‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ config MACH_MX27
9595
config ARCH_MX5
9696
bool
9797

98-
config ARCH_MX50
99-
bool
100-
10198
config ARCH_MX51
10299
bool
103100

@@ -164,11 +161,6 @@ config SOC_IMX5
164161
select CPU_V7
165162
select MXC_TZIC
166163

167-
config SOC_IMX50
168-
bool
169-
select ARCH_MX50
170-
select SOC_IMX5
171-
172164
config SOC_IMX51
173165
bool
174166
select ARCH_MX5
@@ -738,20 +730,6 @@ endif
738730

739731
if ARCH_MULTI_V7
740732

741-
comment "i.MX5 platforms:"
742-
743-
config MACH_MX50_RDP
744-
bool "Support MX50 reference design platform"
745-
depends on BROKEN
746-
select IMX_HAVE_PLATFORM_IMX_I2C
747-
select IMX_HAVE_PLATFORM_IMX_UART
748-
select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
749-
select IMX_HAVE_PLATFORM_SPI_IMX
750-
select SOC_IMX50
751-
help
752-
Include support for MX50 reference design platform (RDP) board. This
753-
includes specific configurations for the board and its peripherals.
754-
755733
comment "i.MX51 machines:"
756734

757735
config MACH_IMX51_DT

‎arch/arm/mach-imx/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ endif
104104
obj-$(CONFIG_MACH_MX51_BABBAGE) += mach-mx51_babbage.o
105105
obj-$(CONFIG_MACH_EUKREA_CPUIMX51SD) += mach-cpuimx51sd.o
106106
obj-$(CONFIG_MACH_EUKREA_MBIMXSD51_BASEBOARD) += eukrea_mbimxsd51-baseboard.o
107-
obj-$(CONFIG_MACH_MX50_RDP) += mach-mx50_rdp.o
108107

109108
obj-$(CONFIG_MACH_IMX51_DT) += imx51-dt.o
110109
obj-$(CONFIG_SOC_IMX53) += mach-imx53.o

‎arch/arm/mach-imx/Makefile.boot‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ zreladdr-$(CONFIG_SOC_IMX35) += 0x80008000
2222
params_phys-$(CONFIG_SOC_IMX35) := 0x80000100
2323
initrd_phys-$(CONFIG_SOC_IMX35) := 0x80800000
2424

25-
zreladdr-$(CONFIG_SOC_IMX50) += 0x70008000
26-
params_phys-$(CONFIG_SOC_IMX50) := 0x70000100
27-
initrd_phys-$(CONFIG_SOC_IMX50) := 0x70800000
28-
2925
zreladdr-$(CONFIG_SOC_IMX51) += 0x90008000
3026
params_phys-$(CONFIG_SOC_IMX51) := 0x90000100
3127
initrd_phys-$(CONFIG_SOC_IMX51) := 0x90800000

‎arch/arm/mach-imx/common.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ extern void mx25_map_io(void);
2121
extern void mx27_map_io(void);
2222
extern void mx31_map_io(void);
2323
extern void mx35_map_io(void);
24-
extern void mx50_map_io(void);
2524
extern void mx51_map_io(void);
2625
extern void mx53_map_io(void);
2726
extern void imx1_init_early(void);
@@ -30,7 +29,6 @@ extern void imx25_init_early(void);
3029
extern void imx27_init_early(void);
3130
extern void imx31_init_early(void);
3231
extern void imx35_init_early(void);
33-
extern void imx50_init_early(void);
3432
extern void imx51_init_early(void);
3533
extern void imx53_init_early(void);
3634
extern void mxc_init_irq(void __iomem *);
@@ -41,7 +39,6 @@ extern void mx25_init_irq(void);
4139
extern void mx27_init_irq(void);
4240
extern void mx31_init_irq(void);
4341
extern void mx35_init_irq(void);
44-
extern void mx50_init_irq(void);
4542
extern void mx51_init_irq(void);
4643
extern void mx53_init_irq(void);
4744
extern void imx1_soc_init(void);
@@ -50,7 +47,6 @@ extern void imx25_soc_init(void);
5047
extern void imx27_soc_init(void);
5148
extern void imx31_soc_init(void);
5249
extern void imx35_soc_init(void);
53-
extern void imx50_soc_init(void);
5450
extern void imx51_soc_init(void);
5551
extern void imx51_init_late(void);
5652
extern void imx53_init_late(void);
@@ -109,7 +105,6 @@ void tzic_handle_irq(struct pt_regs *);
109105
#define imx27_handle_irq avic_handle_irq
110106
#define imx31_handle_irq avic_handle_irq
111107
#define imx35_handle_irq avic_handle_irq
112-
#define imx50_handle_irq tzic_handle_irq
113108
#define imx51_handle_irq tzic_handle_irq
114109
#define imx53_handle_irq tzic_handle_irq
115110
#define imx6q_handle_irq gic_handle_irq

‎arch/arm/mach-imx/cpu-imx5.c‎

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
static int mx5_cpu_rev = -1;
2323

2424
#define IIM_SREV 0x24
25-
#define MX50_HW_ADADIG_DIGPROG 0xB0
2625

2726
static int get_mx51_srev(void)
2827
{
@@ -108,41 +107,3 @@ int mx53_revision(void)
108107
return mx5_cpu_rev;
109108
}
110109
EXPORT_SYMBOL(mx53_revision);
111-
112-
static int get_mx50_srev(void)
113-
{
114-
void __iomem *anatop = ioremap(MX50_ANATOP_BASE_ADDR, SZ_8K);
115-
u32 rev;
116-
117-
if (!anatop) {
118-
mx5_cpu_rev = -EINVAL;
119-
return 0;
120-
}
121-
122-
rev = readl(anatop + MX50_HW_ADADIG_DIGPROG);
123-
rev &= 0xff;
124-
125-
iounmap(anatop);
126-
if (rev == 0x0)
127-
return IMX_CHIP_REVISION_1_0;
128-
else if (rev == 0x1)
129-
return IMX_CHIP_REVISION_1_1;
130-
return 0;
131-
}
132-
133-
/*
134-
* Returns:
135-
* the silicon revision of the cpu
136-
* -EINVAL - not a mx50
137-
*/
138-
int mx50_revision(void)
139-
{
140-
if (!cpu_is_mx50())
141-
return -EINVAL;
142-
143-
if (mx5_cpu_rev == -1)
144-
mx5_cpu_rev = get_mx50_srev();
145-
146-
return mx5_cpu_rev;
147-
}
148-
EXPORT_SYMBOL(mx50_revision);

‎arch/arm/mach-imx/devices-imx50.h‎

Lines changed: 0 additions & 33 deletions
This file was deleted.

‎arch/arm/mach-imx/devices/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config IMX_HAVE_PLATFORM_FEC
22
bool
3-
default y if ARCH_MX25 || SOC_IMX27 || SOC_IMX35 || SOC_IMX50 || SOC_IMX51 || SOC_IMX53
3+
default y if ARCH_MX25 || SOC_IMX27 || SOC_IMX35 || SOC_IMX51 || SOC_IMX53
44

55
config IMX_HAVE_PLATFORM_FLEXCAN
66
bool

‎arch/arm/mach-imx/devices/platform-fec.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ const struct imx_fec_data imx35_fec_data __initconst =
3535
imx_fec_data_entry_single(MX35, "imx27-fec");
3636
#endif
3737

38-
#ifdef CONFIG_SOC_IMX50
39-
/* i.mx50 has the i.mx25 type fec */
40-
const struct imx_fec_data imx50_fec_data __initconst =
41-
imx_fec_data_entry_single(MX50, "imx25-fec");
42-
#endif
43-
4438
#ifdef CONFIG_SOC_IMX51
4539
/* i.mx51 has the i.mx27 type fec */
4640
const struct imx_fec_data imx51_fec_data __initconst =

0 commit comments

Comments
 (0)