Skip to contentSkip to conversation

ARM DaVinci Leopard Board Support

PATCH New s-paulraj at ti.com 4 participants 6 messages May 13, 2009 – May 18, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM DaVinci Leopard Board Support

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.

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

---
 Makefile                          |    3 +
 board/davinci/leopard/Makefile    |   52 +++++++++++++++
 board/davinci/leopard/config.mk   |   11 +++
 board/davinci/leopard/leopard.c   |   36 ++++++++++
 include/configs/davinci_leopard.h |  130 +++++++++++++++++++++++++++++++++++++
 5 files changed, 232 insertions(+), 0 deletions(-)
 create mode 100644 board/davinci/leopard/Makefile
 create mode 100644 board/davinci/leopard/config.mk
 create mode 100644 board/davinci/leopard/leopard.c
 create mode 100644 include/configs/davinci_leopard.h
Makefile +3 -0
index b7d5bd9..5fb126a 100644
@@ -2793,6 +2793,9 @@ davinci_sonata_config :	unconfig
 davinci_dm355evm_config :	unconfig
 	@$(MKCONFIG) $(@:_config=) arm arm926ejs dm355evm davinci davinci
 
+davinci_leopard_config :	unconfig
+	@$(MKCONFIG) $(@:_config=) arm arm926ejs leopard davinci davinci
+
 lpd7a400_config \
 lpd7a404_config:	unconfig
 	@$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x
board/davinci/leopard/Makefile new file +52 -0

52 lines not on this page · raw message

board/davinci/leopard/config.mk new file +11 -0
new file mode 100644
index 0000000..c4e6e07
@@ -0,0 +1,11 @@
+#
+# Spectrum Digital DM355 EVM board
+#	dm355evm board has 1 bank of 128 MB DDR RAM
+#	Physical Address: 8000'0000 to 8800'0000
+#
+# Linux Kernel is expected to be at 8000'8000, entry 8000'8000
+# (mem base + reserved)
+#
+
+#Provide at least 16MB spacing between us and the Linux Kernel image
+TEXT_BASE = 0x81080000
board/davinci/leopard/leopard.c new file +36 -0
new file mode 100644
index 0000000..282368d
@@ -0,0 +1,36 @@
+/*
+ * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <common.h>
+#include <nand.h>
+#include <asm/io.h>
+#include <asm/arch/hardware.h>
+#include <asm/arch/emif_defs.h>
+#include <asm/arch/nand_defs.h>
+#include "../common/misc.h"
+
+
+DECLARE_GLOBAL_DATA_PTR;
+
+int board_init(void)
+{
+	gd->bd->bi_arch_number = MACH_TYPE_DM355_LEOPARD;
+	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
+
+	return 0;
+}
include/configs/davinci_leopard.h new file +130 -0

130 lines not on this page · raw message

Signature · 1 line
1.6.0.4
#1 lore raw

PATCH 1/1 ARM DaVinci Leopard Board Support

Quoted 4 lines · s-paulraj at ti.com

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?

Quoted 29 lines

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

---

include/configs/davinci_leopard.h new file +15 -0
@@ -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

include/configs/davinci_leopard.h line 25

Quoted 10 lines
include/configs/davinci_leopard.h new file +10 -0
+ * 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_

Quoted 37 lines
include/configs/davinci_leopard.h new file +37 -0
+
+#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

include/configs/davinci_leopard.h line 72

Quoted 10 lines
include/configs/davinci_leopard.h new file +10 -0
+#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

Quoted 18 lines
include/configs/davinci_leopard.h new file +18 -0
+#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

include/configs/davinci_leopard.h line 100

Quoted 10 lines
include/configs/davinci_leopard.h new file +10 -0
+#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.

#2 lore raw

PATCH 1/1 ARM DaVinci Leopard Board Support

Dear Jean-Christophe PLAGNIOL-VILLARD,

Quoted 8 lines · In message <[email protected]> you wrote:

include/configs/davinci_leopard.h line 25

Quoted 7 lines
include/configs/davinci_leopard.h new file +6 -0
+#ifndef __CONFIG_H
+#define __CONFIG_H
+#include <asm/sizes.h>
+
+
+#define DAVINCI_LEOPARD

please CONFIG_

Or rather CONFIG_SYS_DAVINCI_LEOPARD

This is not a user-0selectable parameter, and such are fobidden outside the board config files anyway.

Quoted 3 lines

include/configs/davinci_leopard.h line 72

Quoted 2 lines
include/configs/davinci_leopard.h new file +2 -0
+#define CONFIG_SYS_NAND_SMALLPAGE
+#define CONFIG_SYS_NAND_BASE_LIST	{ 0x02000000, }

please use macro

??? Please explain what you mean here. This is a macro, isn't it?

Quoted 6 lines

include/configs/davinci_leopard.h line 100

Quoted 5 lines
include/configs/davinci_leopard.h new file +5 -0
+/* 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?

Why not? That's a config option...

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A Freudian slip is when you say one thing but mean your mother.
#3 lore raw

PATCH 1/1 ARM DaVinci Leopard Board Support

Wolfgang,
I think what JC means is to use something like

#define CONFIG_SYS_NAND_BASE_LIST { DAVINCI_NAND_BASE, }

Now this info is available in the hardware.h file for DaVinci but it requires a little tweak. I just sent another patch to address that

[PATCH] ARM DaVinci Minor Change to header file

Let me know if this is OK. Then I can use MACROs in the config.h file.

Jean-Christophe,
Is this new patch OK with you?

Thanks,
Sandeep

Quoted 53 lines

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Monday, May 18, 2009 4:47 PM
To: Jean-Christophe PLAGNIOL-VILLARD
Cc: Paulraj, Sandeep; u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH] ARM DaVinci Leopard Board Support

Dear Jean-Christophe PLAGNIOL-VILLARD,

Quoted 8 lines · In message <[email protected]> you wrote:

include/configs/davinci_leopard.h line 25

Quoted 7 lines
include/configs/davinci_leopard.h new file +6 -0
+#ifndef __CONFIG_H
+#define __CONFIG_H
+#include <asm/sizes.h>
+
+
+#define DAVINCI_LEOPARD

please CONFIG_

Or rather CONFIG_SYS_DAVINCI_LEOPARD

This is not a user-0selectable parameter, and such are fobidden outside the board config files anyway.

Quoted 3 lines

include/configs/davinci_leopard.h line 72

Quoted 2 lines
include/configs/davinci_leopard.h new file +2 -0
+#define CONFIG_SYS_NAND_SMALLPAGE
+#define CONFIG_SYS_NAND_BASE_LIST	{ 0x02000000, }

please use macro

??? Please explain what you mean here. This is a macro, isn't it?

Quoted 2 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+/* U-Boot general configuration */
+#undef CONFIG_USE_IRQ				/* No 

