diff options
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/mx28.h | 110 |
1 files changed, 73 insertions, 37 deletions
diff --git a/include/configs/mx28.h b/include/configs/mx28.h index 4af0a28..84fecc3 100644 --- a/include/configs/mx28.h +++ b/include/configs/mx28.h @@ -1,7 +1,6 @@ /* * Copyright (C) 2008 Embedded Alley Solutions, Inc. - * - * (C) Copyright 2009 Freescale Semiconductor, Inc. + * (C) Copyright 2010 Freescale Semiconductor, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -61,16 +60,15 @@ #define CONFIG_SYS_MALLOC_LEN (0x10000 + 128*1024) /* malloc() len */ #define CONFIG_SYS_GBL_DATA_SIZE 128 /* reserved for initial data */ #define CONFIG_SYS_MEMTEST_START 0x40000000 /* memtest start address */ -#define CONFIG_SYS_MEMTEST_END 0x41000000 /* 16MB RAM test */ +#define CONFIG_SYS_MEMTEST_END 0x40400000 /* 16MB RAM test */ #define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of DRAM */ #define CONFIG_STACKSIZE (256*1024) /* regular stack */ #define PHYS_SDRAM_1 0x40000000 /* mDDR Start */ -#define PHYS_SDRAM_1_SIZE 0x02000000 /* mDDR size 32MB */ +#define PHYS_SDRAM_1_SIZE 0x08000000 /* mDDR size 32MB */ /*====================*/ /* Serial Driver info */ /*====================*/ -#define CONFIG_STMP3XXX_DBGUART /* 378x debug UART */ #define CONFIG_DBGUART_CLK 24000000 #define CONFIG_BAUDRATE 115200 /* Default baud rate */ #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } @@ -88,28 +86,28 @@ /*=====================*/ #define CONFIG_SYS_NO_FLASH /* Flash is not supported */ #define CONFIG_ENV_IS_NOWHERE /* Store ENV in memory only */ -#define CONFIG_ENV_SIZE 0x20000 + + +/* ROM loads UBOOT into DRAM */ +#define CONFIG_SKIP_RELOCATE_UBOOT + /*==============================*/ /* U-Boot general configuration */ /*==============================*/ -#undef CONFIG_USE_IRQ /* No IRQ/FIQ in U-Boot */ -#define CONFIG_MISC_INIT_R -#define CONFIG_NETMASK 255.255.255.0 -#define CONFIG_IPADDR 192.167.10.2 -#define CONFIG_SERVERIP 192.167.10.1 #define CONFIG_BOOTDELAY 2 #define CONFIG_BOOTFILE "uImage" /* Boot file name */ -#define CONFIG_SYS_PROMPT "stmp378x U-Boot > " - /* Monitor Command Prompt */ -#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ -#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) - /* Print buffer sz */ -#define CONFIG_SYS_MAXARGS 16 /* max number of command args */ +#define CONFIG_SYS_PROMPT "MX28 U-Boot > " +#define CONFIG_SYS_CBSIZE 1024 /* Console I/O buffer size */ +#define CONFIG_SYS_PBSIZE \ + (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) + /* Print buffer size */ +#define CONFIG_SYS_MAXARGS 16 /* Max number of command args */ #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE - /* Boot Argument Buffer Size */ -#define CONFIG_SYS_LOAD_ADDR 0x40400000 - /* default Linux kernel load address */ + /* Boot argument buffer size */ +#define CONFIG_VERSION_VARIABLE /* U-BOOT version */ +#define CONFIG_AUTO_COMPLETE /* Command auto complete */ +#define CONFIG_CMDLINE_EDITING /* Command history etc */ #define CONFIG_VERSION_VARIABLE #define CONFIG_AUTO_COMPLETE /* Won't work with hush so far, may be later */ #define CFG_HUSH_PARSER @@ -119,32 +117,70 @@ #define CONFIG_CRC32_VERIFY #define CONFIG_MX_CYCLIC -/*===================*/ -/* Linux Information */ -/*===================*/ +/* + * Boot Linux + */ #define LINUX_BOOT_PARAM_ADDR 0x40000100 #define CONFIG_CMDLINE_TAG #define CONFIG_SETUP_MEMORY_TAGS -#define CONFIG_BOOTARGS "console=ttyAM0,115200n8 "\ - "root=/dev/mtdblock1 rootfstype=jffs2 lcd_panel=lms350" -#define CONFIG_BOOTCOMMAND "tftpboot ; bootm" +#define CONFIG_BOOTARGS "console=ttyAM0,115200n8 " +#define CONFIG_BOOTCOMMAND "run bootcmd_net" +#define CONFIG_LOADADDR 0x42000000 +#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR + +/* + * Extra Environments + */ +#define CONFIG_EXTRA_ENV_SETTINGS \ + "nfsroot=/data/rootfs_home/rootfs\0" \ + "bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs " \ + "ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0" \ + "bootcmd_net=run bootargs_nfs; dhcp; bootm\0" \ + "bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p2 " \ + "ip=dhcp rootfstype=ext2\0" \ + "bootcmd_mmc=run bootargs_mmc; " \ + "mmc read 0 ${loadaddr} 100 3000; bootm\0" \ /*=================*/ /* U-Boot commands */ /*=================*/ #include <config_cmd_default.h> -#define CONFIG_CMD_ASKENV -#define CONFIG_CMD_DHCP -#undef CONFIG_CMD_DIAG +#undef CONFIG_CMD_MMC /* MX28 use special mmc command*/ +#define CONFIG_ARCH_CPU_INIT +#define CONFIG_DISPLAY_CPUINFO + +/* + * ENET Driver + */ +#define CONFIG_MXC_ENET +#define CONFIG_NET_MULTI +#define CONFIG_ETH_PRIME #define CONFIG_CMD_MII +#define CONFIG_DISCOVER_PHY +#define CONFIG_CMD_DHCP #define CONFIG_CMD_PING -#define CONFIG_CMD_NET -#define CONFIG_CMD_SAVES -#undef CONFIG_CMD_IMLS - -/* Ethernet chip - select an alternative driver */ -#define CONFIG_ENC28J60_ETH -#define CONFIG_ENC28J60_ETH_SPI_BUS 0 -#define CONFIG_ENC28J60_ETH_SPI_CS 0 +#define CONFIG_IPADDR 192.168.1.101 +#define CONFIG_SERVERIP 192.168.1.100 +#define CONFIG_NETMASK 255.255.255.0 + +/* + * MMC Driver + */ +#define CONFIG_IMX_SSP_MMC /* MMC driver based on SSP */ +#define CONFIG_GENERIC_MMC +#define CONFIG_CUSTOMIZE_MMCOPS /* To customize do_mmcops() */ +#define CONFIG_DOS_PARTITION +#define CONFIG_CMD_FAT +#define CONFIG_MMC + +/* + * Environments on MMC + */ +#define CONFIG_CMD_ENV +#define CONFIG_ENV_OVERWRITE +#define CONFIG_ENV_IS_IN_MMC +/* Assoiated with the MMC layout defined in mmcops.c */ +#define CONFIG_ENV_OFFSET (0x400) /* 1 KB */ +#define CONFIG_ENV_SIZE (0x20000 - 0x400) /* 127 KB */ #endif /* __CONFIG_H */ |