Skip to contentSkip to conversation

Prepare for TI816X : reuse existing code from TI814X

PATCH Superseded TENART Antoine 3 participants 24 messages Mar 28, 2013 – Mar 29, 2013 1 message not in the archive

Subsystems (2)

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/8 Prepare for TI816X : reuse existing code from TI814X

Rename some CONFIG_TI814X to a more generic CONFIG_81XX

---
 Makefile                                |    2 +-
 arch/arm/cpu/armv7/Makefile             |    2 +-
 arch/arm/cpu/armv7/omap-common/Makefile |    2 +-
 arch/arm/include/asm/arch-am33xx/cpu.h  |    2 +-
 arch/arm/include/asm/arch-am33xx/omap.h |    2 +-
 drivers/serial/ns16550.c                |    4 ++--
 spl/Makefile                            |    2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)
Makefile +1 -1
index 7273fa4..811e7b6 100644
@@ -330,7 +330,7 @@ LIBS-y += api/libapi.o
 LIBS-y += post/libpost.o
 LIBS-y += test/libtest.o
 
-ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TI814X),)
+ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TI81XX),)
 LIBS-y += $(CPUDIR)/omap-common/libomap-common.o
 endif
 
arch/arm/cpu/armv7/Makefile +1 -1
index c961247..9bb2837 100644
@@ -32,7 +32,7 @@ COBJS	+= cache_v7.o
 COBJS	+= cpu.o
 COBJS	+= syslib.o
 
-ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TEGRA)$(CONFIG_TI814X),)
+ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TEGRA)$(CONFIG_TI81XX),)
 SOBJS	+= lowlevel_init.o
 endif
 
arch/arm/cpu/armv7/omap-common/Makefile +1 -1
index 55e82ba..8da8f91 100644
@@ -36,7 +36,7 @@ COBJS	+= emif-common.o
 COBJS	+= vc.o
 endif
 
-ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TI814X),)
+ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TI81XX),)
 COBJS	+= boot-common.o
 SOBJS	+= lowlevel_init.o
 endif
arch/arm/include/asm/arch-am33xx/cpu.h +1 -1
index 3d3a7c8..13c0667 100644
@@ -54,7 +54,7 @@
 /* Reset control */
 #ifdef CONFIG_AM33XX
 #define PRM_RSTCTRL			(PRCM_BASE + 0x0F00)
-#elif defined(CONFIG_TI814X)
+#elif defined(CONFIG_TI81XX)
 #define PRM_RSTCTRL			(PRCM_BASE + 0x00A0)
 #endif
 #define PRM_RSTST			(PRM_RSTCTRL + 8)
arch/arm/include/asm/arch-am33xx/omap.h +1 -1
index d28f9a8..1a1cc18 100644
@@ -31,7 +31,7 @@
 #ifdef CONFIG_AM33XX
 #define NON_SECURE_SRAM_START	0x40304000
 #define NON_SECURE_SRAM_END	0x4030E000
-#elif defined(CONFIG_TI814X)
+#elif defined(CONFIG_TI81XX)
 #define NON_SECURE_SRAM_START	0x40300000
 #define NON_SECURE_SRAM_END	0x40320000
 #endif
drivers/serial/ns16550.c +2 -2
index 02bc85b..c949423 100644
@@ -43,7 +43,7 @@ void NS16550_init(NS16550_t com_port, int baud_divisor)
 
 	serial_out(CONFIG_SYS_NS16550_IER, &com_port->ier);
 #if (defined(CONFIG_OMAP) && !defined(CONFIG_OMAP3_ZOOM2)) || \
-			defined(CONFIG_AM33XX) || defined(CONFIG_TI814X)
+			defined(CONFIG_AM33XX) || defined(CONFIG_TI81XX)
 	serial_out(0x7, &com_port->mdr1);	/* mode select reset TL16C750*/
 #endif
 	serial_out(UART_LCR_BKSE | UART_LCRVAL, (ulong)&com_port->lcr);
@@ -58,7 +58,7 @@ void NS16550_init(NS16550_t com_port, int baud_divisor)
 	serial_out(UART_LCRVAL, &com_port->lcr);
 #if (defined(CONFIG_OMAP) && !defined(CONFIG_OMAP3_ZOOM2)) || \
 	defined(CONFIG_AM33XX) || defined(CONFIG_SOC_DA8XX) || \
