Skip to contentSkip to conversation

sbc8641d: fix LAW so board doesn't hang on DDR init

PATCH New Paul Gortmaker 2 participants 2 messages Sep 30, 2009 – Oct 8, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sbc8641d: fix LAW so board doesn't hang on DDR init

All versions between now and since this commit:

commit bd76729bcbfd64b5d016a9b936f058931fc06eaf
MPC86xx: set CONFIG_MAX_MEM_MAPPED to 2G by default

will fail to allow the SBC8641D to get past DDR init, because the LAW config was overlapping. Eventually this board will do SPD EEPROM config, but for now this gets the board working again.

---
 board/sbc8641d/law.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
board/sbc8641d/law.c +4 -1
index 760c693..d20fa51 100644
@@ -44,14 +44,17 @@
 
 
 struct law_entry law_table[] = {
+#if !defined(CONFIG_SPD_EEPROM)
 	SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR_1),
+	SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE + 0x10000000,
+		 LAW_SIZE_256M, LAW_TRGT_IF_DDR_2),
+#endif
 	SET_LAW(CONFIG_SYS_PCI1_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_1),
 	SET_LAW(CONFIG_SYS_PCI2_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_PCI_2),
 	SET_LAW(0xf8000000, LAW_SIZE_2M, LAW_TRGT_IF_LBC),
 	SET_LAW(CONFIG_SYS_PCI1_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI_1),
 	SET_LAW(CONFIG_SYS_PCI2_IO_PHYS, LAW_SIZE_16M, LAW_TRGT_IF_PCI_2),
 	SET_LAW(0xfe000000, LAW_SIZE_32M, LAW_TRGT_IF_LBC),
-	SET_LAW(CONFIG_SYS_DDR_SDRAM_BASE, LAW_SIZE_256M, LAW_TRGT_IF_DDR_2),
 	SET_LAW(CONFIG_SYS_RIO_MEM_PHYS, LAW_SIZE_512M, LAW_TRGT_IF_RIO)
 };
 
Signature · 1 line
1.6.5.rc1
Applied
#1 lore raw

PATCH 1/1 sbc8641d: fix LAW so board doesn't hang on DDR init

Quoted 5 lines · Paul Gortmaker

All versions between now and since this commit:

commit bd76729bcbfd64b5d016a9b936f058931fc06eaf
MPC86xx: set CONFIG_MAX_MEM_MAPPED to 2G by default

Quoted 8 lines

will fail to allow the SBC8641D to get past DDR init, because the LAW config was overlapping. Eventually this board will do SPD EEPROM config, but for now this gets the board working again.

---
board/sbc8641d/law.c | 5 ++++-

1 files changed, 4 insertions(+), 1 deletions(-)

applied to 85xx

- k