Kever Yang | 85a3cfb | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 1 | /* |
| 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 Yang | 85a3cfb | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 12 | #define CONFIG_ENV_SIZE 0x2000 |
Kever Yang | 85a3cfb | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 13 | #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 Yang | 85a3cfb | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 29 | #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 Yang | 6d1970f | 2017-06-23 16:11:05 +0800 | [diff] [blame] | 38 | #define SDRAM_MAX_SIZE 0xff000000 |
Kever Yang | 85a3cfb | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 39 | |
| 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 Dongyang | d16f514 | 2017-05-17 18:21:45 +0800 | [diff] [blame] | 61 | /* rockchip ohci host driver */ |
| 62 | #define CONFIG_USB_OHCI_NEW |
| 63 | #define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 1 |
Meng Dongyang | 4f3a579 | 2017-05-17 18:21:47 +0800 | [diff] [blame] | 64 | |
Kever Yang | 85a3cfb | 2017-02-23 15:37:51 +0800 | [diff] [blame] | 65 | #endif |