[U-Boot] [PATCH 13/13 v5] ARM: OMAP3: Add Beagle, EVM and Overo configuration and README

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sun Nov 9 17:01:54 CET 2008


On 19:40 Sun 02 Nov     , dirk.behme at googlemail.com wrote:
> From: Dirk Behme <dirk.behme at gmail.com>
> 
> Add Beagle, EVM and Overo configuration and README
> 
> Signed-off-by: Dirk Behme <dirk.behme at gmail.com>
> 
> ---
>  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 <r-woodruff2 at ti.com>
> + * Syed Mohammed Khasim <x0khasim at ti.com>
> + *
> + * 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 <asm/sizes.h>
> +
> +/*
> + * 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 <asm/arch/cpu.h>	/* get chip and board defs */
> +#include <asm/arch/omap3.h>
> +
> +/* 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.


More information about the U-Boot mailing list