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