From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 9 Nov 2008 17:01:54 +0100 Subject: [U-Boot] [PATCH 13/13 v5] ARM: OMAP3: Add Beagle, EVM and Overo configuration and README In-Reply-To: <490df415.0c58560a.12c9.ffff8f8b@mx.google.com> References: <490df3f7.0b38560a.129d.ffff99aa@mx.google.com> <490df415.0c58560a.12c9.ffff8f8b@mx.google.com> Message-ID: <20081109160154.GH25307@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 19:40 Sun 02 Nov , dirk.behme at googlemail.com wrote: > From: Dirk Behme > > Add Beagle, EVM and Overo configuration and README > > Signed-off-by: Dirk Behme > > --- > doc/README.omap3 | 94 +++++++++++ > include/configs/omap3_beagle.h | 289 ++++++++++++++++++++++++++++++++++++ > include/configs/omap3_evm.h | 322 +++++++++++++++++++++++++++++++++++++++++ > include/configs/omap3_overo.h | 280 +++++++++++++++++++++++++++++++++++ > 4 files changed, 985 insertions(+) > > Index: u-boot-main/include/configs/omap3_beagle.h > =================================================================== > --- /dev/null > +++ u-boot-main/include/configs/omap3_beagle.h > @@ -0,0 +1,289 @@ > +/* > + * (C) Copyright 2006-2008 > + * Texas Instruments. > + * Richard Woodruff > + * Syed Mohammed Khasim > + * > + * Configuration settings for the TI OMAP3530 Beagle board. > + * > + * See file CREDITS for list of people who contributed to this > + * project. > + * > + * 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 > +#include > + > +/* > + * High Level Configuration Options > + */ > +#define CONFIG_ARMCORTEXA8 1 /* This is an ARM V7 CPU core */ > +#define CONFIG_OMAP 1 /* in a TI OMAP core */ > +#define CONFIG_OMAP34XX 1 /* which is a 34XX */ > +#define CONFIG_OMAP3430 1 /* which is in a 3430 */ > +#define CONFIG_OMAP3_BEAGLE 1 /* working with BEAGLE */ > +#define CONFIG_DOS_PARTITION 1 > + > +#include /* get chip and board defs */ > +#include > + > +/* Clock Defines */ > +#define V_OSCK 26000000 /* Clock output from T2 */ ^^^^^^^^^^^^^^^^^^^ whitespace please fix > +#define V_SCLK (V_OSCK >> 1) ^^^^^^^^^^^^^^^^^^^ whitespace please fix > + > +#undef CONFIG_USE_IRQ /* no support for IRQs */ > +#define CONFIG_MISC_INIT_R > + > +#define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */ ^^^^^^^ whitespace please fix > +#define CONFIG_SETUP_MEMORY_TAGS 1 > +#define CONFIG_INITRD_TAG 1 ^^^^^^^^ whitespace please fix > +#define CONFIG_REVISION_TAG 1 ^^^^^^ whitespace please fix > + > +/* > + * Size of malloc() pool > + */ > +#define CONFIG_ENV_SIZE SZ_128K /* Total Size Environment Sector */ ^^^^^^^^^^ whitespace please fix > +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_128K) ^^^^^^^^^^^ whitespace please fix > +#define CONFIG_SYS_GBL_DATA_SIZE 128 /* bytes reserved for initial data */ ^^^^^^^ whitespace please fix > + > +/* > + * Hardware drivers > + */ > + > +/* > + * NS16550 Configuration > + */ > +#define V_NS16550_CLK (48000000) /* 48MHz (APLL96/2) */ ^^^^^^^^^^^^ whitespace please fix > + > +#define CONFIG_SYS_NS16550 > +#define CONFIG_SYS_NS16550_SERIAL > +#define CONFIG_SYS_NS16550_REG_SIZE (-4) ^^^^^ whitespace please fix > +#define CONFIG_SYS_NS16550_CLK V_NS16550_CLK ^^^^^^^^^^ whitespace please fix > + > +/* > + * select serial console configuration > + */ > +#define CONFIG_CONS_INDEX 3 ^^^^^^^^ whitespace please fix > +#define CONFIG_SYS_NS16550_COM3 OMAP34XX_UART3 ^^^^^^^^^ whitespace please fix > +#define CONFIG_SERIAL3 3 /* UART3 on Beagle Rev 2 */ ^^^^^^^^^^^ whitespace please fix > + > +/* allow to overwrite serial and ethaddr */ > +#define CONFIG_ENV_OVERWRITE > +#define CONFIG_BAUDRATE 115200 ^^^^^^^^^^ whitespace please fix > +#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600, 115200} ^^^^^^^ whitespace please fix > +#define CONFIG_MMC 1 > +#define CONFIG_SYS_MMC_BASE 0xF0000000 > +#define CONFIG_DOS_PARTITION 1 > + > +/* commands to include */ > + > +#define CONFIG_CMD_EXT2 /* EXT2 Support */ > +#define CONFIG_CMD_FAT /* FAT support */ > +#define CONFIG_CMD_JFFS2 /* JFFS2 Support */ > + > +#define CONFIG_CMD_I2C /* I2C serial bus support */ > +#define CONFIG_CMD_MMC /* MMC support */ > +#define CONFIG_CMD_NAND /* NAND support */ > + > +#define CONFIG_CMD_AUTOSCRIPT /* autoscript support */ > +#define CONFIG_CMD_BDI /* bdinfo */ > +#define CONFIG_CMD_BOOTD /* bootd */ > +#define CONFIG_CMD_CONSOLE /* coninfo */ > +#define CONFIG_CMD_ECHO /* echo arguments */ > +#define CONFIG_CMD_ENV /* saveenv */ > +#define CONFIG_CMD_ITEST /* Integer (and string) test */ > +#define CONFIG_CMD_LOADB /* loadb */ > +#define CONFIG_CMD_MEMORY /* md mm nm mw cp cmp crc base loop mtest */ > +#define CONFIG_CMD_MISC /* misc functions like sleep etc*/ > +#define CONFIG_CMD_RUN /* run command in env variable */ > + > +#define CONFIG_SYS_NO_FLASH > +#define CONFIG_SYS_I2C_SPEED 100000 ^^^^^^^^^^^^ whitespace please fix and so on > +#define CONFIG_SYS_I2C_SLAVE 1 > +#define CONFIG_SYS_I2C_BUS 0 > +#define CONFIG_SYS_I2C_BUS_SELECT 1 > +#define CONFIG_DRIVER_OMAP34XX_I2C 1 > + > +/* > + * Board NAND Info. > + */ > +#define CONFIG_NAND_OMAP_GPMC > +#define CONFIG_SYS_NAND_ADDR NAND_BASE /* physical address to access nand */ > +#define CONFIG_SYS_NAND_BASE NAND_BASE /* physical address to access nand at CS0 */ > +#define GPMC_NAND_ECC_LP_x16_LAYOUT 1 > + > +#define CONFIG_SYS_MAX_NAND_DEVICE 1 /* Max number of NAND devices */ > +#define SECTORSIZE 512 > + > +#define NAND_ALLOW_ERASE_ALL > +#define ADDR_COLUMN 1 > +#define ADDR_PAGE 2 > +#define ADDR_COLUMN_PAGE 3 > + > +#define NAND_ChipID_UNKNOWN 0x00 > +#define NAND_MAX_FLOORS 1 > +#define NAND_MAX_CHIPS 1 > +#define NAND_NO_RB 1 > +#define CONFIG_SYS_NAND_WP > + > +#define CONFIG_JFFS2_NAND > +/* nand device jffs2 lives on */ > +#define CONFIG_JFFS2_DEV "nand0" > +/* start of jffs2 partition */ > +#define CONFIG_JFFS2_PART_OFFSET 0x680000 > +#define CONFIG_JFFS2_PART_SIZE 0xf980000 /* size of jffs2 partition */ > + > +/* Environment information */ > +#define CONFIG_BOOTDELAY 10 > + > +#define CONFIG_BOOTCOMMAND "nand read 80200000 280000 400000 ; bootm 80200000" > + > +#define CONFIG_BOOTARGS "setenv bootargs console=ttyS2,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2" too long please split > + > +#define CONFIG_NETMASK 255.255.254.0 > +#define CONFIG_BOOTFILE "uImage" > +#define CONFIG_AUTO_COMPLETE 1 > +/* > + * Miscellaneous configurable options > + */ > +#define V_PROMPT "OMAP3 beagleboard.org # " > + > +#define CONFIG_SYS_LONGHELP /* undef to save memory */ > +#define CONFIG_SYS_PROMPT V_PROMPT > +#define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ > +/* Print Buffer Size */ > +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT)+16) too long please split > +#define CONFIG_SYS_MAXARGS 16 /* max number of command args */ > +#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ too long please split and so on Best Regards, J.