]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/mx6_common.h
dma: apbh: let APBH_DMA be selected, instead of enabling it by default
[karo-tx-uboot.git] / include / configs / mx6_common.h
1 /*
2  * Copyright (c) 2013, NVIDIA CORPORATION.  All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms and conditions of the GNU General Public License,
6  * version 2, as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11  * more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15  */
16
17 #ifndef __MX6_COMMON_H
18 #define __MX6_COMMON_H
19
20 #ifndef CONFIG_MX6UL
21 #define CONFIG_ARM_ERRATA_743622
22 #define CONFIG_ARM_ERRATA_751472
23 #define CONFIG_ARM_ERRATA_794072
24 #define CONFIG_ARM_ERRATA_761320
25
26 #ifndef CONFIG_SYS_L2CACHE_OFF
27 #define CONFIG_SYS_L2_PL310
28 #define CONFIG_SYS_PL310_BASE   L2_PL310_BASE
29 #endif
30
31 #define CONFIG_SYS_FSL_ESDHC_HAS_DDR_MODE
32
33 #define CONFIG_MP
34 #endif
35 #define CONFIG_BOARD_POSTCLK_INIT
36 #define CONFIG_MXC_GPT_HCLK
37
38 #define CONFIG_SYS_NO_FLASH
39
40 #include <linux/sizes.h>
41 #include <asm/arch/imx-regs.h>
42 #include <asm/imx-common/gpio.h>
43
44 #ifndef CONFIG_MX6
45 #define CONFIG_MX6
46 #endif
47
48 #define CONFIG_DISPLAY_BOARDINFO
49 #define CONFIG_DISPLAY_CPUINFO
50 #define CONFIG_SYS_GENERIC_BOARD
51
52 /* ATAGs */
53 #define CONFIG_CMDLINE_TAG
54 #define CONFIG_SETUP_MEMORY_TAGS
55 #define CONFIG_INITRD_TAG
56 #define CONFIG_REVISION_TAG
57
58 /* Boot options */
59 #if (defined(CONFIG_MX6SX) || defined(CONFIG_MX6SL) || defined(CONFIG_MX6UL))
60 #define CONFIG_LOADADDR         0x82000000
61 #ifndef CONFIG_SYS_TEXT_BASE
62 #define CONFIG_SYS_TEXT_BASE    0x87800000
63 #endif
64 #else
65 #define CONFIG_LOADADDR         0x12000000
66 #ifndef CONFIG_SYS_TEXT_BASE
67 #define CONFIG_SYS_TEXT_BASE    0x17800000
68 #endif
69 #endif
70 #define CONFIG_SYS_LOAD_ADDR    CONFIG_LOADADDR
71
72 #ifndef CONFIG_BOOTDELAY
73 #define CONFIG_BOOTDELAY        3
74 #endif
75
76 /* allow to overwrite serial and ethaddr */
77 #define CONFIG_ENV_OVERWRITE
78 #define CONFIG_CONS_INDEX       1
79 #define CONFIG_BAUDRATE         115200
80
81 /* Filesystems and image support */
82 #define CONFIG_OF_LIBFDT
83 #define CONFIG_CMD_BOOTZ
84 #define CONFIG_SUPPORT_RAW_INITRD
85 #define CONFIG_CMD_FS_GENERIC
86 #define CONFIG_DOS_PARTITION
87 #define CONFIG_CMD_EXT2
88 #define CONFIG_CMD_EXT4
89 #define CONFIG_CMD_EXT4_WRITE
90 #define CONFIG_CMD_FAT
91
92 /* Miscellaneous configurable options */
93 #undef CONFIG_CMD_IMLS
94 #define CONFIG_SYS_LONGHELP
95 #define CONFIG_SYS_HUSH_PARSER
96 #define CONFIG_CMDLINE_EDITING
97 #define CONFIG_AUTO_COMPLETE
98 #define CONFIG_SYS_CBSIZE       512
99 #define CONFIG_SYS_MAXARGS      32
100 #define CONFIG_SYS_BARGSIZE     CONFIG_SYS_CBSIZE
101
102 #ifndef CONFIG_SYS_DCACHE_OFF
103 #define CONFIG_CMD_CACHE
104 #endif
105
106 /* GPIO */
107 #define CONFIG_MXC_GPIO
108 #define CONFIG_CMD_GPIO
109
110 /* MMC */
111 #define CONFIG_MMC
112 #define CONFIG_CMD_MMC
113 #define CONFIG_GENERIC_MMC
114 #define CONFIG_BOUNCE_BUFFER
115 #define CONFIG_FSL_ESDHC
116 #define CONFIG_FSL_USDHC
117
118 /* Fuses */
119 #define CONFIG_CMD_FUSE
120 #define CONFIG_MXC_OCOTP
121
122 #endif