summaryrefslogtreecommitdiff
path: root/board/xes/xpedite5200/xpedite5200.c
diff options
context:
space:
mode:
authorJohn Schmoller <jschmoller@xes-inc.com>2010-10-22 00:20:24 -0500
committerKumar Gala <galak@kernel.crashing.org>2010-10-22 02:17:16 -0500
commit92af6549b8c52e9c973e4e197aa4d1edf4df5803 (patch)
treee190db70b9f506251792b1cdd6585534a017ee91 /board/xes/xpedite5200/xpedite5200.c
parent96d6160324c49c81df10b6b4c75d2470cb30dce4 (diff)
downloadu-boot-imx-92af6549b8c52e9c973e4e197aa4d1edf4df5803.zip
u-boot-imx-92af6549b8c52e9c973e4e197aa4d1edf4df5803.tar.gz
u-boot-imx-92af6549b8c52e9c973e4e197aa4d1edf4df5803.tar.bz2
xes: Consolidate checkboard()
Create a common checkboard() function to support all X-ES's Freescale boards. Also, add a get_board_derivative() function which reads hardware strapping resistors to determine what model a board is. This allows one U-Boot image to support multiple boards. Signed-off-by: John Schmoller <jschmoller@xes-inc.com> Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/xes/xpedite5200/xpedite5200.c')
-rw-r--r--board/xes/xpedite5200/xpedite5200.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/board/xes/xpedite5200/xpedite5200.c b/board/xes/xpedite5200/xpedite5200.c
index a2627f8..dc5c965 100644
--- a/board/xes/xpedite5200/xpedite5200.c
+++ b/board/xes/xpedite5200/xpedite5200.c
@@ -36,33 +36,6 @@
extern void ft_board_pci_setup(void *blob, bd_t *bd);
-int checkboard(void)
-{
- volatile fsl_lbc_t *lbc = LBC_BASE_ADDR;
- volatile ccsr_local_ecm_t *ecm = (void *)(CONFIG_SYS_MPC85xx_ECM_ADDR);
- char *s;
-
- printf("Board: X-ES %s PMC\n", CONFIG_SYS_BOARD_NAME);
- printf(" ");
- s = getenv("board_rev");
- if (s)
- printf("Rev %s, ", s);
- s = getenv("serial#");
- if (s)
- printf("Serial# %s, ", s);
- s = getenv("board_cfg");
- if (s)
- printf("Cfg %s", s);
- printf("\n");
-
- out_be32(&lbc->ltesr, 0xffffffff); /* Clear LBC error IRQs */
- out_be32(&lbc->lteir, 0xffffffff); /* Enable LBC error IRQs */
- out_be32(&ecm->eedr, 0xffffffff); /* Clear ecm errors */
- out_be32(&ecm->eeer, 0xffffffff); /* Enable ecm errors */
-
- return 0;
-}
-
static void flash_cs_fixup(void)
{
int flash_sel;