1 /* 2 * (C) Copyright 2019 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #ifndef __CONFIG_RV1126_COMMON_H 8 #define __CONFIG_RV1126_COMMON_H 9 10 #include "rockchip-common.h" 11 12 #define COUNTER_FREQUENCY 24000000 13 #define CONFIG_SYS_MALLOC_LEN (32 << 20) 14 #define CONFIG_SYS_CBSIZE 1024 15 #define CONFIG_SKIP_LOWLEVEL_INIT 16 #define CONFIG_SYS_NS16550_MEM32 17 18 #define CONFIG_SYS_TEXT_BASE 0x00400000 19 #define CONFIG_SYS_INIT_SP_ADDR 0x00580000 20 #define CONFIG_SYS_LOAD_ADDR 0x00C00800 21 #define CONFIG_SYS_BOOTM_LEN (64 << 20) 22 23 /* SPL */ 24 #define CONFIG_SPL_FRAMEWORK 25 #define CONFIG_SPL_TEXT_BASE 0x00000000 26 #define CONFIG_SPL_MAX_SIZE 0x20000 27 #define CONFIG_SPL_BSS_START_ADDR 0x00608000 28 #define CONFIG_SPL_BSS_MAX_SIZE 0x20000 29 #define CONFIG_SPL_STACK 0x00608000 30 31 #define GICD_BASE 0xfeff1000 32 #define GICC_BASE 0xfeff2000 33 34 /* MMC/SD IP block */ 35 #define CONFIG_BOUNCE_BUFFER 36 37 /* Nand */ 38 #define CONFIG_SYS_MAX_NAND_DEVICE 1 39 #define CONFIG_SYS_NAND_ONFI_DETECTION 40 #define CONFIG_SYS_NAND_PAGE_SIZE 2048 41 #define CONFIG_SYS_NAND_PAGE_COUNT 64 42 #define CONFIG_SYS_NAND_SIZE (256 * 1024 * 1024) 43 #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x4000 44 45 #define CONFIG_SYS_SDRAM_BASE 0 46 #define SDRAM_MAX_SIZE 0xfd000000 47 48 #ifndef CONFIG_SPL_BUILD 49 50 /* usb mass storage */ 51 #define CONFIG_USB_FUNCTION_MASS_STORAGE 52 #define CONFIG_ROCKUSB_G_DNL_PID 0x110b 53 54 #define ENV_MEM_LAYOUT_SETTINGS \ 55 "scriptaddr=0x00000000\0" \ 56 "pxefile_addr_r=0x00100000\0" \ 57 "fdt_addr_r=0x08300000\0" \ 58 "kernel_addr_r=0x02008000\0" \ 59 "ramdisk_addr_r=0x0a200000\0" 60 61 #include <config_distro_bootcmd.h> 62 #define CONFIG_EXTRA_ENV_SETTINGS \ 63 ENV_MEM_LAYOUT_SETTINGS \ 64 "partitions=" PARTS_DEFAULT \ 65 ROCKCHIP_DEVICE_SETTINGS \ 66 RKIMG_DET_BOOTDEV \ 67 BOOTENV_SHARED_RKNAND \ 68 BOOTENV 69 70 #undef RKIMG_BOOTCOMMAND 71 #ifdef CONFIG_FIT_SIGNATURE 72 #define RKIMG_BOOTCOMMAND \ 73 "boot_fit;" 74 #else 75 #define RKIMG_BOOTCOMMAND \ 76 "boot_uimage;" \ 77 "boot_fit;" \ 78 "boot_android ${devtype} ${devnum};" 79 #endif 80 #endif 81 82 #define CONFIG_PREBOOT 83 84 #endif 85