blob: 7a19400041e44cc27bc840a2ee312dfc56b209b5 [file] [log] [blame]
Trevor Woernerabec6dc2021-06-10 22:37:04 -04001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Board init file for Embedded Artists LPC3250 DevKit v2
4 * Copyright (C) 2021 Trevor Woerner <twoerner@gmail.com>
5 */
6
7#include <init.h>
8#include <common.h>
9#include <asm/io.h>
10#include <asm/global_data.h>
11
12#include <asm/arch/clk.h>
13#include <asm/arch/wdt.h>
14#include <asm/arch/sys_proto.h>
15
16DECLARE_GLOBAL_DATA_PTR;
17
18int
19board_early_init_f(void)
20{
21 lpc32xx_uart_init(CONFIG_CONS_INDEX);
22 return 0;
23}
24
25int
26board_init(void)
27{
28 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x2000;
29 return 0;
30}
31
32int
33dram_init(void)
34{
35 gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, SZ_64M);
36 return 0;
37}