summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2021-05-17 09:21:10 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-05-17 09:31:10 +0200
commit509306b077f4830ffb15ac94caee67b03828db0e (patch)
tree07ee30dc4affd3fc235bcc7e319c45b3ab5998ff /arch/arm
parent031425f64148a4c6a087c476911506cd99efab5c (diff)
downloadbarebox-509306b077f4830ffb15ac94caee67b03828db0e.tar.gz
barebox-509306b077f4830ffb15ac94caee67b03828db0e.tar.xz
ARM: i.MX: Remove KaRo TX51 board support
So far nobody cared enough to convert the board to multiimage support. Given that nobody seems to care for this board remove it and reduce the number of defconfigs by one. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/Makefile1
-rw-r--r--arch/arm/boards/Makefile1
-rw-r--r--arch/arm/boards/karo-tx51/Makefile2
-rw-r--r--arch/arm/boards/karo-tx51/env/config42
-rw-r--r--arch/arm/boards/karo-tx51/flash-header-karo-tx51.imxcfg13
-rw-r--r--arch/arm/boards/karo-tx51/lowlevel.c11
-rw-r--r--arch/arm/boards/karo-tx51/tx51.c268
-rw-r--r--arch/arm/configs/tx51stk5_defconfig57
-rw-r--r--arch/arm/mach-imx/Kconfig7
9 files changed, 0 insertions, 402 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index a46d9d6bde..f4b0e8d6b6 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -243,7 +243,6 @@ barebox.imximg: $(KBUILD_BINARY) FORCE
boarddir = $(srctree)/arch/arm/boards
imxcfg-$(CONFIG_MACH_FREESCALE_MX53_SMD) += $(boarddir)/freescale-mx53-smd/flash-header.imxcfg
-imxcfg-$(CONFIG_MACH_TX51) += $(boarddir)/karo-tx51/flash-header-karo-tx51.imxcfg
imxcfg-$(CONFIG_MACH_EUKREA_CPUIMX51SD) += $(boarddir)/eukrea_cpuimx51/flash-header.imxcfg
imxcfg-$(CONFIG_MACH_FREESCALE_MX25_3STACK) += $(boarddir)/freescale-mx25-3ds/flash-header.imxcfg
imxcfg-$(CONFIG_MACH_FREESCALE_MX35_3STACK) += $(boarddir)/freescale-mx35-3ds/flash-header.imxcfg
diff --git a/arch/arm/boards/Makefile b/arch/arm/boards/Makefile
index 1441264dfa..5713ef9e51 100644
--- a/arch/arm/boards/Makefile
+++ b/arch/arm/boards/Makefile
@@ -149,7 +149,6 @@ obj-$(CONFIG_MACH_TQMA6X) += tqma6x/
obj-$(CONFIG_MACH_TURRIS_OMNIA) += turris-omnia/
obj-$(CONFIG_MACH_TX25) += karo-tx25/
obj-$(CONFIG_MACH_TX28) += karo-tx28/
-obj-$(CONFIG_MACH_TX51) += karo-tx51/
obj-$(CONFIG_MACH_TX53) += karo-tx53/
obj-$(CONFIG_MACH_TX6X) += karo-tx6x/
obj-$(CONFIG_MACH_UDOO) += udoo/
diff --git a/arch/arm/boards/karo-tx51/Makefile b/arch/arm/boards/karo-tx51/Makefile
deleted file mode 100644
index 5afc8e23e0..0000000000
--- a/arch/arm/boards/karo-tx51/Makefile
+++ /dev/null
@@ -1,2 +0,0 @@
-obj-y += tx51.o
-lwl-y += lowlevel.o
diff --git a/arch/arm/boards/karo-tx51/env/config b/arch/arm/boards/karo-tx51/env/config
deleted file mode 100644
index 755eaec2c1..0000000000
--- a/arch/arm/boards/karo-tx51/env/config
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-machine=tx51
-
-# use 'dhcp' to do dhcp in barebox and in kernel
-# use 'none' if you want to skip kernel ip autoconfiguration
-ip=dhcp
-
-
-# or set your networking parameters here
-#eth0.ipaddr=a.b.c.d
-#eth0.ethaddr=de:ad:be:ef:00:00
-#eth0.netmask=a.b.c.d
-#eth0.serverip=a.b.c.d
-#eth0.gateway=a.b.c.d
-
-# can be either 'nfs', 'tftp', 'nor' or 'nand'
-kernel_loc=tftp
-# can be either 'net', 'nor', 'nand' or 'initrd'
-rootfs_loc=net
-
-# can be either 'jffs2' or 'ubifs'
-rootfs_type=ubifs
-rootfsimage=root-$machine.$rootfs_type
-
-kernelimage=zImage_$machine
-#kernelimage=uImage-$machine
-#kernelimage=Image-$machine
-#kernelimage=Image-$machine.lzo
-kernel_part=nand0.kernel
-
-#nfsroot="$serverip:/srv/root"
-
-autoboot_timeout=3
-
-bootargs="console=ttymxc0,115200"
-
-nand_device=mxc_nand
-nand_parts="256k(barebox)ro,256k(bareboxenv),4M@0xc00000(kernel),64M(rootfs),-(rootfs_data)"
-
-# set a fancy prompt (if support is compiled in)
-PS1="\e[1;32mbarebox@\e[1;31mtx51:\w\e[0m "
diff --git a/arch/arm/boards/karo-tx51/flash-header-karo-tx51.imxcfg b/arch/arm/boards/karo-tx51/flash-header-karo-tx51.imxcfg
deleted file mode 100644
index 4aaa75a0ea..0000000000
--- a/arch/arm/boards/karo-tx51/flash-header-karo-tx51.imxcfg
+++ /dev/null
@@ -1,13 +0,0 @@
-soc imx51
-loadaddr 0x90000000
-ivtofs 0x400
-wm 32 0x83fd9000 0x80000000
-wm 32 0x83fd9014 0x04008008
-wm 32 0x83fd9014 0x00008010
-wm 32 0x83fd9014 0x00008010
-wm 32 0x83fd9014 0x00338018
-wm 32 0x83fd9000 0xb2220000
-wm 32 0x83fd9004 0xb08564a9
-wm 32 0x83fd9034 0x20020000
-wm 32 0x83fd9010 0x000a0080
-wm 32 0x83fd9014 0x00000000
diff --git a/arch/arm/boards/karo-tx51/lowlevel.c b/arch/arm/boards/karo-tx51/lowlevel.c
deleted file mode 100644
index 6762fdad4b..0000000000
--- a/arch/arm/boards/karo-tx51/lowlevel.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <common.h>
-#include <mach/esdctl.h>
-#include <mach/generic.h>
-#include <asm/barebox-arm-head.h>
-
-void __naked barebox_arm_reset_vector(uint32_t r0, uint32_t r1, uint32_t r2)
-{
- imx5_cpu_lowlevel_init();
- arm_setup_stack(0x20000000);
- imx51_barebox_entry(NULL);
-}
diff --git a/arch/arm/boards/karo-tx51/tx51.c b/arch/arm/boards/karo-tx51/tx51.c
deleted file mode 100644
index 23088e62f2..0000000000
--- a/arch/arm/boards/karo-tx51/tx51.c
+++ /dev/null
@@ -1,268 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0-or-later
-// SPDX-FileCopyrightText: 2007 Sascha Hauer, Pengutronix
-// SPDX-FileCopyrightText: 2012 Christian Kapeller <christian.kapeller@cmotion.eu>
-
-#include <common.h>
-#include <init.h>
-#include <environment.h>
-#include <mach/imx51-regs.h>
-#include <platform_data/eth-fec.h>
-#include <gpio.h>
-#include <asm/armlinux.h>
-#include <generated/mach-types.h>
-#include <partition.h>
-#include <fs.h>
-#include <fcntl.h>
-#include <nand.h>
-#include <spi/spi.h>
-#include <io.h>
-#include <asm/mmu.h>
-#include <mach/imx5.h>
-#include <mach/imx-nand.h>
-#include <mach/spi.h>
-#include <mach/generic.h>
-#include <mach/iomux-mx51.h>
-#include <mach/devices-imx51.h>
-#include <mach/iim.h>
-
-
-#define STK5_MX51_PAD_DISPB2_SER_RS__GPIO3_8 \
- IOMUX_PAD(0x6C8, 0x2C8, 4, 0x994, 1, PAD_CTL_PKE | PAD_CTL_PUE)
-
-#define STK5_MX51_PAD_DISPB2_SER_DIO__GPIO3_6 \
- IOMUX_PAD(0x6c0, 0x2c0, 4, 0x098c, 1, 0)
-
-static struct fec_platform_data fec_info = {
- .xcv_type = PHY_INTERFACE_MODE_MII,
-};
-
-struct imx_nand_platform_data nand_info = {
- .width = 1,
- .hw_ecc = 1,
- .flash_bbt = 1,
-};
-
-struct gpio_led tx51_leds[] = {
- {
- .led = { .name = "GPIO-LED", },
- .gpio = IMX_GPIO_NR(4,10),
- .active_low = 0,
- },
-};
-
-static iomux_v3_cfg_t tx51_pads[] = {
- /*UART1*/
- MX51_PAD_UART1_RXD__UART1_RXD,
- MX51_PAD_UART1_TXD__UART1_TXD,
- MX51_PAD_UART1_CTS__UART1_CTS,
- MX51_PAD_UART1_RTS__UART1_RTS,
-
- /* (e)CSPI */
- MX51_PAD_CSPI1_MOSI__ECSPI1_MOSI,
- MX51_PAD_CSPI1_MISO__ECSPI1_MISO,
- MX51_PAD_CSPI1_SCLK__ECSPI1_SCLK,
- MX51_PAD_CSPI1_RDY__ECSPI1_RDY,
-
- /* (e)CSPI chip select lines */
- MX51_PAD_CSPI1_SS0__GPIO4_24,
- MX51_PAD_CSPI1_SS1__GPIO4_25,
-
-#ifdef CONFIG_MCI_IMX_ESDHC
- /* eSDHC 1 */
- MX51_PAD_SD1_CMD__SD1_CMD,
- MX51_PAD_SD1_CLK__SD1_CLK,
- MX51_PAD_SD1_DATA0__SD1_DATA0,
- MX51_PAD_SD1_DATA1__SD1_DATA1,
- MX51_PAD_SD1_DATA2__SD1_DATA2,
- MX51_PAD_SD1_DATA3__SD1_DATA3,
-
- /* SD1 card detect */
- STK5_MX51_PAD_DISPB2_SER_RS__GPIO3_8,
-
- /* eSDHC 2 */
- MX51_PAD_SD2_CMD__SD2_CMD,
- MX51_PAD_SD2_CLK__SD2_CLK,
- MX51_PAD_SD2_DATA0__SD2_DATA0,
- MX51_PAD_SD2_DATA1__SD2_DATA1,
- MX51_PAD_SD2_DATA2__SD2_DATA2,
- MX51_PAD_SD2_DATA3__SD2_DATA3,
-
- /* SD2 card detect */
- STK5_MX51_PAD_DISPB2_SER_DIO__GPIO3_6,
-#endif
-
- /* SW controlled LED on STK5 baseboard */
- MX51_PAD_CSI2_D13__GPIO4_10,
-
- /* unuseable pads configured as GPIO */
- MX51_PAD_GPIO1_1__GPIO1_1,
- MX51_PAD_GPIO1_0__GPIO1_0,
-};
-
-static int spi_0_cs[] = {
- IMX_GPIO_NR(4, 24),
- IMX_GPIO_NR(4, 25),
-};
-
-static struct spi_imx_master tx51_spi_0_data = {
- .chipselect = spi_0_cs,
- .num_chipselect = ARRAY_SIZE(spi_0_cs),
-};
-
-static const struct spi_board_info mx51_tx51_spi_board_info[] = {};
-
-static struct tx51_fec_gpio_setup {
- iomux_v3_cfg_t pad;
- unsigned group:4,
- shift:5,
- level:1;
-} tx51_fec_gpios[] = {
- { MX51_PAD_EIM_A20__GPIO2_14, 2, 14, 0 }, /* PHY reset */
- { MX51_PAD_GPIO1_3__GPIO1_3, 1, 3, 0 }, /* PHY power enable */
- { MX51_PAD_NANDF_CS3__GPIO3_19, 3, 19, 0 }, /* MDC */
- { MX51_PAD_EIM_EB2__GPIO2_22, 2, 22, 0 }, /* MDIO */
- { MX51_PAD_NANDF_RB3__GPIO3_11, 3, 11, 0 }, /* RX_CLK */
- { MX51_PAD_NANDF_D11__GPIO3_29, 3, 29, 0 }, /* RX_DV */
- { MX51_PAD_NANDF_D9__GPIO3_31, 3, 31, 1 }, /* RXD0/Mode0 */
- { MX51_PAD_EIM_EB3__GPIO2_23, 2, 23, 1 }, /* RXD1/Mode1 */
- { MX51_PAD_EIM_CS2__GPIO2_27, 2, 27, 1 }, /* RXD2/Mode2 */
- { MX51_PAD_EIM_CS3__GPIO2_28, 2, 28, 1 }, /* RXD3/nINTSEL */
- { MX51_PAD_EIM_CS4__GPIO2_29, 2, 29, 0 }, /* RX_ER/RXD4 */
- { MX51_PAD_NANDF_RDY_INT__GPIO3_24, 3, 24, 0 }, /* TX_CLK */
- { MX51_PAD_NANDF_CS7__GPIO3_23, 3, 23, 0 }, /* TX_EN */
- { MX51_PAD_NANDF_D8__GPIO4_0, 4, 0, 0 }, /* TXD0 */
- { MX51_PAD_NANDF_CS4__GPIO3_20, 3, 20, 0 }, /* TXD1 */
- { MX51_PAD_NANDF_CS5__GPIO3_21, 3, 21, 0 }, /* TXD2 */
- { MX51_PAD_NANDF_CS6__GPIO3_22, 3, 22, 0 }, /* TXD3 */
- { MX51_PAD_NANDF_RB2__GPIO3_10, 3, 10, 0 }, /* COL/RMII/CRSDV */
- { MX51_PAD_EIM_CS5__GPIO2_30, 2, 30, 0 }, /* CRS */
- { MX51_PAD_NANDF_CS2__GPIO3_18, 3, 18, 0 }, /* nINT/TX_ER/TXD4 */
-};
-
-static iomux_v3_cfg_t tx51_fec_pads[] = {
- MX51_PAD_NANDF_CS2__FEC_TX_ER,
- MX51_PAD_NANDF_RDY_INT__FEC_TX_CLK,
- MX51_PAD_NANDF_CS3__FEC_MDC,
- MX51_PAD_NANDF_CS4__FEC_TDATA1,
- MX51_PAD_NANDF_CS5__FEC_TDATA2,
- MX51_PAD_NANDF_CS6__FEC_TDATA3,
- MX51_PAD_NANDF_CS7__FEC_TX_EN,
- MX51_PAD_NANDF_RB2__FEC_COL,
- MX51_PAD_NANDF_RB3__FEC_RX_CLK,
- MX51_PAD_NANDF_D8__FEC_TDATA0,
- MX51_PAD_NANDF_D9__FEC_RDATA0,
- MX51_PAD_NANDF_D11__FEC_RX_DV,
- MX51_PAD_EIM_EB2__FEC_MDIO,
- MX51_PAD_EIM_EB3__FEC_RDATA1,
- MX51_PAD_EIM_CS2__FEC_RDATA2,
- MX51_PAD_EIM_CS3__FEC_RDATA3,
- MX51_PAD_EIM_CS4__FEC_RX_ER,
- MX51_PAD_EIM_CS5__FEC_CRS,
-};
-
-#define TX51_FEC_PHY_RST IMX_GPIO_NR(2, 14)
-#define TX51_FEC_PHY_PWR IMX_GPIO_NR(1, 3)
-#define TX51_FEC_PHY_INT IMX_GPIO_NR(3, 18)
-
-static inline void tx51_fec_init(void)
-{
- int i;
-
- /* Configure LAN8700 pads as GPIO and set up
- * necessary strap options for PHY
- */
- for (i = 0; i < ARRAY_SIZE(tx51_fec_gpios); i++) {
- struct tx51_fec_gpio_setup *gs = &tx51_fec_gpios[i];
-
- gpio_direction_output(IMX_GPIO_NR(gs->group, gs->shift ), gs->level);
- mxc_iomux_v3_setup_pad(gs->pad);
- }
-
- /*
- *Turn on phy power, leave in reset state
- */
- gpio_set_value(TX51_FEC_PHY_PWR, 1);
-
- /*
- * Wait some time to let the phy activate the internal regulator
- */
- mdelay(10);
-
- /*
- * Deassert reset, phy latches the rest of bootstrap pins
- */
- gpio_set_value(TX51_FEC_PHY_RST, 1);
-
- /* LAN7800 has an internal Power On Reset (POR) signal (OR'ed with
- * the external RESET signal) which is deactivated 21ms after
- * power on and latches the strap options.
- * Delay for 22ms to ensure, that the internal POR is inactive
- * before reconfiguring the strap pins.
- */
- mdelay(22);
-
- /*
- * The phy is ready, now configure imx51 pads for fec operation
- */
- mxc_iomux_v3_setup_multiple_pads(tx51_fec_pads,
- ARRAY_SIZE(tx51_fec_pads));
-}
-
-static void tx51_leds_init(void)
-{
- int i;
-
- for (i = 0 ; i < ARRAY_SIZE(tx51_leds) ; i++)
- led_gpio_register(&tx51_leds[i]);
-}
-
-static int tx51_devices_init(void)
-{
-#ifdef CONFIG_MCI_IMX_ESDHC
- imx51_add_mmc0(NULL);
- imx51_add_mmc1(NULL);
-#endif
-
- imx51_add_nand(&nand_info);
-
- spi_register_board_info(mx51_tx51_spi_board_info,
- ARRAY_SIZE(mx51_tx51_spi_board_info));
- imx51_add_spi0(&tx51_spi_0_data);
-
- imx51_iim_register_fec_ethaddr();
- tx51_fec_init();
- imx51_add_fec(&fec_info);
-
- tx51_leds_init();
-
- //Linux Parameters
- armlinux_set_architecture(MACH_TYPE_TX51);
-
- return 0;
-}
-device_initcall(tx51_devices_init);
-
-static int tx51_part_init(void)
-{
- devfs_add_partition("nand0", 0x00000, 0x40000, DEVFS_PARTITION_FIXED, "self_raw");
- dev_add_bb_dev("self_raw", "self0");
- devfs_add_partition("nand0", 0x40000, 0x80000, DEVFS_PARTITION_FIXED, "env_raw");
- dev_add_bb_dev("env_raw", "env0");
-
- return 0;
-}
-late_initcall(tx51_part_init);
-
-static int tx51_console_init(void)
-{
- imx51_init_lowlevel(800);
- mxc_iomux_v3_setup_multiple_pads(tx51_pads, ARRAY_SIZE(tx51_pads));
-
- barebox_set_model("Ka-Ro TX51");
- barebox_set_hostname("tx51");
-
- imx51_add_uart0();
-
- return 0;
-}
-console_initcall(tx51_console_init);
diff --git a/arch/arm/configs/tx51stk5_defconfig b/arch/arm/configs/tx51stk5_defconfig
deleted file mode 100644
index 47e848c466..0000000000
--- a/arch/arm/configs/tx51stk5_defconfig
+++ /dev/null
@@ -1,57 +0,0 @@
-CONFIG_ARCH_IMX=y
-CONFIG_MACH_TX51=y
-CONFIG_IMX_IIM=y
-CONFIG_AEABI=y
-CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y
-CONFIG_ARM_UNWIND=y
-CONFIG_MMU=y
-CONFIG_MALLOC_TLSF=y
-CONFIG_KALLSYMS=y
-CONFIG_GLOB=y
-CONFIG_HUSH_FANCY_PROMPT=y
-CONFIG_CMDLINE_EDITING=y
-CONFIG_AUTO_COMPLETE=y
-CONFIG_BOOTM_SHOW_TYPE=y
-CONFIG_BOOTM_VERBOSE=y
-CONFIG_BOOTM_INITRD=y
-CONFIG_DEFAULT_ENVIRONMENT_GENERIC=y
-CONFIG_LONGHELP=y
-CONFIG_CMD_IOMEM=y
-CONFIG_CMD_MEMINFO=y
-CONFIG_CMD_GO=y
-CONFIG_CMD_RESET=y
-CONFIG_CMD_UIMAGE=y
-CONFIG_CMD_PARTITION=y
-CONFIG_CMD_EXPORT=y
-CONFIG_CMD_LOADENV=y
-CONFIG_CMD_PRINTENV=y
-CONFIG_CMD_MAGICVAR=y
-CONFIG_CMD_MAGICVAR_HELP=y
-CONFIG_CMD_SAVEENV=y
-CONFIG_CMD_UNCOMPRESS=y
-CONFIG_CMD_SLEEP=y
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_TFTP=y
-CONFIG_CMD_ECHO_E=y
-CONFIG_CMD_EDIT=y
-CONFIG_CMD_READLINE=y
-CONFIG_CMD_TIMEOUT=y
-CONFIG_CMD_FLASH=y
-CONFIG_CMD_GPIO=y
-CONFIG_CMD_LED=y
-CONFIG_CMD_TIME=y
-CONFIG_NET=y
-CONFIG_DRIVER_NET_FEC_IMX=y
-CONFIG_MTD=y
-CONFIG_NAND=y
-CONFIG_NAND_IMX=y
-CONFIG_MCI=y
-CONFIG_MCI_STARTUP=y
-CONFIG_MCI_IMX_ESDHC=y
-CONFIG_LED=y
-CONFIG_LED_GPIO=y
-CONFIG_FS_TFTP=y
-CONFIG_FS_FAT=y
-CONFIG_ZLIB=y
-CONFIG_LZO_DECOMPRESS=y
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index 38aee42bf2..0824a46d79 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -24,7 +24,6 @@ config ARCH_TEXT_BASE
default 0x87f00000 if MACH_GUF_CUPID
default 0x93d00000 if MACH_TX25
default 0x7ff00000 if MACH_TQMA53
- default 0x97f00000 if MACH_TX51
default 0x4fc00000 if MACH_SABRELITE
default 0x8fe00000 if MACH_TX53
default 0x97f00000 if MACH_EFIKA_MX_SMARTBOOK
@@ -747,12 +746,6 @@ config MACH_EUKREA_CPUIMX51SD
Say Y here if you are using Eukrea's CPUIMX51 equipped
with a Freescale i.MX51 Processor
-config MACH_TX51
- bool "Ka-Ro TX51"
- select ARCH_IMX51
- help
- Say Y here if you are using the Ka-Ro tx51 board
-
# ----------------------------------------------------------
comment "i.MX53 Boards"