-	defined(CONFIG_TI814X)
+	defined(CONFIG_TI81XX)
 
 #if defined(CONFIG_APTIX)
 	/* /13 mode so Aptix 6MHz can hit 115200 */
spl/Makefile +1 -1
index c398a5f..8692f30 100644
@@ -82,7 +82,7 @@ LIBS-$(CONFIG_SPL_NET_SUPPORT) += net/libnet.o
 LIBS-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/libnet.o
 LIBS-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/phy/libphy.o
 
-ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TI814X),)
+ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(CONFIG_TI81XX),)
 LIBS-y += $(CPUDIR)/omap-common/libomap-common.o
 endif
 
Signature · 1 line
1.7.10.4
#3 lore raw

PATCH 1/8 Prepare for TI816X : reuse existing code from TI814X

In reply to TENART Antoine
Quoted 1 line · TENART Antoine

Rename some CONFIG_TI814X to a more generic CONFIG_81XX

This is fine except it breaks bisectability, you need to also add CONFIG_TI81XX to ti814x_evm.h at this point.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130328/f19ea3a2/attachment.pgp>
#4 lore raw

PATCH 1/8 Prepare for TI816X : reuse existing code from TI814X

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Tom" == Tom Rini <[email protected]> writes:

Quoted 1 line · TENART Antoine
Quoted 1 line

Rename some CONFIG_TI814X to a more generic CONFIG_81XX

Tom> This is fine except it breaks bisectability, you need to also add Tom> CONFIG_TI81XX to ti814x_evm.h at this point.

It afaik already has it.

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

PATCH 1/8 Prepare for TI816X : reuse existing code from TI814X

Quoted 5 lines

Tom> This is fine except it breaks bisectability, you need to also add Tom> CONFIG_TI81XX to ti814x_evm.h at this point.

It afaik already has it.

Yes, it was introduced by Matt Porter in "ti814x_evm: add ti814x evm board support" patch :
+#define CONFIG_TI81XX
+#define CONFIG_TI814X

#6 lore raw

PATCH 1/8 Prepare for TI816X : reuse existing code from TI814X

Review

Quoted 10 lines · TENART Antoine
Quoted 5 lines

Tom> This is fine except it breaks bisectability, you need to also add Tom> CONFIG_TI81XX to ti814x_evm.h at this point.

It afaik already has it.

Yes, it was introduced by Matt Porter in "ti814x_evm: add ti814x evm board support" patch :

(quoted diff) +2 -0
+#define CONFIG_TI81XX
+#define CONFIG_TI814X

OK, thanks, forgot Matt already set the symbol.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130329/cb42acb7/attachment.pgp>
#7 lore raw

PATCH 2/8 Add TI816X mux definitions.

In reply to a message not in the archive
---
 arch/arm/include/asm/arch-am33xx/mux.h        |    2 +
 arch/arm/include/asm/arch-am33xx/mux_ti816x.h |  363 +++++++++++++++++++++++++
 2 files changed, 365 insertions(+)
 create mode 100644 arch/arm/include/asm/arch-am33xx/mux_ti816x.h
arch/arm/include/asm/arch-am33xx/mux.h +2 -0
index 1c6b65f..4caa4d8 100644
@@ -23,6 +23,8 @@
 #include <asm/arch/mux_am33xx.h>
 #elif defined(CONFIG_TI814X)
 #include <asm/arch/mux_ti814x.h>
