int board_init(void) { gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL); #if defined CONFIG_EXYNOS_TMU if (tmu_init(gd->fdt_blob) != TMU_STATUS_NORMAL) { debug("%s: Failed to init TMU\n", __func__); return -1; } boot_temp_check(); #endif return exynos_init(); }
int board_init(void) { gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL); #if defined CONFIG_EXYNOS_TMU if (tmu_init(gd->fdt_blob) != TMU_STATUS_NORMAL) { debug("%s: Failed to init TMU\n", __func__); return -1; } boot_temp_check(); #endif #ifdef CONFIG_TZSW_RESERVED_DRAM_SIZE /* The last few MB of memory can be reserved for secure firmware */ ulong size = CONFIG_TZSW_RESERVED_DRAM_SIZE; gd->ram_size -= size; gd->bd->bi_dram[CONFIG_NR_DRAM_BANKS - 1].size -= size; #endif return exynos_init(); }