Stephen Warren | 8f39377 | 2013-02-26 12:28:29 +0000 | [diff] [blame] | 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 | |
Peng Fan | 436cf40 | 2015-07-20 19:28:26 +0800 | [diff] [blame] | 20 | #ifndef CONFIG_MX6UL |
Stephen Warren | 8f39377 | 2013-02-26 12:28:29 +0000 | [diff] [blame] | 21 | #define CONFIG_ARM_ERRATA_743622 |
| 22 | #define CONFIG_ARM_ERRATA_751472 |
Nitin Garg | 68659d6 | 2014-04-02 08:55:03 -0500 | [diff] [blame] | 23 | #define CONFIG_ARM_ERRATA_794072 |
| 24 | #define CONFIG_ARM_ERRATA_761320 |
Stephen Warren | 8f39377 | 2013-02-26 12:28:29 +0000 | [diff] [blame] | 25 | |
Fabio Estevam | 6d73c23 | 2014-01-29 17:39:49 -0200 | [diff] [blame] | 26 | #ifndef CONFIG_SYS_L2CACHE_OFF |
| 27 | #define CONFIG_SYS_L2_PL310 |
| 28 | #define CONFIG_SYS_PL310_BASE L2_PL310_BASE |
| 29 | #endif |
| 30 | |
Gabriel Huau | a76df70 | 2014-07-26 11:35:43 -0700 | [diff] [blame] | 31 | #define CONFIG_MP |
Peng Fan | 436cf40 | 2015-07-20 19:28:26 +0800 | [diff] [blame] | 32 | #endif |
| 33 | #define CONFIG_BOARD_POSTCLK_INIT |
Ye.Li | f13ac7b | 2014-10-30 18:20:59 +0800 | [diff] [blame] | 34 | #define CONFIG_MXC_GPT_HCLK |
Gabriel Huau | a76df70 | 2014-07-26 11:35:43 -0700 | [diff] [blame] | 35 | |
Peter Robinson | 056845c | 2015-05-22 17:30:45 +0100 | [diff] [blame] | 36 | #define CONFIG_SYS_NO_FLASH |
| 37 | |
| 38 | #include <linux/sizes.h> |
| 39 | #include <asm/arch/imx-regs.h> |
| 40 | #include <asm/imx-common/gpio.h> |
Peter Robinson | 056845c | 2015-05-22 17:30:45 +0100 | [diff] [blame] | 41 | |
Peter Robinson | 3b1f681 | 2015-05-22 17:30:46 +0100 | [diff] [blame] | 42 | #ifndef CONFIG_MX6 |
| 43 | #define CONFIG_MX6 |
| 44 | #endif |
| 45 | |
| 46 | #define CONFIG_DISPLAY_BOARDINFO |
| 47 | #define CONFIG_DISPLAY_CPUINFO |
| 48 | #define CONFIG_SYS_GENERIC_BOARD |
| 49 | |
Peter Robinson | ea69091 | 2015-05-22 17:30:47 +0100 | [diff] [blame] | 50 | /* ATAGs */ |
| 51 | #define CONFIG_CMDLINE_TAG |
| 52 | #define CONFIG_SETUP_MEMORY_TAGS |
| 53 | #define CONFIG_INITRD_TAG |
| 54 | #define CONFIG_REVISION_TAG |
| 55 | |
Peter Robinson | 8183058 | 2015-05-22 17:30:49 +0100 | [diff] [blame] | 56 | /* Boot options */ |
Peng Fan | 94bd1d1 | 2015-07-20 19:28:32 +0800 | [diff] [blame] | 57 | #if (defined(CONFIG_MX6SX) || defined(CONFIG_MX6SL) || defined(CONFIG_MX6UL)) |
Fabio Estevam | cd6ddc4 | 2015-05-28 12:33:34 -0300 | [diff] [blame] | 58 | #define CONFIG_LOADADDR 0x82000000 |
| 59 | #ifndef CONFIG_SYS_TEXT_BASE |
| 60 | #define CONFIG_SYS_TEXT_BASE 0x87800000 |
| 61 | #endif |
| 62 | #else |
Peter Robinson | 8183058 | 2015-05-22 17:30:49 +0100 | [diff] [blame] | 63 | #define CONFIG_LOADADDR 0x12000000 |
Peter Robinson | 8183058 | 2015-05-22 17:30:49 +0100 | [diff] [blame] | 64 | #ifndef CONFIG_SYS_TEXT_BASE |
| 65 | #define CONFIG_SYS_TEXT_BASE 0x17800000 |
| 66 | #endif |
Fabio Estevam | cd6ddc4 | 2015-05-28 12:33:34 -0300 | [diff] [blame] | 67 | #endif |
| 68 | #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR |
| 69 | |
Peter Robinson | 8183058 | 2015-05-22 17:30:49 +0100 | [diff] [blame] | 70 | #ifndef CONFIG_BOOTDELAY |
| 71 | #define CONFIG_BOOTDELAY 3 |
| 72 | #endif |
| 73 | |
Peter Robinson | 2d8a074 | 2015-05-22 17:30:50 +0100 | [diff] [blame] | 74 | /* allow to overwrite serial and ethaddr */ |
| 75 | #define CONFIG_ENV_OVERWRITE |
| 76 | #define CONFIG_CONS_INDEX 1 |
| 77 | #define CONFIG_BAUDRATE 115200 |
| 78 | |
Peter Robinson | a380ce6 | 2015-05-22 17:30:51 +0100 | [diff] [blame] | 79 | /* Filesystems and image support */ |
| 80 | #define CONFIG_OF_LIBFDT |
| 81 | #define CONFIG_CMD_BOOTZ |
| 82 | #define CONFIG_SUPPORT_RAW_INITRD |
| 83 | #define CONFIG_CMD_FS_GENERIC |
| 84 | #define CONFIG_DOS_PARTITION |
| 85 | #define CONFIG_CMD_EXT2 |
| 86 | #define CONFIG_CMD_EXT4 |
| 87 | #define CONFIG_CMD_EXT4_WRITE |
| 88 | #define CONFIG_CMD_FAT |
| 89 | |
Peter Robinson | 2d8a074 | 2015-05-22 17:30:50 +0100 | [diff] [blame] | 90 | /* Miscellaneous configurable options */ |
Peter Robinson | 2d8a074 | 2015-05-22 17:30:50 +0100 | [diff] [blame] | 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 Robinson | 1022b85 | 2015-05-22 17:30:53 +0100 | [diff] [blame] | 100 | #ifndef CONFIG_SYS_DCACHE_OFF |
| 101 | #define CONFIG_CMD_CACHE |
| 102 | #endif |
| 103 | |
Peter Robinson | 302b2e5 | 2015-05-22 17:30:48 +0100 | [diff] [blame] | 104 | /* GPIO */ |
| 105 | #define CONFIG_MXC_GPIO |
| 106 | #define CONFIG_CMD_GPIO |
| 107 | |
Peter Robinson | e51c1e8 | 2015-05-22 17:30:52 +0100 | [diff] [blame] | 108 | /* 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 | |
Peter Robinson | 3c73b0a | 2015-06-24 17:09:46 +0100 | [diff] [blame] | 116 | /* Fuses */ |
| 117 | #define CONFIG_CMD_FUSE |
| 118 | #define CONFIG_MXC_OCOTP |
| 119 | |
Stephen Warren | 8f39377 | 2013-02-26 12:28:29 +0000 | [diff] [blame] | 120 | #endif |