Add the i.MX23/i.MX28 architecure
Subsystems (4)
This patch adds the basic support for the i.MX23/i.MX28 architecture. These CPUs are branded with i.MX but they are mostly of type STMP378X from SigmaTel. So, they do not share most of their internal devices with the other i.MX CPUs. That's why I open a new sub architecture 'mach-stm'.
Comments are welcome.
Regards,
Juergen
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/4 Add the basic files for the i.MX23/i.MX28 familiy of CPUs
These CPUs are called "i.MX", but they are of type STM378x from SigmaTel. They do not share any devices with the other i.MX CPUs, so we need a separate architecute directory to handle them without an ifdef hell in the native i.MX files.
--- arch/arm/Kconfig | 5 + arch/arm/mach-stm/Kconfig | 32 ++ arch/arm/mach-stm/Makefile | 2 + arch/arm/mach-stm/clocksource-imx23.c | 82 +++++ arch/arm/mach-stm/imx23.c | 35 +++ arch/arm/mach-stm/include/mach/clock-imx23.h | 34 ++ arch/arm/mach-stm/include/mach/generic.h | 24 ++ arch/arm/mach-stm/include/mach/gpio.h | 29 ++ arch/arm/mach-stm/include/mach/imx-regs.h | 27 ++ arch/arm/mach-stm/include/mach/imx23-regs.h | 41 +++ arch/arm/mach-stm/include/mach/iomux-imx23.h | 424 ++++++++++++++++++++++++++ arch/arm/mach-stm/iomux-imx23.c | 117 +++++++ arch/arm/mach-stm/reset-imx23.c | 61 ++++ arch/arm/mach-stm/speed-imx23.c | 278 +++++++++++++++++ 14 files changed, 1191 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-stm/Kconfig create mode 100644 arch/arm/mach-stm/Makefile create mode 100644 arch/arm/mach-stm/clocksource-imx23.c create mode 100644 arch/arm/mach-stm/imx23.c create mode 100644 arch/arm/mach-stm/include/mach/clock-imx23.h create mode 100644 arch/arm/mach-stm/include/mach/generic.h create mode 100644 arch/arm/mach-stm/include/mach/gpio.h create mode 100644 arch/arm/mach-stm/include/mach/imx-regs.h create mode 100644 arch/arm/mach-stm/include/mach/imx23-regs.h create mode 100644 arch/arm/mach-stm/include/mach/iomux-imx23.h create mode 100644 arch/arm/mach-stm/iomux-imx23.c create mode 100644 arch/arm/mach-stm/reset-imx23.c create mode 100644 arch/arm/mach-stm/speed-imx23.c
arch/arm/Kconfig +5 -0
@@ -39,6 +39,10 @@ config ARCH_IMX bool "Freescale iMX-based" select GENERIC_GPIO +config ARCH_STM + bool "SigmaTel/FSL iMX-based" + select GENERIC_GPIO + config ARCH_NETX bool "Hilscher NetX based" select CPU_ARM926T
@@ -62,6 +66,7 @@ source arch/arm/cpu/Kconfig source arch/arm/mach-at91/Kconfig source arch/arm/mach-ep93xx/Kconfig source arch/arm/mach-imx/Kconfig +source arch/arm/mach-stm/Kconfig source arch/arm/mach-netx/Kconfig source arch/arm/mach-nomadik/Kconfig source arch/arm/mach-omap/Kconfig
arch/arm/mach-stm/Kconfig new file +32 -0
@@ -0,0 +1,32 @@ +if ARCH_STM + +config ARCH_TEXT_BASE + hex + +config BOARDINFO + +comment "SigmaTel/Freescale i.MX System-on-Chip" + +choice + prompt "Freescale i.MX Processor" + +config ARCH_IMX23 + bool "i.MX23" + select CPU_ARM926T + +endchoice + +if ARCH_IMX23 + +choice + prompt "i.MX23 Board Type" + +endchoice + +endif + +menu "Board specific settings " + +endmenu + +endif
arch/arm/mach-stm/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +obj-$(CONFIG_ARCH_IMX23) += speed-imx23.o imx23.o iomux-imx23.o clocksource-imx23.o reset-imx23.o +
arch/arm/mach-stm/clocksource-imx23.c new file +82 -0
82 lines not on this page · raw message
arch/arm/mach-stm/imx23.c new file +35 -0
@@ -0,0 +1,35 @@ +/* +* (C) Copyright 2010 Juergen Beisert - Pengutronix +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#include <common.h> +#include <command.h> + +extern void imx_dump_clocks (void ); + +static int do_clocks (struct command *cmdtp,int argc,char *argv[]) +{ +imx_dump_clocks (); + +return 0 ; +} + +BAREBOX_CMD_START (dump_clocks) + .cmd = do_clocks, + .usage ="show clock frequencies" , +BAREBOX_CMD_END
arch/arm/mach-stm/include/mach/clock-imx23.h new file +34 -0
@@ -0,0 +1,34 @@ +/* +* (C) Copyright 2010 Juergen Beisert - Pengutronix +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef ASM_ARCH_CLOCK_IMX23_H +#define ASM_ARCH_CLOCK_IMX23_H + +unsigned imx_get_mpllclk (void ); +unsigned imx_get_emiclk (void ); +unsigned imx_get_ioclk (void ); +unsigned imx_get_armclk (void ); +unsigned imx_get_hclk (void ); +unsigned imx_get_xclk (void ); +unsigned imx_get_sspclk (void ); +unsigned imx_set_sspclk (unsigned ,int ); +unsigned imx_set_ioclk (unsigned ); + +#endif /* ASM_ARCH_CLOCK_IMX23_H */ +
arch/arm/mach-stm/include/mach/generic.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* (C) Copyright 2010 Juergen Beisert - Pengutronix +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifdef CONFIG_ARCH_IMX23 +# define cpu_is_mx23 () (1) +#else +# define cpu_is_mx23 () (0) +#endif
arch/arm/mach-stm/include/mach/gpio.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* (C) Copyright 2010 Juergen Beisert - Pengutronix +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef __ASM_MACH_GPIO_H +#define __ASM_MACH_GPIO_H + +#if definedCONFIG_ARCH_IMX23 +# include <mach/iomux-imx23.h> +#endif + +void imx_gpio_mode (unsigned ); + +#endif /* __ASM_MACH_GPIO_H */
arch/arm/mach-stm/include/mach/imx-regs.h new file +27 -0
@@ -0,0 +1,27 @@ +/* +* (C) Copyright 2010 Juergen Beisert - Pengutronix +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef _IMX_REGS_H +# define _IMX_REGS_H + +#if definedCONFIG_ARCH_IMX23 +# include <mach/imx23-regs.h> +#endif + +#endif /* _IMX_REGS_H */
arch/arm/mach-stm/include/mach/imx23-regs.h new file +41 -0
41 lines not on this page · raw message
arch/arm/mach-stm/include/mach/iomux-imx23.h new file +424 -0
424 lines not on this page · raw message
arch/arm/mach-stm/iomux-imx23.c new file +117 -0
117 lines not on this page · raw message
arch/arm/mach-stm/reset-imx23.c new file +61 -0
61 lines not on this page · raw message
arch/arm/mach-stm/speed-imx23.c new file +278 -0
278 lines not on this page · raw message
Signature · 7 lines
1.7.2.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/4 Add the driver for the i.MX23 debug UART
In reply to Juergen BeisertThe i.MX23 comes with a special UART dedicated for debugging purposes. This one is mostly used for the console the user can reach.
--- drivers/serial/Kconfig | 5 + drivers/serial/Makefile | 1 + drivers/serial/stm-serial.c | 202 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 208 insertions(+), 0 deletions(-) create mode 100644 drivers/serial/stm-serial.c
drivers/serial/Kconfig +5 -0
@@ -18,6 +18,11 @@ config DRIVER_SERIAL_IMX default y bool "i.MX serial driver" +config DRIVER_SERIAL_STM378X + depends on ARCH_STM + default y + bool "i.MX23 serial driver" + config DRIVER_SERIAL_NETX depends on ARCH_NETX default y
drivers/serial/Makefile +1 -0
@@ -7,6 +7,7 @@ obj-$(CONFIG_DRIVER_SERIAL_ARM_DCC) += arm_dcc.o obj-$(CONFIG_SERIAL_AMBA_PL011) += amba-pl011.o obj-$(CONFIG_DRIVER_SERIAL_IMX) += serial_imx.o +obj-$(CONFIG_DRIVER_SERIAL_STM378X) += stm-serial.o obj-$(CONFIG_DRIVER_SERIAL_ATMEL) += atmel.o obj-$(CONFIG_DRIVER_SERIAL_NETX) += serial_netx.o obj-$(CONFIG_DRIVER_SERIAL_LINUX_COMSOLE) += linux_console.o
drivers/serial/stm-serial.c new file +202 -0
202 lines not on this page · raw message
Signature · 7 lines
1.7.2.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/4 Add the i.MX23-EVK platform (WIP)
In reply to Juergen BeisertNote: This is work in progress. Use with care.
--- arch/arm/Makefile | 2 + arch/arm/boards/freescale-mx23-evk/Makefile | 2 + arch/arm/boards/freescale-mx23-evk/config.h | 16 ++ arch/arm/boards/freescale-mx23-evk/mx23-evk.c | 80 +++++++++ arch/arm/configs/imx23evk_defconfig | 224 +++++++++++++++++++++++++ arch/arm/mach-stm/Kconfig | 7 + 6 files changed, 331 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boards/freescale-mx23-evk/Makefile create mode 100644 arch/arm/boards/freescale-mx23-evk/config.h create mode 100644 arch/arm/boards/freescale-mx23-evk/mx23-evk.c create mode 100644 arch/arm/configs/imx23evk_defconfig
arch/arm/Makefile +2 -0
@@ -41,6 +41,7 @@ CPPFLAGS += $(CFLAGS_ABI) $(arch-y) $(tune-y) machine-$(CONFIG_ARCH_AT91) := at91 machine-$(CONFIG_ARCH_EP93XX) := ep93xx machine-$(CONFIG_ARCH_IMX) := imx +machine-$(CONFIG_ARCH_STM) := stm machine-$(CONFIG_ARCH_NOMADIK) := nomadik machine-$(CONFIG_ARCH_NETX) := netx machine-$(CONFIG_ARCH_OMAP) := omap
@@ -80,6 +81,7 @@ board-$(CONFIG_MACH_PCM043) := pcm043 board-$(CONFIG_MACH_PM9263) := pm9263 board-$(CONFIG_MACH_SCB9328) := scb9328 board-$(CONFIG_MACH_NESO) := guf-neso +board-$(CONFIG_MACH_MX23EVK) := freescale-mx23-evk machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
arch/arm/boards/freescale-mx23-evk/Makefile new file +2 -0
@@ -0,0 +1,2 @@ +# +obj-y := mx23-evk.o
arch/arm/boards/freescale-mx23-evk/config.h new file +16 -0
@@ -0,0 +1,16 @@ +/* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/
arch/arm/boards/freescale-mx23-evk/mx23-evk.c new file +80 -0
80 lines not on this page · raw message
arch/arm/configs/imx23evk_defconfig new file +224 -0
224 lines not on this page · raw message
arch/arm/mach-stm/Kconfig +7 -0
@@ -2,8 +2,10 @@ if ARCH_STM config ARCH_TEXT_BASE hex + default 0x41000000 if MACH_MX23EVK config BOARDINFO + default "Freescale i.MX23-EVK" if MACH_MX23EVK comment "SigmaTel/Freescale i.MX System-on-Chip"
@@ -21,6 +23,11 @@ if ARCH_IMX23 choice prompt "i.MX23 Board Type" +config MACH_MX23EVK + bool "mx23-evk" + help + Say Y here if you are using the Freescale i.MX23-EVK board + endchoice endif
Signature · 7 lines
1.7.2.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
maintainerRe: [PATCH 3/4] Add the i.MX23-EVK platform (WIP)
Hi Jürgen,
can you regenerate the config with make savedefconfig please? Also applies to the chumby patch.
Sascha
Quoted 418 lines · Juergen Beisert
Note: This is work in progress. Use with care.
Signed-off-by Juergen Beisert <[email protected]>--- arch/arm/Makefile | 2 + arch/arm/boards/freescale-mx23-evk/Makefile | 2 + arch/arm/boards/freescale-mx23-evk/config.h | 16 ++ arch/arm/boards/freescale-mx23-evk/mx23-evk.c | 80 +++++++++ arch/arm/configs/imx23evk_defconfig | 224 +++++++++++++++++++++++++ arch/arm/mach-stm/Kconfig | 7 + 6 files changed, 331 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boards/freescale-mx23-evk/Makefile create mode 100644 arch/arm/boards/freescale-mx23-evk/config.h create mode 100644 arch/arm/boards/freescale-mx23-evk/mx23-evk.c create mode 100644 arch/arm/configs/imx23evk_defconfigarch/arm/Makefile +2
-0@@ -41,6 +41,7 @@ CPPFLAGS += $(CFLAGS_ABI) $(arch-y) $(tune-y) machine-$(CONFIG_ARCH_AT91) := at91 machine-$(CONFIG_ARCH_EP93XX) := ep93xx machine-$(CONFIG_ARCH_IMX) := imx +machine-$(CONFIG_ARCH_STM) := stm machine-$(CONFIG_ARCH_NOMADIK) := nomadik machine-$(CONFIG_ARCH_NETX) := netx machine-$(CONFIG_ARCH_OMAP) := omap@@ -80,6 +81,7 @@ board-$(CONFIG_MACH_PCM043) := pcm043 board-$(CONFIG_MACH_PM9263) := pm9263 board-$(CONFIG_MACH_SCB9328) := scb9328 board-$(CONFIG_MACH_NESO) := guf-neso +board-$(CONFIG_MACH_MX23EVK) := freescale-mx23-evk machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))arch/arm/boards/freescale-mx23-evk/Makefile new file +2
-0@@ -0,0 +1,2 @@ +# +obj-y := mx23-evk.oarch/arm/boards/freescale-mx23-evk/config.h new file +16
-0@@ -0,0 +1,16 @@ +/* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ arch/arm/boards/freescale-mx23-evk/mx23-evk.c new file +80
-0@@ -0,0 +1,80 @@ +/* +* (C) Copyright 2010 Juergen Beisert - Pengutronix +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#include <common.h> +#include <init.h> +#include <gpio.h> +#include <environment.h> +#include <asm/armlinux.h> +#include <generated/mach-types.h> +#include <mach/imx-regs.h> + +static struct memory_platform_data ram_pdata = { + .name ="ram0" , + .flags =DEVFS_RDWR , +}; + +static struct device_d sdram_dev = { + .name ="mem" , + .map_base =IMX_MEMORY_BASE , + .size =32 *1024 *1024 , + .platform_data = &ram_pdata, +}; + +static int mx23_evk_devices_init (void ) +{ +register_device (&sdram_dev); + +armlinux_add_dram (&sdram_dev); +armlinux_set_bootparams ((void *)(IMX_MEMORY_BASE +0x100 )); +armlinux_set_architecture (MACH_TYPE_MX23EVK ); + +return 0 ; +} + +device_initcall (mx23_evk_devices_init); + +static struct device_d mx23_evk_serial_device = { + .name ="stm_serial" , + .map_base =IMX_DBGUART_BASE , + .size =8192 , +}; + +static int mx23_evk_console_init (void ) +{ +return register_device (&mx23_evk_serial_device); +} + +console_initcall (mx23_evk_console_init); + +/** @page mx23_evk Freescale's i.MX23 evaluation kit + +This CPU card is based on an i.MX23 CPU. The card is shipped with: + +- 32 MiB synchronous dynamic RAM (mobile DDR type) +- ENC28j60 based network (over SPI) + +Memory layout when @b barebox is running: + +- 0x40000000 start of SDRAM +- 0x40000100 start of kernel's boot parameters +- below malloc area: stack area +- below barebox: malloc area +- 0x41000000 start of @b barebox +*/ arch/arm/configs/imx23evk_defconfig new file +224
-0@@ -0,0 +1,224 @@ +# +# Automatically generated make config: don't edit +# Linux barebox version: 2010.09.0 +# Thu Oct 7 16:36:33 2010 +# +# CONFIG_BOARD_LINKER_SCRIPT is not set +CONFIG_GENERIC_LINKER_SCRIPT=y +CONFIG_ARM=y + +# +# System Type +# +# CONFIG_ARCH_AT91 is not set +# CONFIG_ARCH_EP93XX is not set +# CONFIG_ARCH_IMX is not set +CONFIG_ARCH_STM=y +# CONFIG_ARCH_NETX is not set +# CONFIG_ARCH_NOMADIK is not set +# CONFIG_ARCH_OMAP is not set +# CONFIG_ARCH_S3C24xx is not set + +# +# Processor Type +# +CONFIG_CPU_32=y +CONFIG_CPU_ARM926T=y +CONFIG_CPU_32v5=y + +# +# processor features +# +CONFIG_ARCH_TEXT_BASE=0x42000000 +CONFIG_BOARDINFO="Chumby Falconwing" + +# +# SigmaTel/Freescale i.MX System-on-Chip +# +CONFIG_ARCH_IMX23=y +# CONFIG_MACH_MX23EVK is not set +CONFIG_MACH_CHUMBY=y + +# +# Board specific settings +# +CONFIG_AEABI=y + +# +# Arm specific settings +# +CONFIG_CMD_ARM_CPUINFO=y +CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=y +CONFIG_DEFCONFIG_LIST="$ARCH_DEFCONFIG" +CONFIG_GREGORIAN_CALENDER=y +CONFIG_HAS_KALLSYMS=y +CONFIG_HAS_MODULES=y +CONFIG_CMD_MEMORY=y +CONFIG_ENV_HANDLING=y +CONFIG_GENERIC_GPIO=y + +# +# General Settings +# +CONFIG_LOCALVERSION_AUTO=y + +# +# memory layout +# +CONFIG_HAVE_MMU=y +# CONFIG_MMU is not set +CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=y +CONFIG_TEXT_BASE=0x42000000 +CONFIG_HAVE_CONFIGURABLE_MEMORY_LAYOUT=y +CONFIG_MEMORY_LAYOUT_DEFAULT=y +# CONFIG_MEMORY_LAYOUT_FIXED is not set +CONFIG_STACK_SIZE=0x8000 +CONFIG_MALLOC_SIZE=0x400000 +CONFIG_BROKEN=y +# CONFIG_EXPERIMENTAL is not set +# CONFIG_KALLSYMS is not set +CONFIG_PROMPT="chumby:" +CONFIG_BAUDRATE=115200 +CONFIG_LONGHELP=y +CONFIG_CBSIZE=1024 +CONFIG_MAXARGS=16 +CONFIG_SHELL_HUSH=y +# CONFIG_SHELL_SIMPLE is not set +# CONFIG_GLOB is not set +CONFIG_PROMPT_HUSH_PS2="> " +# CONFIG_HUSH_FANCY_PROMPT is not set +CONFIG_CMDLINE_EDITING=y +CONFIG_AUTO_COMPLETE=y +# CONFIG_MENU is not set +# CONFIG_PASSWORD is not set +CONFIG_DYNAMIC_CRC_TABLE=y +CONFIG_ERRNO_MESSAGES=y +CONFIG_TIMESTAMP=y +CONFIG_CONSOLE_FULL=y +CONFIG_CONSOLE_ACTIVATE_FIRST=y +# CONFIG_OF_FLAT_TREE is not set +CONFIG_PARTITION=y +# CONFIG_DEFAULT_ENVIRONMENT is not set + +# +# Debugging +# +CONFIG_DEBUG_INFO=y +# CONFIG_ENABLE_FLASH_NOISE is not set +# CONFIG_ENABLE_PARTITION_NOISE is not set +# CONFIG_ENABLE_DEVICE_NOISE is not set + +# +# Commands +# + +# +# scripting +# +CONFIG_CMD_EDIT=y +CONFIG_CMD_SLEEP=y +CONFIG_CMD_SAVEENV=y +CONFIG_CMD_LOADENV=y +CONFIG_CMD_EXPORT=y +CONFIG_CMD_PRINTENV=y +CONFIG_CMD_READLINE=y +CONFIG_CMD_TRUE=y +CONFIG_CMD_FALSE=y +# CONFIG_CMD_LOGIN is not set +# CONFIG_CMD_PASSWD is not set + +# +# file commands +# +CONFIG_CMD_LS=y +CONFIG_CMD_RM=y +CONFIG_CMD_CAT=y +CONFIG_CMD_MKDIR=y +CONFIG_CMD_RMDIR=y +CONFIG_CMD_CP=y +CONFIG_CMD_PWD=y +CONFIG_CMD_CD=y +CONFIG_CMD_MOUNT=y +CONFIG_CMD_UMOUNT=y + +# +# console +# +CONFIG_CMD_CLEAR=y +CONFIG_CMD_ECHO=y +CONFIG_CMD_ECHO_E=y + +# +# memory +# +# CONFIG_CMD_LOADB is not set +# CONFIG_CMD_LOADS is not set +# CONFIG_CMD_MEMINFO is not set +# CONFIG_CMD_CRC is not set +CONFIG_CMD_MTEST=y +CONFIG_CMD_MTEST_ALTERNATIVE=y + +# +# flash +# +# CONFIG_CMD_FLASH is not set +# CONFIG_CMD_UBI is not set + +# +# booting +# +CONFIG_CMD_BOOTM=y +# CONFIG_CMD_BOOTM_ZLIB is not set +# CONFIG_CMD_BOOTM_BZLIB is not set +# CONFIG_CMD_BOOTM_SHOW_TYPE is not set +CONFIG_CMD_BOOTZ=y +CONFIG_CMD_BOOTU=y +CONFIG_CMD_RESET=y +# CONFIG_CMD_GO is not set +CONFIG_CMD_TIMEOUT=y +CONFIG_CMD_PARTITION=y +CONFIG_CMD_TEST=y +CONFIG_CMD_VERSION=y +CONFIG_CMD_HELP=y +CONFIG_CMD_DEVINFO=y +# CONFIG_CMD_GPIO is not set +# CONFIG_CMD_UNLZO is not set +# CONFIG_NET is not set + +# +# Drivers +# + +# +# serial drivers +# +# CONFIG_DRIVER_SERIAL_ARM_DCC is not set +CONFIG_DRIVER_SERIAL_STM378X=y +# CONFIG_DRIVER_SERIAL_NS16550 is not set + +# +# SPI drivers +# +# CONFIG_SPI is not set +# CONFIG_I2C is not set + +# +# flash drivers +# +# CONFIG_DRIVER_CFI is not set +# CONFIG_MTD is not set +# CONFIG_ATA is not set +# CONFIG_USB is not set +# CONFIG_USB_GADGET is not set +# CONFIG_VIDEO is not set + +# +# Filesystem support +# +# CONFIG_FS_CRAMFS is not set +CONFIG_FS_RAMFS=y +CONFIG_FS_DEVFS=y +CONFIG_CRC32=y +# CONFIG_DIGEST is not set +# CONFIG_GENERIC_FIND_NEXT_BIT is not set +CONFIG_PROCESS_ESCAPE_SEQUENCE=yarch/arm/mach-stm/Kconfig +7
-0@@ -2,8 +2,10 @@ if ARCH_STM config ARCH_TEXT_BASE hex + default 0x41000000 if MACH_MX23EVK config BOARDINFO + default "Freescale i.MX23-EVK" if MACH_MX23EVK comment "SigmaTel/Freescale i.MX System-on-Chip"@@ -21,6 +23,11 @@ if ARCH_IMX23 choice prompt "i.MX23 Board Type" +config MACH_MX23EVK + bool "mx23-evk" + help + Say Y here if you are using the Freescale i.MX23-EVK board + endchoice endifSignature · 7 lines
1.7.2.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 4/4 Add the i.MX23 based Chumby platform (WIP)
In reply to Juergen BeisertThe so called "chumby one" aka falconwing is an i.MX23 based platform.
Note: This is work in progress. Use with care.
--- arch/arm/Makefile | 1 + arch/arm/boards/chumby_falconwing/Makefile | 1 + arch/arm/boards/chumby_falconwing/config.h | 21 ++ arch/arm/boards/chumby_falconwing/falconwing.c | 271 ++++++++++++++++++++++++ arch/arm/configs/chumbyone_defconfig | 224 +++++++++++++++++++ arch/arm/mach-stm/Kconfig | 9 + 6 files changed, 527 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boards/chumby_falconwing/Makefile create mode 100644 arch/arm/boards/chumby_falconwing/config.h create mode 100644 arch/arm/boards/chumby_falconwing/falconwing.c create mode 100644 arch/arm/configs/chumbyone_defconfig
arch/arm/Makefile +1 -0
@@ -82,6 +82,7 @@ board-$(CONFIG_MACH_PM9263) := pm9263 board-$(CONFIG_MACH_SCB9328) := scb9328 board-$(CONFIG_MACH_NESO) := guf-neso board-$(CONFIG_MACH_MX23EVK) := freescale-mx23-evk +board-$(CONFIG_MACH_CHUMBY) := chumby_falconwing machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
arch/arm/boards/chumby_falconwing/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-y = falconwing.o
arch/arm/boards/chumby_falconwing/config.h new file +21 -0
@@ -0,0 +1,21 @@ +/* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 59 Temple Place, Suite 330, Boston, +* MA 02111-1307 USA +*/ + +#ifndef _CONFIG_H_ +# define _CONFIG_H_ + +#endif /* _CONFIG_H_ */
arch/arm/boards/chumby_falconwing/falconwing.c new file +271 -0
271 lines not on this page · raw message
arch/arm/configs/chumbyone_defconfig new file +224 -0
224 lines not on this page · raw message
arch/arm/mach-stm/Kconfig +9 -0
@@ -3,9 +3,11 @@ if ARCH_STM config ARCH_TEXT_BASE hex default 0x41000000 if MACH_MX23EVK + default 0x42000000 if MACH_CHUMBY config BOARDINFO default "Freescale i.MX23-EVK" if MACH_MX23EVK + default "Chumby Falconwing" if MACH_CHUMBY comment "SigmaTel/Freescale i.MX System-on-Chip"
@@ -28,6 +30,13 @@ config MACH_MX23EVK help Say Y here if you are using the Freescale i.MX23-EVK board +config MACH_CHUMBY + bool "Chumby Falconwing" + select HAVE_MMU + help + Say Y here if you are using the "chumby one" aka falconwing from + Chumby Industries + endchoice endif
Signature · 7 lines
1.7.2.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox