X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=arch%2Farm%2Fmach-tegra%2Fboard186.c;h=80b55707e90f2eab5466bbc59eb4f8e648dc86c1;hb=b52e9f0cb748d2a2ae26db62072294b9cccdb86f;hp=f4b6152a79374b3f9d87090e9ff33b854f9b634c;hpb=ffd859979e2a84bccc14188d9fa760b2e4813515;p=oweals%2Fu-boot.git diff --git a/arch/arm/mach-tegra/board186.c b/arch/arm/mach-tegra/board186.c index f4b6152a79..80b55707e9 100644 --- a/arch/arm/mach-tegra/board186.c +++ b/arch/arm/mach-tegra/board186.c @@ -1,55 +1,32 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 2016, NVIDIA CORPORATION. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include -#include -#include - -DECLARE_GLOBAL_DATA_PTR; - -int dram_init(void) -{ - gd->ram_size = (1.5 * 1024 * 1024 * 1024); - return 0; -} int board_early_init_f(void) { return 0; } -int board_init(void) -{ - return 0; -} - -int board_late_init(void) +__weak int tegra_board_init(void) { return 0; } -void dram_init_banksize(void) -{ - gd->bd->bi_dram[0].start = CONFIG_SYS_SDRAM_BASE; - gd->bd->bi_dram[0].size = gd->ram_size; -} - -void pad_init_mmc(struct mmc_host *host) +int board_init(void) { + return tegra_board_init(); } -int board_mmc_init(bd_t *bd) +__weak int tegra_soc_board_init_late(void) { - tegra_mmc_init(); - return 0; } -int ft_system_setup(void *blob, bd_t *bd) +int board_late_init(void) { - return 0; + return tegra_soc_board_init_late(); }