2017-03-10 03:01:51 +00:00
|
|
|
/*
|
|
|
|
|
* (C) Copyright 2017 Rockchip Electronics Co., Ltd
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __CONFIG_RK3128_COMMON_H
|
|
|
|
|
#define __CONFIG_RK3128_COMMON_H
|
|
|
|
|
|
|
|
|
|
#include "rockchip-common.h"
|
|
|
|
|
|
|
|
|
|
#define CONFIG_SYS_MAXARGS 16
|
|
|
|
|
#define CONFIG_BAUDRATE 115200
|
2019-05-14 11:43:58 +00:00
|
|
|
#define CONFIG_SYS_MALLOC_LEN (32 << 20)
|
2017-03-10 03:01:51 +00:00
|
|
|
#define CONFIG_SYS_CBSIZE 1024
|
|
|
|
|
#define CONFIG_SKIP_LOWLEVEL_INIT
|
|
|
|
|
|
|
|
|
|
#define CONFIG_SYS_TEXT_BASE 0x60000000
|
2018-09-10 01:24:56 +00:00
|
|
|
#define CONFIG_SYS_INIT_SP_ADDR 0x60300000
|
2017-03-10 03:01:51 +00:00
|
|
|
#define CONFIG_SYS_LOAD_ADDR 0x60800800
|
|
|
|
|
|
2017-10-16 11:48:29 +00:00
|
|
|
#define GICC_BASE 0x1013A000
|
|
|
|
|
#define GICD_BASE 0x10139000
|
2017-03-10 03:01:51 +00:00
|
|
|
|
2018-09-11 01:29:42 +00:00
|
|
|
#define CONFIG_SUPPORT_EMMC_RPMB
|
|
|
|
|
|
2017-03-10 03:01:51 +00:00
|
|
|
#define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64M */
|
|
|
|
|
|
2017-11-13 09:46:11 +00:00
|
|
|
#define CONFIG_ROCKUSB_G_DNL_PID 0x310C
|
|
|
|
|
#define TEST_NUM_G
|
|
|
|
|
|
2017-03-10 03:01:51 +00:00
|
|
|
/* MMC/SD IP block */
|
|
|
|
|
#define CONFIG_BOUNCE_BUFFER
|
|
|
|
|
|
|
|
|
|
#define CONFIG_SUPPORT_VFAT
|
|
|
|
|
#define CONFIG_FS_EXT4
|
|
|
|
|
|
|
|
|
|
/* RAW SD card / eMMC locations. */
|
|
|
|
|
#define CONFIG_SYS_SPI_U_BOOT_OFFS (128 << 10)
|
|
|
|
|
|
|
|
|
|
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
|
|
|
|
#define CONFIG_SYS_SDRAM_BASE 0x60000000
|
|
|
|
|
#define SDRAM_MAX_SIZE 0x80000000
|
|
|
|
|
|
|
|
|
|
#ifndef CONFIG_SPL_BUILD
|
2017-11-09 03:59:33 +00:00
|
|
|
#define CONFIG_PREBOOT
|
2017-03-10 03:01:51 +00:00
|
|
|
|
|
|
|
|
/* usb mass storage */
|
|
|
|
|
#define CONFIG_USB_FUNCTION_MASS_STORAGE
|
|
|
|
|
|
2019-05-14 11:43:58 +00:00
|
|
|
#define ENV_MEM_LAYOUT_SETTINGS1 \
|
|
|
|
|
"scriptaddr1=0x60500000\0" \
|
|
|
|
|
"pxefile_addr1_r=0x60600000\0" \
|
|
|
|
|
"fdt_addr1_r=0x61700000\0" \
|
|
|
|
|
"kernel_addr1_r=0x62008000\0" \
|
|
|
|
|
"ramdisk_addr1_r=0x63000000\0"
|
|
|
|
|
|
2017-03-10 03:01:51 +00:00
|
|
|
#define ENV_MEM_LAYOUT_SETTINGS \
|
|
|
|
|
"scriptaddr=0x60500000\0" \
|
|
|
|
|
"pxefile_addr_r=0x60600000\0" \
|
2019-01-18 06:57:26 +00:00
|
|
|
"fdt_addr_r=0x68300000\0" \
|
2018-10-25 07:53:00 +00:00
|
|
|
"kernel_addr_r=0x62008000\0" \
|
2019-01-18 06:57:26 +00:00
|
|
|
"ramdisk_addr_r=0x6a200000\0"
|
2017-03-10 03:01:51 +00:00
|
|
|
|
|
|
|
|
#include <config_distro_bootcmd.h>
|
|
|
|
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
|
|
|
|
ENV_MEM_LAYOUT_SETTINGS \
|
2019-05-14 11:43:58 +00:00
|
|
|
ENV_MEM_LAYOUT_SETTINGS1 \
|
2017-03-10 03:01:51 +00:00
|
|
|
"partitions=" PARTS_DEFAULT \
|
2017-10-19 10:37:12 +00:00
|
|
|
ROCKCHIP_DEVICE_SETTINGS \
|
2018-05-09 09:12:42 +00:00
|
|
|
RKIMG_DET_BOOTDEV \
|
2017-03-10 03:01:51 +00:00
|
|
|
BOOTENV
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-10-16 10:10:55 +00:00
|
|
|
/* rockchip ohci host driver */
|
|
|
|
|
#define CONFIG_USB_OHCI_NEW
|
|
|
|
|
#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1
|
|
|
|
|
|
2017-03-10 03:01:51 +00:00
|
|
|
#endif
|