blob: 9819b22ce23662f779a8faa843cd620536489ff1 [file] [log] [blame]
Kever Yang85a3cfb2017-02-23 15:37:51 +08001/*
2 * (C) Copyright 2016 Rockchip Electronics Co., Ltd
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
7#ifndef __CONFIG_RK3328_COMMON_H
8#define __CONFIG_RK3328_COMMON_H
9
10#include "rockchip-common.h"
11
Kever Yang85a3cfb2017-02-23 15:37:51 +080012#define CONFIG_ENV_SIZE 0x2000
Kever Yang85a3cfb2017-02-23 15:37:51 +080013#define CONFIG_SYS_MALLOC_LEN (32 << 20)
14#define CONFIG_SYS_CBSIZE 1024
15#define CONFIG_SKIP_LOWLEVEL_INIT
16
17#define CONFIG_SYS_NS16550_MEM32
18
19#define CONFIG_SYS_TEXT_BASE 0x00200000
20#define CONFIG_SYS_INIT_SP_ADDR 0x00300000
21#define CONFIG_SYS_LOAD_ADDR 0x00800800
22
23#define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64M */
24
25/* MMC/SD IP block */
26#define CONFIG_BOUNCE_BUFFER
27
28#define CONFIG_SUPPORT_VFAT
Kever Yang85a3cfb2017-02-23 15:37:51 +080029#define CONFIG_FS_EXT4
30
31/* RAW SD card / eMMC locations. */
32#define CONFIG_SYS_SPI_U_BOOT_OFFS (128 << 10)
33
34/* FAT sd card locations. */
35#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
36#define CONFIG_SYS_SDRAM_BASE 0
37#define CONFIG_NR_DRAM_BANKS 1
Kever Yang6d1970f2017-06-23 16:11:05 +080038#define SDRAM_MAX_SIZE 0xff000000
Kever Yang85a3cfb2017-02-23 15:37:51 +080039
40#define CONFIG_SPI_FLASH
41#define CONFIG_SPI
42#define CONFIG_SF_DEFAULT_SPEED 20000000
43
44#ifndef CONFIG_SPL_BUILD
45
46#define ENV_MEM_LAYOUT_SETTINGS \
47 "scriptaddr=0x00500000\0" \
48 "pxefile_addr_r=0x00600000\0" \
49 "fdt_addr_r=0x01f00000\0" \
50 "kernel_addr_r=0x02000000\0" \
51 "ramdisk_addr_r=0x04000000\0"
52
53#include <config_distro_bootcmd.h>
54#define CONFIG_EXTRA_ENV_SETTINGS \
55 ENV_MEM_LAYOUT_SETTINGS \
56 "partitions=" PARTS_DEFAULT \
57 BOOTENV
58
59#endif
60
Meng Dongyangd16f5142017-05-17 18:21:45 +080061/* rockchip ohci host driver */
62#define CONFIG_USB_OHCI_NEW
63#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
Meng Dongyang4f3a5792017-05-17 18:21:47 +080064
Kever Yang85a3cfb2017-02-23 15:37:51 +080065#endif