]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/configs/rk3288_common.h
Convert CONFIG_USE_PREBOOT and CONFIG_PREBOOT to Kconfig
[thirdparty/u-boot.git] / include / configs / rk3288_common.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
17aa548c
SG
2/*
3 * (C) Copyright 2015 Google, Inc
17aa548c
SG
4 */
5
6#ifndef __CONFIG_RK3288_COMMON_H
7#define __CONFIG_RK3288_COMMON_H
8
15f09a1a 9#include <asm/arch-rockchip/hardware.h>
7f35bbb9 10#include "rockchip-common.h"
17aa548c 11
70c2f590
SS
12#define CONFIG_SYS_BOOTM_LEN (16 << 20) /* 16MB */
13
5a4a90f6 14#define CONFIG_SKIP_LOWLEVEL_INIT_ONLY
17aa548c
SG
15#define CONFIG_SYS_MALLOC_LEN (32 << 20)
16#define CONFIG_SYS_CBSIZE 1024
17aa548c 17
ae5a3659
KY
18#define CONFIG_ROCKCHIP_STIMER_BASE 0xff810020
19#define COUNTER_FREQUENCY 24000000
20#define CONFIG_SYS_ARCH_TIMER
21#define CONFIG_SYS_HZ_CLOCK 24000000
17aa548c 22
ee14d29d 23#ifdef CONFIG_SPL_ROCKCHIP_BACK_TO_BROM
b47ea792 24/* Bootrom will load u-boot binary to 0x0 once return from SPL */
b47ea792 25#endif
17aa548c
SG
26#define CONFIG_SYS_INIT_SP_ADDR 0x00100000
27#define CONFIG_SYS_LOAD_ADDR 0x00800800
28#define CONFIG_SPL_STACK 0xff718000
17aa548c 29
5f246808
KY
30#define CONFIG_IRAM_BASE 0xff700000
31
17aa548c 32/* RAW SD card / eMMC locations. */
17aa548c
SG
33#define CONFIG_SYS_SPI_U_BOOT_OFFS (128 << 10)
34
35/* FAT sd card locations. */
36#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
37#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
38
17aa548c 39#define CONFIG_SYS_SDRAM_BASE 0
17aa548c 40#define SDRAM_BANK_SIZE (2UL << 30)
6d1970fa 41#define SDRAM_MAX_SIZE 0xfe000000
17aa548c 42
5631e197
KY
43#define CONFIG_SYS_MONITOR_LEN (600 * 1024)
44
1743d0ba 45#ifndef CONFIG_SPL_BUILD
266c8fad 46/* usb otg */
266c8fad 47
b9f9339b 48/* usb mass storage */
b9f9339b
XZ
49#define CONFIG_CMD_USB_MASS_STORAGE
50
f57f35a8 51/* usb host support */
6460fc42
SS
52#define ENV_MEM_LAYOUT_SETTINGS \
53 "scriptaddr=0x00000000\0" \
54 "pxefile_addr_r=0x00100000\0" \
55 "fdt_addr_r=0x01f00000\0" \
56 "kernel_addr_r=0x02000000\0" \
57 "ramdisk_addr_r=0x04000000\0"
58
6460fc42
SS
59#include <config_distro_bootcmd.h>
60
60169826 61/* Linux fails to load the fdt if it's loaded above 256M on a Rock 2 board, so
6460fc42
SS
62 * limit the fdt reallocation to that */
63#define CONFIG_EXTRA_ENV_SETTINGS \
60169826
SP
64 "fdt_high=0x0fffffff\0" \
65 "initrd_high=0x0fffffff\0" \
a2a5053a 66 "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
6ead8bd7 67 "partitions=" PARTS_DEFAULT \
6460fc42 68 ENV_MEM_LAYOUT_SETTINGS \
27a1961d 69 ROCKCHIP_DEVICE_SETTINGS \
6460fc42 70 BOOTENV
17aa548c
SG
71#endif
72
73#endif