From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1P4DCi-0003qN-50 for barebox@lists.infradead.org; Fri, 08 Oct 2010 13:41:46 +0000 Date: Fri, 8 Oct 2010 15:41:41 +0200 From: Sascha Hauer Message-ID: <20101008134141.GT28242@pengutronix.de> References: <1286463597-16948-1-git-send-email-jbe@pengutronix.de> <1286463597-16948-4-git-send-email-jbe@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1286463597-16948-4-git-send-email-jbe@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 3/4] Add the i.MX23-EVK platform (WIP) To: Juergen Beisert Cc: barebox@lists.infradead.org Hi J=FCrgen, can you regenerate the config with make savedefconfig please? Also applies to the chumby patch. Sascha On Thu, Oct 07, 2010 at 04:59:56PM +0200, Juergen Beisert wrote: > Note: This is work in progress. Use with care. > = > Signed-off-by: Juergen Beisert > --- > 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 > = > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index 77b6cf4..75fa6d3 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -41,6 +41,7 @@ CPPFLAGS +=3D $(CFLAGS_ABI) $(arch-y) $(tune-y) > machine-$(CONFIG_ARCH_AT91) :=3D at91 > machine-$(CONFIG_ARCH_EP93XX) :=3D ep93xx > machine-$(CONFIG_ARCH_IMX) :=3D imx > +machine-$(CONFIG_ARCH_STM) :=3D stm > machine-$(CONFIG_ARCH_NOMADIK) :=3D nomadik > machine-$(CONFIG_ARCH_NETX) :=3D netx > machine-$(CONFIG_ARCH_OMAP) :=3D omap > @@ -80,6 +81,7 @@ board-$(CONFIG_MACH_PCM043) :=3D pcm043 > board-$(CONFIG_MACH_PM9263) :=3D pm9263 > board-$(CONFIG_MACH_SCB9328) :=3D scb9328 > board-$(CONFIG_MACH_NESO) :=3D guf-neso > +board-$(CONFIG_MACH_MX23EVK) :=3D freescale-mx23-evk > = > machdirs :=3D $(patsubst %,arch/arm/mach-%/,$(machine-y)) > = > diff --git a/arch/arm/boards/freescale-mx23-evk/Makefile b/arch/arm/board= s/freescale-mx23-evk/Makefile > new file mode 100644 > index 0000000..cffb561 > --- /dev/null > +++ b/arch/arm/boards/freescale-mx23-evk/Makefile > @@ -0,0 +1,2 @@ > +# > +obj-y :=3D mx23-evk.o > diff --git a/arch/arm/boards/freescale-mx23-evk/config.h b/arch/arm/board= s/freescale-mx23-evk/config.h > new file mode 100644 > index 0000000..4b3da8f > --- /dev/null > +++ b/arch/arm/boards/freescale-mx23-evk/config.h > @@ -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 > + */ > diff --git a/arch/arm/boards/freescale-mx23-evk/mx23-evk.c b/arch/arm/boa= rds/freescale-mx23-evk/mx23-evk.c > new file mode 100644 > index 0000000..d361320 > --- /dev/null > +++ b/arch/arm/boards/freescale-mx23-evk/mx23-evk.c > @@ -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 > +#include > +#include > +#include > +#include > +#include > +#include > + > +static struct memory_platform_data ram_pdata =3D { > + .name =3D "ram0", > + .flags =3D DEVFS_RDWR, > +}; > + > +static struct device_d sdram_dev =3D { > + .name =3D "mem", > + .map_base =3D IMX_MEMORY_BASE, > + .size =3D 32 * 1024 * 1024, > + .platform_data =3D &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 =3D { > + .name =3D "stm_serial", > + .map_base =3D IMX_DBGUART_BASE, > + .size =3D 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 > +*/ > diff --git a/arch/arm/configs/imx23evk_defconfig b/arch/arm/configs/imx23= evk_defconfig > new file mode 100644 > index 0000000..a3d3e25 > --- /dev/null > +++ b/arch/arm/configs/imx23evk_defconfig > @@ -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=3Dy > +CONFIG_ARM=3Dy > + > +# > +# System Type > +# > +# CONFIG_ARCH_AT91 is not set > +# CONFIG_ARCH_EP93XX is not set > +# CONFIG_ARCH_IMX is not set > +CONFIG_ARCH_STM=3Dy > +# 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=3Dy > +CONFIG_CPU_ARM926T=3Dy > +CONFIG_CPU_32v5=3Dy > + > +# > +# processor features > +# > +CONFIG_ARCH_TEXT_BASE=3D0x42000000 > +CONFIG_BOARDINFO=3D"Chumby Falconwing" > + > +# > +# SigmaTel/Freescale i.MX System-on-Chip > +# > +CONFIG_ARCH_IMX23=3Dy > +# CONFIG_MACH_MX23EVK is not set > +CONFIG_MACH_CHUMBY=3Dy > + > +# > +# Board specific settings = > +# > +CONFIG_AEABI=3Dy > + > +# > +# Arm specific settings = > +# > +CONFIG_CMD_ARM_CPUINFO=3Dy > +CONFIG_ARM_OPTIMZED_STRING_FUNCTIONS=3Dy > +CONFIG_DEFCONFIG_LIST=3D"$ARCH_DEFCONFIG" > +CONFIG_GREGORIAN_CALENDER=3Dy > +CONFIG_HAS_KALLSYMS=3Dy > +CONFIG_HAS_MODULES=3Dy > +CONFIG_CMD_MEMORY=3Dy > +CONFIG_ENV_HANDLING=3Dy > +CONFIG_GENERIC_GPIO=3Dy > + > +# > +# General Settings = > +# > +CONFIG_LOCALVERSION_AUTO=3Dy > + > +# > +# memory layout = > +# > +CONFIG_HAVE_MMU=3Dy > +# CONFIG_MMU is not set > +CONFIG_HAVE_CONFIGURABLE_TEXT_BASE=3Dy > +CONFIG_TEXT_BASE=3D0x42000000 > +CONFIG_HAVE_CONFIGURABLE_MEMORY_LAYOUT=3Dy > +CONFIG_MEMORY_LAYOUT_DEFAULT=3Dy > +# CONFIG_MEMORY_LAYOUT_FIXED is not set > +CONFIG_STACK_SIZE=3D0x8000 > +CONFIG_MALLOC_SIZE=3D0x400000 > +CONFIG_BROKEN=3Dy > +# CONFIG_EXPERIMENTAL is not set > +# CONFIG_KALLSYMS is not set > +CONFIG_PROMPT=3D"chumby:" > +CONFIG_BAUDRATE=3D115200 > +CONFIG_LONGHELP=3Dy > +CONFIG_CBSIZE=3D1024 > +CONFIG_MAXARGS=3D16 > +CONFIG_SHELL_HUSH=3Dy > +# CONFIG_SHELL_SIMPLE is not set > +# CONFIG_GLOB is not set > +CONFIG_PROMPT_HUSH_PS2=3D"> " > +# CONFIG_HUSH_FANCY_PROMPT is not set > +CONFIG_CMDLINE_EDITING=3Dy > +CONFIG_AUTO_COMPLETE=3Dy > +# CONFIG_MENU is not set > +# CONFIG_PASSWORD is not set > +CONFIG_DYNAMIC_CRC_TABLE=3Dy > +CONFIG_ERRNO_MESSAGES=3Dy > +CONFIG_TIMESTAMP=3Dy > +CONFIG_CONSOLE_FULL=3Dy > +CONFIG_CONSOLE_ACTIVATE_FIRST=3Dy > +# CONFIG_OF_FLAT_TREE is not set > +CONFIG_PARTITION=3Dy > +# CONFIG_DEFAULT_ENVIRONMENT is not set > + > +# > +# Debugging = > +# > +CONFIG_DEBUG_INFO=3Dy > +# 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=3Dy > +CONFIG_CMD_SLEEP=3Dy > +CONFIG_CMD_SAVEENV=3Dy > +CONFIG_CMD_LOADENV=3Dy > +CONFIG_CMD_EXPORT=3Dy > +CONFIG_CMD_PRINTENV=3Dy > +CONFIG_CMD_READLINE=3Dy > +CONFIG_CMD_TRUE=3Dy > +CONFIG_CMD_FALSE=3Dy > +# CONFIG_CMD_LOGIN is not set > +# CONFIG_CMD_PASSWD is not set > + > +# > +# file commands = > +# > +CONFIG_CMD_LS=3Dy > +CONFIG_CMD_RM=3Dy > +CONFIG_CMD_CAT=3Dy > +CONFIG_CMD_MKDIR=3Dy > +CONFIG_CMD_RMDIR=3Dy > +CONFIG_CMD_CP=3Dy > +CONFIG_CMD_PWD=3Dy > +CONFIG_CMD_CD=3Dy > +CONFIG_CMD_MOUNT=3Dy > +CONFIG_CMD_UMOUNT=3Dy > + > +# > +# console = > +# > +CONFIG_CMD_CLEAR=3Dy > +CONFIG_CMD_ECHO=3Dy > +CONFIG_CMD_ECHO_E=3Dy > + > +# > +# 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=3Dy > +CONFIG_CMD_MTEST_ALTERNATIVE=3Dy > + > +# > +# flash = > +# > +# CONFIG_CMD_FLASH is not set > +# CONFIG_CMD_UBI is not set > + > +# > +# booting = > +# > +CONFIG_CMD_BOOTM=3Dy > +# 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=3Dy > +CONFIG_CMD_BOOTU=3Dy > +CONFIG_CMD_RESET=3Dy > +# CONFIG_CMD_GO is not set > +CONFIG_CMD_TIMEOUT=3Dy > +CONFIG_CMD_PARTITION=3Dy > +CONFIG_CMD_TEST=3Dy > +CONFIG_CMD_VERSION=3Dy > +CONFIG_CMD_HELP=3Dy > +CONFIG_CMD_DEVINFO=3Dy > +# 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=3Dy > +# 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=3Dy > +CONFIG_FS_DEVFS=3Dy > +CONFIG_CRC32=3Dy > +# CONFIG_DIGEST is not set > +# CONFIG_GENERIC_FIND_NEXT_BIT is not set > +CONFIG_PROCESS_ESCAPE_SEQUENCE=3Dy > diff --git a/arch/arm/mach-stm/Kconfig b/arch/arm/mach-stm/Kconfig > index 9858d3a..bbdea51 100644 > --- a/arch/arm/mach-stm/Kconfig > +++ b/arch/arm/mach-stm/Kconfig > @@ -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 > -- = > 1.7.2.3 > = > = > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > = -- = 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 barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox