]> git.ipfire.org Git - people/ms/u-boot.git/blame - include/configs/rk3288_common.h
Move CONFIG_PANIC_HANG to Kconfig
[people/ms/u-boot.git] / include / configs / rk3288_common.h
CommitLineData
17aa548c
SG
1/*
2 * (C) Copyright 2015 Google, Inc
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __CONFIG_RK3288_COMMON_H
8#define __CONFIG_RK3288_COMMON_H
9
10#include <asm/arch/hardware.h>
7f35bbb9 11#include "rockchip-common.h"
17aa548c 12
5a4a90f6 13#define CONFIG_SKIP_LOWLEVEL_INIT_ONLY
17aa548c 14#define CONFIG_NR_DRAM_BANKS 1
17aa548c
SG
15#define CONFIG_SYS_MALLOC_LEN (32 << 20)
16#define CONFIG_SYS_CBSIZE 1024
17aa548c
SG
17
18#define CONFIG_SYS_TIMER_RATE (24 * 1000 * 1000)
cc2244b8 19#define CONFIG_SYS_TIMER_BASE 0xff810020 /* TIMER7 */
20#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMER_BASE + 8)
17aa548c
SG
21
22#define CONFIG_SPL_FRAMEWORK
17aa548c 23#define CONFIG_SYS_NS16550_MEM32
17aa548c 24
ee14d29d 25#ifdef CONFIG_SPL_ROCKCHIP_BACK_TO_BROM
b47ea792
XZ
26/* Bootrom will load u-boot binary to 0x0 once return from SPL */
27#define CONFIG_SYS_TEXT_BASE 0x00000000
28#else
17aa548c 29#define CONFIG_SYS_TEXT_BASE 0x00100000
b47ea792 30#endif
17aa548c
SG
31#define CONFIG_SYS_INIT_SP_ADDR 0x00100000
32#define CONFIG_SYS_LOAD_ADDR 0x00800800
33#define CONFIG_SPL_STACK 0xff718000
532cb7f5
JT
34#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_TPL_BOOTROM_SUPPORT)
35# define CONFIG_SPL_TEXT_BASE 0x0
36#else
a33fee15 37# define CONFIG_SPL_TEXT_BASE 0xff704000
532cb7f5 38#endif
17aa548c
SG
39
40/* MMC/SD IP block */
17aa548c
SG
41#define CONFIG_BOUNCE_BUFFER
42
17aa548c 43/* RAW SD card / eMMC locations. */
17aa548c
SG
44#define CONFIG_SYS_SPI_U_BOOT_OFFS (128 << 10)
45
46/* FAT sd card locations. */
47#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
48#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
49
17aa548c
SG
50#define CONFIG_SYS_SDRAM_BASE 0
51#define CONFIG_NR_DRAM_BANKS 1
52#define SDRAM_BANK_SIZE (2UL << 30)
6d1970fa 53#define SDRAM_MAX_SIZE 0xfe000000
17aa548c
SG
54
55#define CONFIG_SPI_FLASH
56#define CONFIG_SPI
17aa548c
SG
57#define CONFIG_SF_DEFAULT_SPEED 20000000
58
1743d0ba 59#ifndef CONFIG_SPL_BUILD
266c8fad 60/* usb otg */
266c8fad 61#define CONFIG_ROCKCHIP_USB2_PHY
266c8fad 62
b9f9339b
XZ
63/* usb mass storage */
64#define CONFIG_USB_FUNCTION_MASS_STORAGE
65#define CONFIG_CMD_USB_MASS_STORAGE
66
f57f35a8 67/* usb host support */
6460fc42
SS
68#define ENV_MEM_LAYOUT_SETTINGS \
69 "scriptaddr=0x00000000\0" \
70 "pxefile_addr_r=0x00100000\0" \
71 "fdt_addr_r=0x01f00000\0" \
72 "kernel_addr_r=0x02000000\0" \
73 "ramdisk_addr_r=0x04000000\0"
74
6460fc42
SS
75#include <config_distro_bootcmd.h>
76
60169826 77/* Linux fails to load the fdt if it's loaded above 256M on a Rock 2 board, so
6460fc42
SS
78 * limit the fdt reallocation to that */
79#define CONFIG_EXTRA_ENV_SETTINGS \
60169826
SP
80 "fdt_high=0x0fffffff\0" \
81 "initrd_high=0x0fffffff\0" \
6ead8bd7 82 "partitions=" PARTS_DEFAULT \
6460fc42 83 ENV_MEM_LAYOUT_SETTINGS \
27a1961d 84 ROCKCHIP_DEVICE_SETTINGS \
6460fc42 85 BOOTENV
17aa548c
SG
86#endif
87
67171e13
JC
88#define CONFIG_PREBOOT
89
17aa548c 90#endif