From fa45bd498a1970574f4b7539b67cc2286f1324fa Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 3 Nov 2009 06:28:22 -0500 Subject: Blackfin: kill off useless initdram() usage While the initdram() function makes sense on some arches, it doesn't for Blackfin systems as it's always implemented the same way. Signed-off-by: Mike Frysinger --- board/bf548-ezkit/bf548-ezkit.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'board/bf548-ezkit/bf548-ezkit.c') diff --git a/board/bf548-ezkit/bf548-ezkit.c b/board/bf548-ezkit/bf548-ezkit.c index 88a0cd4..29c2e92 100644 --- a/board/bf548-ezkit/bf548-ezkit.c +++ b/board/bf548-ezkit/bf548-ezkit.c @@ -21,13 +21,6 @@ int checkboard(void) return 0; } -phys_size_t initdram(int board_type) -{ - gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE; - gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE; - return gd->bd->bi_memsize; -} - int board_early_init_f(void) { /* Port H: PH8 - PH13 == A4 - A9 -- cgit v1.1 From e54c8209913a3f26ae28819e3515df53ec2b4548 Mon Sep 17 00:00:00 2001 From: Cliff Cai Date: Fri, 20 Nov 2009 08:24:43 +0000 Subject: Blackfin: convert bfin_sdh to generic mmc Signed-off-by: Cliff Cai Signed-off-by: Mike Frysinger --- board/bf548-ezkit/bf548-ezkit.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'board/bf548-ezkit/bf548-ezkit.c') diff --git a/board/bf548-ezkit/bf548-ezkit.c b/board/bf548-ezkit/bf548-ezkit.c index 29c2e92..7659e34 100644 --- a/board/bf548-ezkit/bf548-ezkit.c +++ b/board/bf548-ezkit/bf548-ezkit.c @@ -11,6 +11,7 @@ #include #include #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -78,3 +79,10 @@ int board_eth_init(bd_t *bis) return smc911x_initialize(0, CONFIG_SMC911X_BASE); } #endif + +#ifdef CONFIG_BFIN_SDH +int board_mmc_init(bd_t *bis) +{ + return bfin_mmc_init(bis); +} +#endif -- cgit v1.1 From 9442c4a1337dbcf82e3bc02a12e24f491e0e6122 Mon Sep 17 00:00:00 2001 From: Cliff Cai Date: Tue, 8 Dec 2009 07:25:57 +0000 Subject: Blackfin: bf527-ezkit/bf548-ezkit: add musb board specific initialization Signed-off-by: Cliff Cai Signed-off-by: Mike Frysinger --- board/bf548-ezkit/bf548-ezkit.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'board/bf548-ezkit/bf548-ezkit.c') diff --git a/board/bf548-ezkit/bf548-ezkit.c b/board/bf548-ezkit/bf548-ezkit.c index 7659e34..65fb81a 100644 --- a/board/bf548-ezkit/bf548-ezkit.c +++ b/board/bf548-ezkit/bf548-ezkit.c @@ -86,3 +86,19 @@ int board_mmc_init(bd_t *bis) return bfin_mmc_init(bis); } #endif + +#ifdef CONFIG_USB_BLACKFIN +void board_musb_init(void) +{ + /* + * Rev 1.0 BF549 EZ-KITs require PE7 to be high for both device + * and OTG host modes, while rev 1.1 and greater require PE7 to + * be low for device mode and high for host mode. We set it high + * here because we are in host mode. + */ + bfin_write_PORTE_FER(bfin_read_PORTE_FER() & ~PE7); + bfin_write_PORTE_DIR_SET(PE7); + bfin_write_PORTE_SET(PE7); + SSYNC(); +} +#endif -- cgit v1.1