[U-Boot] [PATCH] ARM DaVinci Leopard Board Support

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Mon May 18 22:21:49 CEST 2009


On 10:32 Wed 13 May     , s-paulraj at ti.com wrote:
> The patch applies to arm/next. It was tested on a leopard board.
> After testing had to change the MACH TYPE as this board is not present
> in the list of mach types at the moment. So the patch itself is going
> to give a compilation failure.
which number?
> 
> Further details on this board can be found at www.leopardboard.org
> 
> This patch does not do the NAND initialization yet. Will send an update
> to this patch after David Brownell's NAND updates get merged
> 
> Jean-Christophe can you please do a new sync for this board
> 
> Signed-off-by: Sandeep Paulraj <s-paulraj at ti.com>
> ---

> --- /dev/null
> +++ b/include/configs/davinci_leopard.h
> @@ -0,0 +1,130 @@
> +/*
> + * Copyright (C) 2009 Texas Instruments
> + *
> + * 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>
> +
> +
> +#define DAVINCI_LEOPARD
please CONFIG_
> +
> +#define CONFIG_SKIP_LOWLEVEL_INIT
> +#define CONFIG_SKIP_RELOCATE_UBOOT
> +#define CONFIG_SYS_NO_FLASH		/* no *NOR* flash */
> +#define CONFIG_SYS_CONSOLE_INFO_QUIET
> +#define CONFIG_DISPLAY_CPUINFO
> +
> +/* SoC Configuration */
> +#define CONFIG_ARM926EJS				/* arm926ejs CPU */
> +#define CONFIG_SYS_TIMERBASE		0x01c21400	/* use timer 0 */
> +#define CONFIG_SYS_HZ_CLOCK		24000000	/* TIMER 0 */
> +#define CONFIG_SYS_HZ			1000
> +#define CONFIG_SOC_DM355
> +
> +/* Memory Info */
> +#define CONFIG_NR_DRAM_BANKS		1
> +#define PHYS_SDRAM_1			0x80000000
> +#define PHYS_SDRAM_1_SIZE		SZ_128M
> +
> +/* Serial Driver info: UART0 for console  */
> +#define CONFIG_SYS_NS16550
> +#define CONFIG_SYS_NS16550_SERIAL
> +#define CONFIG_SYS_NS16550_REG_SIZE	-4
> +#define CONFIG_SYS_NS16550_COM1		0x01c20000
> +#define CONFIG_SYS_NS16550_CLK		CONFIG_SYS_HZ_CLOCK
> +#define CONFIG_SYS_BAUDRATE_TABLE	{ 9600, 19200, 38400, 57600, 115200 }
> +#define CONFIG_CONS_INDEX		1
> +#define CONFIG_BAUDRATE			115200
> +
> +/* Ethernet:  external DM9000 just like DM355 EVM */
> +#define CONFIG_DRIVER_DM9000		1
> +#define CONFIG_DM9000_BASE		0x04000000
> +#define DM9000_IO			CONFIG_DM9000_BASE
> +#define DM9000_DATA			(CONFIG_DM9000_BASE + 16)
> +
> +/* I2C */
> +#define CONFIG_HARD_I2C
> +#define CONFIG_DRIVER_DAVINCI_I2C
> +#define CONFIG_SYS_I2C_SPEED		400000
> +#define CONFIG_SYS_I2C_SLAVE		0x10
> +
> +/* NYET -- #define CONFIG_NAND_DAVINCI */
> +#define CONFIG_SYS_NAND_HW_ECC
> +#define CONFIG_SYS_NAND_USE_FLASH_BBT
> +
> +#define CONFIG_SYS_NAND_SMALLPAGE
> +#define CONFIG_SYS_NAND_BASE_LIST	{ 0x02000000, }
please use macro
> +#define CONFIG_SYS_MAX_NAND_DEVICE	1
> +#define CONFIG_SYS_NAND_MAX_CHIPS	1
> +
> +/* U-Boot command configuration */
> +#include <config_cmd_default.h>
> +
> +#undef CONFIG_CMD_BDI
> +#undef CONFIG_CMD_FLASH
> +#undef CONFIG_CMD_FPGA
> +#undef CONFIG_CMD_SETGETDCR
> +#define CONFIG_CMD_ASKENV
> +#define CONFIG_CMD_DHCP
> +#define CONFIG_CMD_I2C
> +#define CONFIG_CMD_PING
> +#define CONFIG_CMD_SAVES
> +
> +/* TEMPORARY -- no safe place to save env, yet */
> +#define CONFIG_ENV_IS_NOWHERE
> +#undef CONFIG_CMD_SAVEENV
> +
> +#define CONFIG_CRC32_VERIFY
> +#define CONFIG_MX_CYCLIC
> +
> +/* U-Boot general configuration */
> +#undef CONFIG_USE_IRQ				/* No IRQ/FIQ in U-Boot */
> +#define CONFIG_BOOTFILE		"uImage"	/* Boot file name */
> +#define CONFIG_SYS_PROMPT	"LEOPARD EVM # "
> +#define CONFIG_SYS_CBSIZE	1024		/* Console I/O Buffer Size  */
why 1k?

Best Regards,
J.


More information about the U-Boot mailing list