[U-Boot] [PATCH 1/6] ppc4xx: Handle other board variant in PMC440 FPGA code
matthias.fuchs at esd-electronics.com
matthias.fuchs at esd-electronics.com
Wed Oct 8 18:20:06 CEST 2008
From: Matthias Fuchs <matthias.fuchs at esd-electronics.com>
Signed-off-by: Matthias Fuchs <matthias.fuchs at 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
More information about the U-Boot
mailing list