public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ppc4xx: update PMC440 board support
@ 2014-10-23 15:50 Matthias Fuchs
  2014-10-23 16:09 ` Anatolij Gustschin
  0 siblings, 1 reply; 4+ messages in thread
From: Matthias Fuchs @ 2014-10-23 15:50 UTC (permalink / raw)
  To: u-boot

- switch to GENERIC_BOARD
- fix env support from eeprom

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
---
 board/esd/pmc440/cmd_pmc440.c |    6 +++---
 include/configs/PMC440.h      |    3 +++
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/board/esd/pmc440/cmd_pmc440.c b/board/esd/pmc440/cmd_pmc440.c
index 3481e46..40b135f 100644
--- a/board/esd/pmc440/cmd_pmc440.c
+++ b/board/esd/pmc440/cmd_pmc440.c
@@ -347,16 +347,16 @@ int do_painit(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 		return 1;
 	}
 
-	base = gd->bd->bi_memsize;
+	base = (u32)gd->ram_size;
 #if defined(CONFIG_LOGBUFFER)
 	base -= LOGBUFF_LEN + LOGBUFF_OVERHEAD;
 #endif
 	/*
-	 * gd->bd->bi_memsize == physical ram size - CONFIG_SYS_MEM_TOP_HIDE
+	 * gd->ram_size == physical ram size - CONFIG_SYS_MEM_TOP_HIDE
 	 */
 	param = base - (pram << 10);
 	printf("PARAM: @%08x\n", param);
-	debug("memsize=0x%08x, base=0x%08x\n", (u32)gd->bd->bi_memsize, base);
+	debug("memsize=0x%08x, base=0x%08x\n", (u32)gd->ram_size, base);
 
 	/* clear entire PA ram */
 	memset((void*)param, 0, (pram << 10));
diff --git a/include/configs/PMC440.h b/include/configs/PMC440.h
index c5e2f16..dc2c976 100644
--- a/include/configs/PMC440.h
+++ b/include/configs/PMC440.h
@@ -29,6 +29,8 @@
 #define CONFIG_SYS_TEXT_BASE	0xFFF90000
 #endif
 
+#define CONFIG_SYS_GENERIC_BOARD
+
 #define CONFIG_SYS_CLK_FREQ	33333400
 
 #if 0 /* temporary disabled because OS/9 does not like dcache on startup */
@@ -133,6 +135,7 @@
 #endif
 
 #ifdef CONFIG_ENV_IS_IN_EEPROM
+#define CONFIG_I2C_ENV_EEPROM_BUS	0
 #define CONFIG_ENV_OFFSET		0	/* environment starts@the beginning of the EEPROM */
 #define CONFIG_ENV_SIZE		0x1000	/* 4096 bytes may be used for env vars */
 #endif
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] ppc4xx: Handle other board variant in PMC440 FPGA code
@ 2008-10-28 12:36 matthias.fuchs at esd-electronics.com
  2008-10-28 12:36 ` [U-Boot] [PATCH] ppc4xx: Clean up PMC440 header matthias.fuchs at esd-electronics.com
  0 siblings, 1 reply; 4+ messages in thread
From: matthias.fuchs at esd-electronics.com @ 2008-10-28 12:36 UTC (permalink / raw)
  To: u-boot

From: Matthias Fuchs <matthias.fuchs@esd-electronics.com>

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
---
 board/esd/pmc440/fpga.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/board/esd/pmc440/fpga.c b/board/esd/pmc440/fpga.c
index a35f42b..a2eda32 100644
--- a/board/esd/pmc440/fpga.c
+++ b/board/esd/pmc440/fpga.c
@@ -220,8 +220,9 @@ int fpga_post_config_fn(int cookie)
 
 	FPGA_OUT32(&fpga->status, (gd->board_type << STATUS_HWREV_SHIFT) & STATUS_HWREV_MASK);
 
-	/* NGCC only: enable ledlink */
-	if ((s = getenv("bd_type")) && !strcmp(s, "ngcc"))
+	/* NGCC/CANDES only: enable ledlink */
+	if ((s = getenv("bd_type")) &&
+	    ((!strcmp(s, "ngcc")) || (!strcmp(s, "candes"))))
 		FPGA_SETBITS(&fpga->ctrla, 0x29f8c000);
 
 	return rc;
-- 
1.5.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-24 10:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-23 15:50 [U-Boot] [PATCH] ppc4xx: update PMC440 board support Matthias Fuchs
2014-10-23 16:09 ` Anatolij Gustschin
2014-10-24 10:52   ` Matthias Fuchs
  -- strict thread matches above, loose matches on Subject: below --
2008-10-28 12:36 [U-Boot] [PATCH] ppc4xx: Handle other board variant in PMC440 FPGA code matthias.fuchs at esd-electronics.com
2008-10-28 12:36 ` [U-Boot] [PATCH] ppc4xx: Clean up PMC440 header matthias.fuchs at esd-electronics.com
2008-10-28 12:36   ` [U-Boot] [PATCH] ppc4xx: Fix esd loadpci command matthias.fuchs at esd-electronics.com
2008-10-28 12:36     ` [U-Boot] [PATCH] ppc4xx: Update PMC440 board configuration matthias.fuchs at esd-electronics.com
2008-10-28 12:36       ` [U-Boot] [PATCH] ppc4xx: Fix PMC440 BSP commands matthias.fuchs at esd-electronics.com
2008-10-28 12:37         ` [U-Boot] [PATCH] ppc4xx: Update PMC440 board support matthias.fuchs at esd-electronics.com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox