X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=board%2Farmltd%2Fvexpress%2Fvexpress_common.c;h=8fea8ff35294cab8d3bc4fe9b6263feb432a6df1;hb=5a1a8a63be8f7262a300eddafb18020926b12fb6;hp=458f1d81483489b63e68189cafbaa55978a97e36;hpb=76b00aca4f1c13bc8f91a539e612abc70d0c692f;p=platform%2Fkernel%2Fu-boot.git diff --git a/board/armltd/vexpress/vexpress_common.c b/board/armltd/vexpress/vexpress_common.c index 458f1d8..8fea8ff 100644 --- a/board/armltd/vexpress/vexpress_common.c +++ b/board/armltd/vexpress/vexpress_common.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2002 * Sysgo Real-Time Solutions, GmbH @@ -13,14 +14,17 @@ * (C) Copyright 2004 * ARM Ltd. * Philippe Robin, - * - * SPDX-License-Identifier: GPL-2.0+ */ #include +#include +#include +#include #include #include +#include #include #include +#include #include #include #include @@ -51,7 +55,6 @@ int board_init(void) { gd->bd->bi_boot_params = LINUX_BOOT_PARAM_ADDR; gd->bd->bi_arch_number = MACH_TYPE_VEXPRESS; - gd->flags = 0; icache_enable(); flash__init(); @@ -60,7 +63,7 @@ int board_init(void) return 0; } -int board_eth_init(bd_t *bis) +int board_eth_init(struct bd_info *bis) { int rc = 0; #ifdef CONFIG_SMC911X @@ -69,12 +72,13 @@ int board_eth_init(bd_t *bis) return rc; } -int cpu_mmc_init(bd_t *bis) +int cpu_mmc_init(struct bd_info *bis) { int rc = 0; (void) bis; #ifdef CONFIG_ARM_PL180_MMCI struct pl180_mmc_host *host; + struct mmc *mmc; host = malloc(sizeof(struct pl180_mmc_host)); if (!host) @@ -90,7 +94,7 @@ int cpu_mmc_init(bd_t *bis) host->clock_in = ARM_MCLK; host->clock_min = ARM_MCLK / (2 * (SDI_CLKCR_CLKDIV_INIT_V1 + 1)); host->clock_max = CONFIG_ARM_PL180_MMCI_CLOCK_FREQ; - rc = arm_pl180_mmci_init(host); + rc = arm_pl180_mmci_init(host, &mmc); #endif return rc; }