blob: 50370e1366c141fbc698d6f8bf92f4455349544e [file] [log] [blame]
Stephen Warren57ab23f2013-02-26 12:28:29 +00001/*
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
Stephen Warren57ab23f2013-02-26 12:28:29 +000020#define CONFIG_ARM_ERRATA_743622
21#define CONFIG_ARM_ERRATA_751472
Nitin Gargc9859282014-04-02 08:55:03 -050022#define CONFIG_ARM_ERRATA_794072
23#define CONFIG_ARM_ERRATA_761320
Fabio Estevam99b370b2013-12-26 14:51:34 -020024#define CONFIG_BOARD_POSTCLK_INIT
Stephen Warren57ab23f2013-02-26 12:28:29 +000025
Fabio Estevam13409292014-01-29 17:39:49 -020026#ifndef CONFIG_SYS_L2CACHE_OFF
27#define CONFIG_SYS_L2_PL310
28#define CONFIG_SYS_PL310_BASE L2_PL310_BASE
29#endif
30
Gabriel Huau170ceaf2014-07-26 11:35:43 -070031#define CONFIG_MP
Ye.Li2b7f8772014-10-30 18:20:59 +080032#define CONFIG_MXC_GPT_HCLK
Gabriel Huau170ceaf2014-07-26 11:35:43 -070033
Peter Robinson4b671502015-05-22 17:30:45 +010034#define CONFIG_SYS_NO_FLASH
35
36#include <linux/sizes.h>
37#include <asm/arch/imx-regs.h>
38#include <asm/imx-common/gpio.h>
39#include <config_cmd_default.h>
40
Peter Robinsone193ff22015-05-22 17:30:46 +010041#ifndef CONFIG_MX6
42#define CONFIG_MX6
43#endif
44
45#define CONFIG_DISPLAY_BOARDINFO
46#define CONFIG_DISPLAY_CPUINFO
47#define CONFIG_SYS_GENERIC_BOARD
48
Peter Robinson3028f622015-05-22 17:30:47 +010049/* ATAGs */
50#define CONFIG_CMDLINE_TAG
51#define CONFIG_SETUP_MEMORY_TAGS
52#define CONFIG_INITRD_TAG
53#define CONFIG_REVISION_TAG
54
Peter Robinson490a61e2015-05-22 17:30:49 +010055/* Boot options */
Fabio Estevam8c717e52015-05-28 12:33:34 -030056#if (defined(CONFIG_MX6SX) || defined(CONFIG_MX6SL))
57#define CONFIG_LOADADDR 0x82000000
58#ifndef CONFIG_SYS_TEXT_BASE
59#define CONFIG_SYS_TEXT_BASE 0x87800000
60#endif
61#else
Peter Robinson490a61e2015-05-22 17:30:49 +010062#define CONFIG_LOADADDR 0x12000000
Peter Robinson490a61e2015-05-22 17:30:49 +010063#ifndef CONFIG_SYS_TEXT_BASE
64#define CONFIG_SYS_TEXT_BASE 0x17800000
65#endif
Fabio Estevam8c717e52015-05-28 12:33:34 -030066#endif
67#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
68
Peter Robinson490a61e2015-05-22 17:30:49 +010069#ifndef CONFIG_BOOTDELAY
70#define CONFIG_BOOTDELAY 3
71#endif
72
Peter Robinson61a1b9d2015-05-22 17:30:50 +010073/* allow to overwrite serial and ethaddr */
74#define CONFIG_ENV_OVERWRITE
75#define CONFIG_CONS_INDEX 1
76#define CONFIG_BAUDRATE 115200
77
Peter Robinsonf320d702015-05-22 17:30:51 +010078/* Filesystems and image support */
79#define CONFIG_OF_LIBFDT
80#define CONFIG_CMD_BOOTZ
81#define CONFIG_SUPPORT_RAW_INITRD
82#define CONFIG_CMD_FS_GENERIC
83#define CONFIG_DOS_PARTITION
84#define CONFIG_CMD_EXT2
85#define CONFIG_CMD_EXT4
86#define CONFIG_CMD_EXT4_WRITE
87#define CONFIG_CMD_FAT
88
Peter Robinson61a1b9d2015-05-22 17:30:50 +010089/* Miscellaneous configurable options */
90#define CONFIG_SYS_NO_FLASH
91#undef CONFIG_CMD_IMLS
92#define CONFIG_SYS_LONGHELP
93#define CONFIG_SYS_HUSH_PARSER
94#define CONFIG_CMDLINE_EDITING
95#define CONFIG_AUTO_COMPLETE
96#define CONFIG_SYS_CBSIZE 512
97#define CONFIG_SYS_MAXARGS 32
98#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
99
Peter Robinsond1e33992015-05-22 17:30:53 +0100100#ifndef CONFIG_SYS_DCACHE_OFF
101#define CONFIG_CMD_CACHE
102#endif
103
Peter Robinsona0e63792015-05-22 17:30:48 +0100104/* GPIO */
105#define CONFIG_MXC_GPIO
106#define CONFIG_CMD_GPIO
107
Peter Robinsonbe6c5f12015-05-22 17:30:52 +0100108/* MMC */
109#define CONFIG_MMC
110#define CONFIG_CMD_MMC
111#define CONFIG_GENERIC_MMC
112#define CONFIG_BOUNCE_BUFFER
113#define CONFIG_FSL_ESDHC
114#define CONFIG_FSL_USDHC
115
Stephen Warren57ab23f2013-02-26 12:28:29 +0000116#endif