IRQ/FIQ in U-Boot */

Quoted 1 line
Quoted 1 line

+#define CONFIG_BOOTFILE "uImage" /* Boot

file name */

Quoted 2 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+#define CONFIG_SYS_PROMPT	"LEOPARD EVM # "
+#define CONFIG_SYS_CBSIZE	1024		/* 

Console I/O Buffer Size */

Quoted 1 line

why 1k?

Why not? That's a config option...

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A Freudian slip is when you say one thing but mean your mother.
#4 lore raw

PATCH 1/1 ARM DaVinci Leopard Board Support

In reply to Wolfgang Denk
Quoted 14 lines · Wolfgang Denk

Dear Jean-Christophe PLAGNIOL-VILLARD,

Quoted 8 lines · In message <[email protected]> you wrote:

include/configs/davinci_leopard.h line 25

Quoted 7 lines
include/configs/davinci_leopard.h new file +6 -0
+#ifndef __CONFIG_H
+#define __CONFIG_H
+#include <asm/sizes.h>
+
+
+#define DAVINCI_LEOPARD

please CONFIG_

Or rather CONFIG_SYS_DAVINCI_LEOPARD

Quoted 8 lines

This is not a user-0selectable parameter, and such are fobidden outside the board config files anyway.

Quoted 3 lines

include/configs/davinci_leopard.h line 72

Quoted 2 lines
include/configs/davinci_leopard.h new file +2 -0
+#define CONFIG_SYS_NAND_SMALLPAGE
+#define CONFIG_SYS_NAND_BASE_LIST	{ 0x02000000, }

please use macro

??? Please explain what you mean here. This is a macro, isn't it?

replase 0x02000000 by DAVINCI_ASYNC_EMIF_DATA_CE0_BASE

Quoted 9 lines
Quoted 7 lines

include/configs/davinci_leopard.h line 100

Quoted 6 lines
include/configs/davinci_leopard.h new file +5 -0
+/* 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?

Why not? That's a config option...

just ask to known why they need 1K?

Best Regards,
J.

#5 lore raw

PATCH 1/1 ARM DaVinci Leopard Board Support

________________________________________
From: Jean-Christophe PLAGNIOL-VILLARD [plagnioj at jcrosoft.com]
Sent: Monday, May 18, 2009 5:25 PM
To: Wolfgang Denk
Cc: Paulraj, Sandeep; u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH] ARM DaVinci Leopard Board Support

Quoted 14 lines · Wolfgang Denk

Dear Jean-Christophe PLAGNIOL-VILLARD,

Quoted 8 lines · In message <[email protected]> you wrote:

include/configs/davinci_leopard.h line 25

Quoted 7 lines
include/configs/davinci_leopard.h new file +6 -0
+#ifndef __CONFIG_H
+#define __CONFIG_H
+#include <asm/sizes.h>
+
+
+#define DAVINCI_LEOPARD

please CONFIG_

Or rather CONFIG_SYS_DAVINCI_LEOPARD

Quoted 8 lines

This is not a user-0selectable parameter, and such are fobidden outside the board config files anyway.

Quoted 3 lines

include/configs/davinci_leopard.h line 72

Quoted 2 lines
include/configs/davinci_leopard.h new file +2 -0
+#define CONFIG_SYS_NAND_SMALLPAGE
+#define CONFIG_SYS_NAND_BASE_LIST        { 0x02000000, }

please use macro

??? Please explain what you mean here. This is a macro, isn't it?

replase 0x02000000 by DAVINCI_ASYNC_EMIF_DATA_CE0_BASE

will do. depends on whether you accept another patch that i sent. That is required to include the hardware.h file

Quoted 9 lines
Quoted 7 lines

include/configs/davinci_leopard.h line 100

Quoted 6 lines
include/configs/davinci_leopard.h new file +5 -0
+/* 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?

Why not? That's a config option...

just ask to known why they need 1K?
we have very long bootargs that can be passed to the video drivers

Best Regards,
J.