+#elif defined(CONFIG_TI816X)
+#include <asm/arch/mux_ti816x.h>
 #endif
 
 struct module_pin_mux {
arch/arm/include/asm/arch-am33xx/mux_ti816x.h new file +363 -0

363 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#9 lore raw

PATCH 2/8 Add TI816X mux definitions.

Quoted 6 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"TENART" == TENART Antoine <[email protected]> writes:

I just now noticed that you forgot to sign off on your patches (-s option).

Yes, please fix with a v2 of the series which also addreses the other feedback as well. Also, patches 2-7 can be squashed into a single "Add ti816x support" patch.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130328/5aaabd33/attachment.pgp>
#10 lore raw

PATCH 2/8 Add TI816X mux definitions.

Quoted 4 lines

Yes, please fix with a v2 of the series which also addreses the other feedback as well. Also, patches 2-7 can be squashed into a single "Add ti816x support" patch.

Thanks for your review, I'll do a v2 following your advices.

#11 lore raw

PATCH 3/8 Add TI816X clocks definitions

In reply to a message not in the archive
---
 arch/arm/include/asm/arch-am33xx/clock.h         |    4 +
 arch/arm/include/asm/arch-am33xx/clocks_ti816x.h |  173 ++++++++++++++++++++++
 2 files changed, 177 insertions(+)
 create mode 100644 arch/arm/include/asm/arch-am33xx/clocks_ti816x.h
arch/arm/include/asm/arch-am33xx/clock.h +4 -0
index ecb5901..123cc61 100644
@@ -19,6 +19,10 @@
 #ifndef _CLOCKS_H_
 #define _CLOCKS_H_
 
+#if defined(CONFIG_TI816X)
+#include <asm/arch/clocks_ti816x.h>
+#else
 #include <asm/arch/clocks_am33xx.h>
+#endif
 
 #endif
arch/arm/include/asm/arch-am33xx/clocks_ti816x.h new file +173 -0

173 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#12 lore raw

PATCH 3/8 Add TI816X clocks definitions

Quoted 5 lines · TENART Antoine
---
 arch/arm/include/asm/arch-am33xx/clock.h         |    4 +
 arch/arm/include/asm/arch-am33xx/clocks_ti816x.h |  173 ++++++++++++++++++++++
 2 files changed, 177 insertions(+)
 create mode 100644 arch/arm/include/asm/arch-am33xx/clocks_ti816x.h
Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130328/78b66cc9/attachment.pgp>
#13 lore raw

PATCH 4/8 Add TI816X ddr definitions

In reply to a message not in the archive
---
 arch/arm/include/asm/arch-am33xx/ddr_defs.h        |    4 +
 arch/arm/include/asm/arch-am33xx/ddr_defs_ti816x.h |  250 ++++++++++++++++++++
 2 files changed, 254 insertions(+)
 create mode 100644 arch/arm/include/asm/arch-am33xx/ddr_defs_ti816x.h
arch/arm/include/asm/arch-am33xx/ddr_defs.h +4 -0
index 15ca4c1..b959ba8 100644
@@ -22,6 +22,10 @@
 #include <asm/arch/hardware.h>
 #include <asm/emif.h>
 
+#if defined(CONFIG_TI816X)
+#include <asm/arch/ddr_defs_ti816x.h>
+#endif
+
 /* AM335X EMIF Register values */
 #define VTP_CTRL_READY		(0x1 << 5)
 #define VTP_CTRL_ENABLE		(0x1 << 6)
arch/arm/include/asm/arch-am33xx/ddr_defs_ti816x.h new file +250 -0

250 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#14 lore raw

PATCH 4/8 Add TI816X ddr definitions

On Thu, Mar 28, 2013 at 06:14:37PM +0100, TENART Antoine wrote:

[snip]

arch/arm/include/asm/arch-am33xx/ddr_defs_ti816x.h line 37

Quoted 2 lines
arch/arm/include/asm/arch-am33xx/ddr_defs_ti816x.h new file +2 -0
+#define CONFIG_TI816X_DDR3_796			/* Values supported 400,531,675,796 */
+#define CONFIG_TI816X_DDR3_SW_LEVELING	/* Enable software leveling as part of DDR3 init*/

Lines too long. Please run tools/checkpatch.pl on the whole series, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130328/351756dd/attachment.pgp>
#15 lore raw

PATCH 5/8 Add TI816X cpu definitions

In reply to a message not in the archive
---
 arch/arm/include/asm/arch-am33xx/cpu.h        |    4 +
 arch/arm/include/asm/arch-am33xx/cpu_ti816x.h |  269 +++++++++++++++++++++++++
 arch/arm/include/asm/emif.h                   |    4 +
 3 files changed, 277 insertions(+)
 create mode 100644 arch/arm/include/asm/arch-am33xx/cpu_ti816x.h
arch/arm/include/asm/arch-am33xx/cpu.h +4 -0
index 13c0667..34b3aa9 100644
@@ -25,6 +25,10 @@
 
 #include <asm/arch/hardware.h>
 
+#if defined(CONFIG_TI816X)
+#include <asm/arch/cpu_ti816x.h>
+#endif
+
 #define BIT(x)				(1 << x)
 #define CL_BIT(x)			(0 << x)
 
arch/arm/include/asm/arch-am33xx/cpu_ti816x.h new file +269 -0

269 lines not on this page · raw message

arch/arm/include/asm/emif.h +4 -0
index ed251ec..a7b938c 100644
@@ -521,7 +521,11 @@
 #define SDRAM_CONFIG_EXT_RD_LVL_4_SAMPLES	0x000001A7
 
 /* DMM */
+#if defined(CONFIG_TI816X)
+#define DMM_BASE			0x4E000000
+#else
 #define DMM_BASE			0x4E000040
+#endif
 
 /* Memory Adapter */
 #define MA_BASE				0x482AF040
Signature · 1 line
1.7.10.4
#16 lore raw

PATCH 5/8 Add TI816X cpu definitions

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"TENART" == TENART Antoine <[email protected]> writes:

TENART> ---

 TENART>  arch/arm/include/asm/arch-am33xx/cpu.h        |    4 +
 TENART>  arch/arm/include/asm/arch-am33xx/cpu_ti816x.h |  269 +++++++++++++++++++++++++
 TENART>  arch/arm/include/asm/emif.h                   |    4 +

TENART> 3 files changed, 277 insertions(+)
TENART> create mode 100644 arch/arm/include/asm/arch-am33xx/cpu_ti816x.h

TENART> diff --git a/arch/arm/include/asm/arch-am33xx/cpu.h b/arch/arm/include/asm/arch-am33xx/cpu.h TENART> index 13c0667..34b3aa9 100644
TENART> --- a/arch/arm/include/asm/arch-am33xx/cpu.h
TENART> +++ b/arch/arm/include/asm/arch-am33xx/cpu.h
TENART> @@ -25,6 +25,10 @@

TENART> #include <asm/arch/hardware.h>

TENART> +#if defined(CONFIG_TI816X)
TENART> +#include <asm/arch/cpu_ti816x.h>
TENART> +#endif
TENART> +
TENART> #define BIT(x) (1 << x)
TENART> #define CL_BIT(x) (0 << x)

TENART> diff --git a/arch/arm/include/asm/arch-am33xx/cpu_ti816x.h b/arch/arm/include/asm/arch-am33xx/cpu_ti816x.h TENART> new file mode 100644
TENART> index 0000000..b4a13a8
TENART> --- /dev/null
TENART> +++ b/arch/arm/include/asm/arch-am33xx/cpu_ti816x.h
TENART> @@ -0,0 +1,269 @@
TENART> +/*
TENART> + * cpu_ti816x.h
TENART> + *
TENART> + * Copyright (C) 2013, Adeneo Embedded <www.adeneo-embedded.com>
TENART> + * Antoine Tenart, <[email protected]>
TENART> + *
TENART> + * Based on TI-PSP-04.00.02.14 :
TENART> + *
TENART> + * (C) Copyright 2006
TENART> + * Texas Instruments, <www.ti.com>
TENART> + *
TENART> + * See file CREDITS for list of people who contributed to this
TENART> + * project.
TENART> + *
TENART> + * This program is free software; you can redistribute it and/or
TENART> + * modify it under the terms of the GNU General Public License as
TENART> + * published by the Free Software Foundation; either version 2 of
TENART> + * the License, or (at your option) any later version.
TENART> + *
TENART> + * This program is distributed in the hope that it will be useful,
TENART> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
TENART> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
TENART> + * GNU General Public License for more details.
TENART> + *
TENART> + * You should have received a copy of the GNU General Public License
TENART> + * along with this program; if not, write to the Free Software
TENART> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
TENART> + * MA 02111-1307 USA
TENART> + *
TENART> + */
TENART> +
TENART> +#ifndef _TI816X_CPU_H
TENART> +#define _TI816X_CPU_H
TENART> +
TENART> +#include <asm/arch/hardware.h>
TENART> +
TENART> +/* Timer registers */
TENART> +#define TIMER_TCLR 0x38 /* Timer control register */
TENART> +#define TIMER_TCRR 0x3C /* Timer counter register */
TENART> +#define TIMER_TLDR 0x40 /* Timer load value register*/
TENART> +

Are these defines all needed? As far as I can see from skimming the series, they aren't referenced anywhere.

TENART> diff --git a/arch/arm/include/asm/emif.h b/arch/arm/include/asm/emif.h TENART> index ed251ec..a7b938c 100644
TENART> --- a/arch/arm/include/asm/emif.h
TENART> +++ b/arch/arm/include/asm/emif.h
TENART> @@ -521,7 +521,11 @@
TENART> #define SDRAM_CONFIG_EXT_RD_LVL_4_SAMPLES 0x000001A7

TENART> /* DMM */
TENART> +#if defined(CONFIG_TI816X)
TENART> +#define DMM_BASE 0x4E000000
TENART> +#else
TENART> #define DMM_BASE 0x4E000040
TENART> +#endif

I don't think that's right. Matt's series uses DMM_BASE to refer to the lisa registers, which are offset 0x40 from the DMM region, so I think you can drop this.

Signature · 1 line
Bye, Peter Korsgaard
#17 lore raw

PATCH 5/8 Add TI816X cpu definitions

Quoted 11 lines

TENART> /* DMM */

  TENART>  +#if defined(CONFIG_TI816X)
  TENART>  +#define DMM_BASE			0x4E000000
  TENART>  +#else

TENART> #define DMM_BASE 0x4E000040
TENART> +#endif

I don't think that's right. Matt's series uses DMM_BASE to refer to the lisa registers, which are offset 0x40 from the DMM region, so I think you can drop this.

You're right, this is because I didn't use config_dmm(). I'll fix that.

#18 lore raw

PATCH 6/8 Add TI816X specific register definitions

In reply to a message not in the archive

Also move some non common defintions from hardware.h

---
 arch/arm/include/asm/arch-am33xx/hardware.h        |    7 +--
 arch/arm/include/asm/arch-am33xx/hardware_am33xx.h |    5 ++
 arch/arm/include/asm/arch-am33xx/hardware_ti814x.h |    5 ++
 arch/arm/include/asm/arch-am33xx/hardware_ti816x.h |   58 ++++++++++++++++++++
 4 files changed, 70 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm/include/asm/arch-am33xx/hardware_ti816x.h
arch/arm/include/asm/arch-am33xx/hardware.h +2 -5
index 5a27f9c..7f3b555 100644
@@ -23,6 +23,8 @@
 #include <asm/arch/omap.h>
 #ifdef CONFIG_AM33XX
 #include <asm/arch/hardware_am33xx.h>
+#elif defined(CONFIG_TI816X)
+#include <asm/arch/hardware_ti816x.h>
 #elif defined(CONFIG_TI814X)
 #include <asm/arch/hardware_ti814x.h>
 #endif
@@ -67,15 +69,10 @@
 /* DDR Base address */
 #define DDR_CTRL_ADDR			0x44E10E04
 #define DDR_CONTROL_BASE_ADDR		0x44E11404
-#define DDR_PHY_CMD_ADDR2		0x47C0C800
-#define DDR_PHY_DATA_ADDR2		0x47C0C8C8
 
 /* UART */
 #define DEFAULT_UART_BASE		UART0_BASE
 
-#define DDRPHY_0_CONFIG_BASE		(CTRL_BASE + 0x1400)
-#define DDRPHY_CONFIG_BASE		DDRPHY_0_CONFIG_BASE
-
 /* GPMC Base address */
 #define GPMC_BASE			0x50000000
 
arch/arm/include/asm/arch-am33xx/hardware_am33xx.h +5 -0
index fa02f19..49a4392 100644
@@ -43,8 +43,13 @@
 /* DDR Base address */
 #define DDR_PHY_CMD_ADDR		0x44E12000
 #define DDR_PHY_DATA_ADDR		0x44E120C8
+#define DDR_PHY_CMD_ADDR2		0x47C0C800
+#define DDR_PHY_DATA_ADDR2		0x47C0C8C8
 #define DDR_DATA_REGS_NR		2
 
+#define DDRPHY_0_CONFIG_BASE    (CTRL_BASE + 0x1400)
+#define DDRPHY_CONFIG_BASE      DDRPHY_0_CONFIG_BASE
+
 /* CPSW Config space */
 #define CPSW_MDIO_BASE			0x4A101000
 
arch/arm/include/asm/arch-am33xx/hardware_ti814x.h +5 -0
index a950ac3..ae0f370 100644
@@ -42,8 +42,13 @@
 /* DDR Base address */
 #define DDR_PHY_CMD_ADDR		0x47C0C400
 #define DDR_PHY_DATA_ADDR		0x47C0C4C8
+#define DDR_PHY_CMD_ADDR2		0x47C0C800
+#define DDR_PHY_DATA_ADDR2		0x47C0C8C8
 #define DDR_DATA_REGS_NR		4
 
+#define DDRPHY_0_CONFIG_BASE	(CTRL_BASE + 0x1400)
+#define DDRPHY_CONFIG_BASE		DDRPHY_0_CONFIG_BASE
+
 /* CPSW Config space */
 #define CPSW_MDIO_BASE			0x4A100800
 
arch/arm/include/asm/arch-am33xx/hardware_ti816x.h new file +58 -0

58 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#19 lore raw

PATCH 6/8 Add TI816X specific register definitions

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"TENART" == TENART Antoine <[email protected]> writes:

TENART> Also move some non common defintions from hardware.h TENART> ---

 TENART>  arch/arm/include/asm/arch-am33xx/hardware.h        |    7 +--
 TENART>  arch/arm/include/asm/arch-am33xx/hardware_am33xx.h |    5 ++
 TENART>  arch/arm/include/asm/arch-am33xx/hardware_ti814x.h |    5 ++
 TENART>  arch/arm/include/asm/arch-am33xx/hardware_ti816x.h |   58 ++++++++++++++++++++

TENART> 4 files changed, 70 insertions(+), 5 deletions(-) TENART> create mode 100644 arch/arm/include/asm/arch-am33xx/hardware_ti816x.h

..

TENART> +#define DDRPHY_0_CONFIG_BASE 0x48198000
TENART> +#define DDRPHY_1_CONFIG_BASE 0x4819a000
TENART> +#define DDRPHY_CONFIG_BASE ((emif == 0) ? DDRPHY_0_CONFIG_BASE:DDRPHY_1_CONFIG_BASE)
TENART> +
TENART> +/* CPSW Config space */
TENART> +#define CPSW_MDIO_BASE 0x4A100800

ti816x doesn't have CPSW, so the name is a bit odd (the base address matches the emac mdio module). The emac driver expects an asm/arch/emac_defs.h header with a EMAC_MDIO_BASE_ADDR define (among others).

Perhaps just drop it from here as you're not adding emac support in this series anyway.

Signature · 1 line
Bye, Peter Korsgaard
#20 lore raw

PATCH 6/8 Add TI816X specific register definitions

Quoted 20 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"TENART" == TENART Antoine <[email protected]> writes:

TENART> Also move some non common defintions from hardware.h TENART> ---

 TENART>  arch/arm/include/asm/arch-am33xx/hardware.h        |    7 +--
 TENART>  arch/arm/include/asm/arch-am33xx/hardware_am33xx.h |    5 ++
 TENART>  arch/arm/include/asm/arch-am33xx/hardware_ti814x.h |    5 ++
 TENART>  arch/arm/include/asm/arch-am33xx/hardware_ti816x.h |   58 ++++++++++++++++++++

TENART> 4 files changed, 70 insertions(+), 5 deletions(-) TENART> create mode 100644 arch/arm/include/asm/arch-am33xx/hardware_ti816x.h

..

TENART> +#define DDRPHY_0_CONFIG_BASE 0x48198000
TENART> +#define DDRPHY_1_CONFIG_BASE 0x4819a000
TENART> +#define DDRPHY_CONFIG_BASE ((emif == 0) ? DDRPHY_0_CONFIG_BASE:DDRPHY_1_CONFIG_BASE)
TENART> +
TENART> +/* CPSW Config space */
TENART> +#define CPSW_MDIO_BASE 0x4A100800

Quoted 7 lines

ti816x doesn't have CPSW, so the name is a bit odd (the base address matches the emac mdio module). The emac driver expects an asm/arch/emac_defs.h header with a EMAC_MDIO_BASE_ADDR define (among others).

Perhaps just drop it from here as you're not adding emac support in this series anyway.

Agreed, and please check the whole series over for other unused defines. We shouldn't import things we aren't using.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130328/c045bc39/attachment.pgp>
#21 lore raw

PATCH 7/8 Add TI816X mmc clock reference

In reply to a message not in the archive
---
 arch/arm/include/asm/arch-am33xx/mmc_host_def.h |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/include/asm/arch-am33xx/mmc_host_def.h +2 -0
index e0a3b8b..09d7a77 100644
@@ -155,6 +155,8 @@ typedef struct hsmmc {
 /* Clock Configurations and Macros */
 #ifdef CONFIG_AM33XX
 #define MMC_CLOCK_REFERENCE	96 /* MHz */
+#elif defined(CONFIG_TI816X)
+#define MMC_CLOCK_REFERENCE	48 /* MHz */
 #elif defined(CONFIG_TI814X)
 #define MMC_CLOCK_REFERENCE	192 /* MHz */
 #endif
Signature · 1 line
1.7.10.4
#23 lore raw

PATCH 8/8 Add TI816X evm board support

In reply to a message not in the archive
---
 MAINTAINERS                            |    4 +
 arch/arm/include/asm/arch-am33xx/spl.h |    9 +
 board/ti/ti816x/Makefile               |   48 ++
 board/ti/ti816x/evm.c                  |  753 ++++++++++++++++++++++++++++++++
 boards.cfg                             |    1 +
 include/configs/ti816x_evm.h           |  172 ++++++++
 6 files changed, 987 insertions(+)
 create mode 100644 board/ti/ti816x/Makefile
 create mode 100644 board/ti/ti816x/evm.c
 create mode 100644 include/configs/ti816x_evm.h
MAINTAINERS +4 -0
index 6b2202c..3aaac7f 100644
@@ -922,6 +922,10 @@ Lucas Stach <[email protected]>
 
 	colibri_t20_iris	Tegra20 (ARM7 & A9 Dual Core)
 
+Antoine Tenart <[email protected]>
+
+	TI816X		ARM ARMV7 (TI816x Soc)
+
 Nick Thompson <[email protected]>
 
 	da830evm	ARM926EJS (DA830/OMAP-L137)
arch/arm/include/asm/arch-am33xx/spl.h +9 -0
index 9b5fe9e..d0c1ec9 100644
@@ -23,6 +23,14 @@
 #ifndef	_ASM_ARCH_SPL_H_
 #define	_ASM_SPL_H_
 
+#if defined(CONFIG_TI816X)
+#define BOOT_DEVICE_XIP		2
+#define BOOT_DEVICE_NAND	3
+#define BOOT_DEVICE_MMC1	6
+#define BOOT_DEVICE_MMC2	5
+#define BOOT_DEVICE_UART	0x43
+#define BOOT_DEVICE_MMC2_2	0xFF
+#else
 #define BOOT_DEVICE_XIP       	2
 #define BOOT_DEVICE_NAND	5
 #ifdef CONFIG_AM33XX
@@ -37,3 +45,4 @@
 #define BOOT_DEVICE_CPGMAC	70
 #define BOOT_DEVICE_MMC2_2      0xFF
 #endif
+#endif
board/ti/ti816x/Makefile new file +48 -0

48 lines not on this page · raw message

board/ti/ti816x/evm.c new file +753 -0

753 lines not on this page · raw message

boards.cfg +1 -0
index c98495a..aab56b9 100644
@@ -239,6 +239,7 @@ am335x_evm_uart3             arm         armv7       am335x              ti
 am335x_evm_uart4             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL5,CONS_INDEX=5
 am335x_evm_uart5             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL6,CONS_INDEX=6
 ti814x_evm                   arm         armv7       ti814x              ti             am33xx
+ti816x_evm                   arm         armv7       ti816x              ti             am33xx
 pcm051                       arm         armv7       pcm051              phytec         am33xx      pcm051
 highbank                     arm         armv7       highbank            -              highbank
 mx51_efikamx                 arm         armv7       mx51_efikamx        genesi         mx5		mx51_efikamx:MACH_TYPE=MACH_TYPE_MX51_EFIKAMX,IMX_CONFIG=board/genesi/mx51_efikamx/imximage_mx.cfg
include/configs/ti816x_evm.h new file +172 -0

172 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#24 lore raw

PATCH 8/8 Add TI816X evm board support

Quoted 5 lines · TENART Antoine
---
 MAINTAINERS                            |    4 +
 arch/arm/include/asm/arch-am33xx/spl.h |    9 +
 board/ti/ti816x/Makefile               |   48 ++
 board/ti/ti816x/evm.c                  |  753 ++++++++++++++++++++++++++++++++

This file has a large number of style problems, both things I know checkpatch will catch as well as inconsistent spacing throughout and /*
* All multiline comments must look
* like this.
*/

[snip]

Quoted 2 lines

+#define CONFIG_SYS_BAUDRATE_TABLE { 110, 300, 600, 1200, 2400, \
+4800, 9600, 14400, 19200, 28800, 38400, 56000, 57600, 115200 }

Please use the fallback table instead of this. And I snipped it before I recalled, but you also should have enough memory to keep longhelp :)

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130328/03a074ac/attachment.pgp>