Skip to contentSkip to conversation

am335x: Minor fixes

PATCH New Tom Rini 2 participants 5 messages Oct 21, 2011 – Oct 28, 2011 Arm (32-bit)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

cover am335x: Minor fixes

Hey all,

As part of bringing over SPL support (which I'll post as soon as I can figure out why this code doesn't run for me), I ran into the following two fixes being needed.

Signature · 1 line
Tom
author
#1 lore raw

PATCH 1/2 am335x: Temporarily add MACH_TYPE define

This is registered and can be removed at the next sync up.

---
 include/configs/am335x_evm.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/configs/am335x_evm.h +1 -0
index b471c9b..26a3c96 100644
@@ -32,6 +32,7 @@
 #define CONFIG_SYS_MALLOC_LEN		(CONFIG_ENV_SIZE + (8 * 1024))
 #define CONFIG_SYS_PROMPT		"AM335X# "
 #define CONFIG_SYS_NO_FLASH
+#define MACH_TYPE_TIAM335EVM		3589	/* Until the next sync */
 #define CONFIG_MACH_TYPE		MACH_TYPE_TIAM335EVM
 
 #define CONFIG_CMD_ASKENV
Signature · 1 line
1.7.0.4
author
#2 lore raw

PATCH 2/2 am335x: Drop board_sysinfo struct

In reply to Tom Rini

This isn't used presumably should be a typedef if needed later.

---
 arch/arm/include/asm/arch-am33xx/sys_proto.h |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
arch/arm/include/asm/arch-am33xx/sys_proto.h +0 -7
index 1e265c6..09ed650 100644
@@ -20,13 +20,6 @@
 #define _SYS_PROTO_H_
 
 #define BOARD_REV_ID	0x0
-struct {
-	u32 board_type_v1;
-	u32 board_type_v2;
-	u32 mtype;
-	char *board_string;
-	char *nand_string;
-} board_sysinfo;
 
 u32 get_cpu_rev(void);
 u32 get_sysboot_value(void);
Signature · 1 line
1.7.0.4
#3 lore raw

PATCH 2/2 am335x: Drop board_sysinfo struct

Hi Tom,

Le 22/10/2011 00:23, Tom Rini a ?crit :

Quoted 1 line

This isn't used presumably should be a typedef if needed later.

Note: IIUC, typedefs are frowned upon in U-Boot.

Amicalement,

Signature · 1 line
Albert.
#4 lore raw

cover am335x: Minor fixes

In reply to Tom Rini

Hi Tom,

Le 22/10/2011 00:23, Tom Rini a ?crit :

Quoted 5 lines

Hey all,

As part of bringing over SPL support (which I'll post as soon as I can figure out why this code doesn't run for me), I ran into the following two fixes being needed.

Patch set applied to u-boot-arm/master as a bugfix to the MACH_TYPE issue, thanks!

Amicalement,

Signature · 1 line
Albert.