mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-15 15:46:16 +09:00
arm:exynos: enable sdhci and misc_init to common board
This patch enables sdhci initialisation and misc_init_r in common board file for all exynos 4 based boards. Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
d31b388859
commit
431a1c569c
|
@ -22,6 +22,8 @@
|
||||||
#include <asm/arch/power.h>
|
#include <asm/arch/power.h>
|
||||||
#include <power/pmic.h>
|
#include <power/pmic.h>
|
||||||
#include <asm/arch/sromc.h>
|
#include <asm/arch/sromc.h>
|
||||||
|
#include <lcd.h>
|
||||||
|
#include <samsung/misc.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
@ -183,6 +185,7 @@ int power_init_board(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_OF_CONTROL
|
#ifdef CONFIG_OF_CONTROL
|
||||||
|
#ifdef CONFIG_SMC911X
|
||||||
static int decode_sromc(const void *blob, struct fdt_sromc *config)
|
static int decode_sromc(const void *blob, struct fdt_sromc *config)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
@ -206,6 +209,7 @@ static int decode_sromc(const void *blob, struct fdt_sromc *config)
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int board_eth_init(bd_t *bis)
|
int board_eth_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
|
@ -263,10 +267,18 @@ int board_mmc_init(bd_t *bis)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
#ifdef CONFIG_SDHCI
|
||||||
|
/* mmc initializattion for available channels */
|
||||||
|
ret = exynos_mmc_init(gd->fdt_blob);
|
||||||
|
if (ret)
|
||||||
|
debug("mmc init failed\n");
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_DWMMC
|
||||||
/* dwmmc initializattion for available channels */
|
/* dwmmc initializattion for available channels */
|
||||||
ret = exynos_dwmmc_init(gd->fdt_blob);
|
ret = exynos_dwmmc_init(gd->fdt_blob);
|
||||||
if (ret)
|
if (ret)
|
||||||
debug("dwmmc init failed\n");
|
debug("dwmmc init failed\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -315,3 +327,21 @@ int arch_early_init_r(void)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_MISC_INIT_R
|
||||||
|
int misc_init_r(void)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
|
||||||
|
set_board_info();
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_LCD_MENU
|
||||||
|
keys_init();
|
||||||
|
check_boot_mode();
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_CMD_BMP
|
||||||
|
if (panel_info.logo_on)
|
||||||
|
draw_logo();
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user