1 /* 2 * (C) Copyright 2016 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 #ifndef __CONFIG_RV1108_COMMON_H 7 #define __CONFIG_RV1108_COMMON_H 8 9 #include <asm/arch/hardware.h> 10 #include "rockchip-common.h" 11 12 #define CONFIG_SYS_MALLOC_LEN (32 << 20) 13 #define CONFIG_SYS_CBSIZE 1024 14 #define CONFIG_SKIP_LOWLEVEL_INIT 15 16 #define CONFIG_SYS_SDRAM_BASE 0x60000000 17 #define SDRAM_MAX_SIZE 0x80000000 18 #define CONFIG_SYS_TEXT_BASE 0x60000000 19 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + 0x200000) 20 #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x2000000) 21 22 /* SPL support */ 23 #define CONFIG_SPL_STACK 0x10080700 24 #define CONFIG_SPL_TEXT_BASE 0x10080800 25 #define CONFIG_SPL_MAX_SIZE 0x4000 26 27 /* BSS setup */ 28 #define CONFIG_SPL_BSS_MAX_SIZE 0x100 29 30 #define CONFIG_ROCKUSB_G_DNL_PID 0x110A 31 32 #define CONFIG_BOUNCE_BUFFER 33 34 /* usb mass storage */ 35 #define CONFIG_USB_FUNCTION_MASS_STORAGE 36 37 /* rockchip ohci host driver */ 38 #define CONFIG_USB_OHCI_NEW 39 #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1 40 41 #ifndef CONFIG_SPL_BUILD 42 43 #define ENV_MEM_LAYOUT_SETTINGS \ 44 "scriptaddr=0x60000000\0" \ 45 "fdt_addr_r=0x61f00000\0" \ 46 "kernel_addr_r=0x62000000\0" \ 47 "ramdisk_addr_r=0x64000000\0" 48 49 #include <config_distro_bootcmd.h> 50 #define CONFIG_EXTRA_ENV_SETTINGS \ 51 ENV_MEM_LAYOUT_SETTINGS \ 52 "partitions=" PARTS_DEFAULT \ 53 RKIMG_DET_BOOTDEV \ 54 BOOTENV 55 #endif 56 57 #endif 58