/uboot-rockchip/include/configs/rk_default_config.h
/*
2 * Default Configuration for Rockchip Platform
3 *
4 * (C) Copyright 2008-2015 Fuzhou Rockchip Electronics Co., Ltd
5 * Peter, Software Engineering, <superpeter.cai@gmail.com>.
6 *
7 * SPDX-License-Identifier: GPL-2.0+
8 */
9
10 #ifndef __RK_DEFAULT_CONFIG_H
11 #define __RK_DEFAULT_CONFIG_H
12
13
14 /* Display CPU and Board Info */
15 #define CONFIG_ARCH_CPU_INIT
16 #define CONFIG_DISPLAY_CPUINFO
17 #define CONFIG_DISPLAY_BOARDINFO
18
19 #define CONFIG_SETUP_MEMORY_TAGS /* enable memory tag */
20 #define CONFIG_CMDLINE_TAG /* enable passing of ATAGs */
21 #define CONFIG_CMDLINE_EDITING /* add command line history */
22 #define CONFIG_INITRD_TAG /* Required for ramdisk support */
23 #define CONFIG_BOARD_LATE_INIT
24 #define CONFIG_ARCH_EARLY_INIT_R
25
26
27 /* rk board common fold */
28 #define HAVE_VENDOR_COMMON_LIB y
29
30
31 /* enable genreal board */
32 #define CONFIG_SYS_GENERIC_BOARD
33
34
35 /*
36 * Supported U-boot commands
37 */
38 /* Declare no flash (NOR/SPI) */
39 #define CONFIG_SYS_NO_FLASH 1 /* It should define before config_cmd_default.h */
40
41 /* Command definition */
42 #include <config_cmd_default.h>
43
44 #define CONFIG_SHA256
45 #define CONFIG_LIB_RAND
46
47 #undef CONFIG_GZIP
48 #undef CONFIG_ZLIB
49 #undef CONFIG_SOURCE
50 #undef CONFIG_PARTITIONS
51
52 /* config for cmd_bootm */
53 #undef CONFIG_BOOTM_NETBSD
54 #undef CONFIG_BOOTM_RTEMS
55 #undef CONFIG_BOOTM_OSE
56 #undef CONFIG_BOOTM_PLAN9
57 #undef CONFIG_BOOTM_VXWORKS
58 #undef CONFIG_LYNXKDI
59 #undef CONFIG_INTEGRITY
60 #undef CONFIG_CMD_ELF
61 #undef CONFIG_CMD_BOOTD
62
63 /* Disabled commands */
64 #undef CONFIG_CMD_FPGA /* FPGA configuration Support */
65 #undef CONFIG_CMD_MISC
66 #undef CONFIG_CMD_NET
67 #undef CONFIG_CMD_NFS
68 #undef CONFIG_CMD_XIMG
69
70 #undef CONFIG_CMD_ITEST
71 #undef CONFIG_CMD_SOURCE
72 #undef CONFIG_CMD_BDI
73 #undef CONFIG_CMD_CONSOLE
74 #undef CONFIG_CMD_CACHE
75 #undef CONFIG_CMD_MEMORY
76 #undef CONFIG_CMD_ECHO
77 #undef CONFIG_CMD_REGINFO
78 #undef CONFIG_CMDLINE_EDITING
79 #undef CONFIG_CMD_LOADB
80 #undef CONFIG_CMD_LOADS
81 #undef CONFIG_CMD_IMI
82 #undef CONFIG_CMD_EDITENV
83 /*#undef CONFIG_CMD_RUN*/
84 #define CONFIG_CMD_RUN /* modify by andy 20220221 */
85 #undef CONFIG_CMD_SETGETDCR
86
87
88 /*
89 * cache config
90 */
91 #undef CONFIG_SYS_ICACHE_OFF
92 #undef CONFIG_SYS_DCACHE_OFF
93 #define CONFIG_SYS_L2CACHE_OFF
94 #define CONFIG_SYS_ARM_CACHE_WRITETHROUGH
95
96
97 /* irq config, arch64 gic no using CONFIG_USE_IRQ */
98 #if !defined(CONFIG_ARM64)