2 * Copyright (c) 2012 The Chromium OS Authors.
4 * SPDX-License-Identifier: GPL-2.0+
8 #include <asm/arch/cpu.h>
9 #include <asm/arch/spl.h>
10 #include <asm/arch/clk.h>
12 #define SIGNATURE 0xdeadbeef
14 /* Parameters of early board initialization in SPL */
15 static struct spl_machine_param machine_param
16 __attribute__((section(".machine_param"))) = {
17 .signature = SIGNATURE,
19 .params = "vmubfasirM",
20 .size = sizeof(machine_param),
23 .mem_type = DDR_MODE_DDR3,
26 * Set uboot_size to 0x100000 bytes.
28 * This is an overly conservative value chosen to accommodate all
29 * possible U-Boot image. You are advised to set this value to a
30 * smaller realistic size via scripts that modifies the .machine_param
31 * section of output U-Boot image.
33 .uboot_size = 0x100000,
35 .boot_source = BOOT_MODE_OM,
38 .serial_base = 0x12c30000,
39 .i2c_base = 0x12c60000,
40 .mem_manuf = MEM_MANUF_SAMSUNG,
43 struct spl_machine_param *spl_get_machine_params(void)
45 if (machine_param.signature != SIGNATURE) {
46 /* Will hang if SIGNATURE dont match */
51 return &machine_param;