Stephen Warren | 57ab23f | 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 | |
Stephen Warren | 57ab23f | 2013-02-26 12:28:29 +0000 | [diff] [blame] | 20 | #define CONFIG_ARM_ERRATA_743622 |
| 21 | #define CONFIG_ARM_ERRATA_751472 |
Nitin Garg | c985928 | 2014-04-02 08:55:03 -0500 | [diff] [blame] | 22 | #define CONFIG_ARM_ERRATA_794072 |
| 23 | #define CONFIG_ARM_ERRATA_761320 |
Fabio Estevam | 99b370b | 2013-12-26 14:51:34 -0200 | [diff] [blame] | 24 | #define CONFIG_BOARD_POSTCLK_INIT |
Stephen Warren | 57ab23f | 2013-02-26 12:28:29 +0000 | [diff] [blame] | 25 | |
Fabio Estevam | 1340929 | 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 | 170ceaf | 2014-07-26 11:35:43 -0700 | [diff] [blame] | 31 | #define CONFIG_MP |
Ye.Li | 2b7f877 | 2014-10-30 18:20:59 +0800 | [diff] [blame] | 32 | #define CONFIG_MXC_GPT_HCLK |
Gabriel Huau | 170ceaf | 2014-07-26 11:35:43 -0700 | [diff] [blame] | 33 | |
Peter Robinson | 4b67150 | 2015-05-22 17:30:45 +0100 | [diff] [blame] | 34 | #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> |
Peter Robinson | 4b67150 | 2015-05-22 17:30:45 +0100 | [diff] [blame] | 39 | |
Peter Robinson | e193ff2 | 2015-05-22 17:30:46 +0100 | [diff] [blame] | 40 | #ifndef CONFIG_MX6 |
| 41 | #define CONFIG_MX6 |
| 42 | #endif |
| 43 | |
| 44 | #define CONFIG_DISPLAY_BOARDINFO |
| 45 | #define CONFIG_DISPLAY_CPUINFO |
| 46 | #define CONFIG_SYS_GENERIC_BOARD |
| 47 | |
Peter Robinson | 3028f62 | 2015-05-22 17:30:47 +0100 | [diff] [blame] | 48 | /* ATAGs */ |
| 49 | #define CONFIG_CMDLINE_TAG |
| 50 | #define CONFIG_SETUP_MEMORY_TAGS |
| 51 | #define CONFIG_INITRD_TAG |
| 52 | #define CONFIG_REVISION_TAG |
| 53 | |
Peter Robinson | 490a61e | 2015-05-22 17:30:49 +0100 | [diff] [blame] | 54 | /* Boot options */ |
Fabio Estevam | 8c717e5 | 2015-05-28 12:33:34 -0300 | [diff] [blame] | 55 | #if (defined(CONFIG_MX6SX) || defined(CONFIG_MX6SL)) |
| 56 | #define CONFIG_LOADADDR 0x82000000 |
| 57 | #ifndef CONFIG_SYS_TEXT_BASE |
| 58 | #define CONFIG_SYS_TEXT_BASE 0x87800000 |
| 59 | #endif |
| 60 | #else |
Peter Robinson | 490a61e | 2015-05-22 17:30:49 +0100 | [diff] [blame] | 61 | #define CONFIG_LOADADDR 0x12000000 |
Peter Robinson | 490a61e | 2015-05-22 17:30:49 +0100 | [diff] [blame] | 62 | #ifndef CONFIG_SYS_TEXT_BASE |
| 63 | #define CONFIG_SYS_TEXT_BASE 0x17800000 |
| 64 | #endif |
Fabio Estevam | 8c717e5 | 2015-05-28 12:33:34 -0300 | [diff] [blame] | 65 | #endif |
| 66 | #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR |
| 67 | |
Peter Robinson | 490a61e | 2015-05-22 17:30:49 +0100 | [diff] [blame] | 68 | #ifndef CONFIG_BOOTDELAY |
| 69 | #define CONFIG_BOOTDELAY 3 |
| 70 | #endif |
| 71 | |
Peter Robinson | 61a1b9d | 2015-05-22 17:30:50 +0100 | [diff] [blame] | 72 | /* allow to overwrite serial and ethaddr */ |
| 73 | #define CONFIG_ENV_OVERWRITE |
| 74 | #define CONFIG_CONS_INDEX 1 |
| 75 | #define CONFIG_BAUDRATE 115200 |
| 76 | |
Peter Robinson | f320d70 | 2015-05-22 17:30:51 +0100 | [diff] [blame] | 77 | /* Filesystems and image support */ |
| 78 | #define CONFIG_OF_LIBFDT |
| 79 | #define CONFIG_CMD_BOOTZ |
| 80 | #define CONFIG_SUPPORT_RAW_INITRD |
| 81 | #define CONFIG_CMD_FS_GENERIC |
| 82 | #define CONFIG_DOS_PARTITION |
| 83 | #define CONFIG_CMD_EXT2 |
| 84 | #define CONFIG_CMD_EXT4 |
| 85 | #define CONFIG_CMD_EXT4_WRITE |
| 86 | #define CONFIG_CMD_FAT |
| 87 | |
Peter Robinson | 61a1b9d | 2015-05-22 17:30:50 +0100 | [diff] [blame] | 88 | /* Miscellaneous configurable options */ |
Peter Robinson | 61a1b9d | 2015-05-22 17:30:50 +0100 | [diff] [blame] | 89 | #undef CONFIG_CMD_IMLS |
| 90 | #define CONFIG_SYS_LONGHELP |
| 91 | #define CONFIG_SYS_HUSH_PARSER |
| 92 | #define CONFIG_CMDLINE_EDITING |
| 93 | #define CONFIG_AUTO_COMPLETE |
| 94 | #define CONFIG_SYS_CBSIZE 512 |
| 95 | #define CONFIG_SYS_MAXARGS 32 |
| 96 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |
| 97 | |
Peter Robinson | d1e3399 | 2015-05-22 17:30:53 +0100 | [diff] [blame] | 98 | #ifndef CONFIG_SYS_DCACHE_OFF |
| 99 | #define CONFIG_CMD_CACHE |
| 100 | #endif |
| 101 | |
Peter Robinson | a0e6379 | 2015-05-22 17:30:48 +0100 | [diff] [blame] | 102 | /* GPIO */ |
| 103 | #define CONFIG_MXC_GPIO |
| 104 | #define CONFIG_CMD_GPIO |
| 105 | |
Peter Robinson | be6c5f1 | 2015-05-22 17:30:52 +0100 | [diff] [blame] | 106 | /* MMC */ |
| 107 | #define CONFIG_MMC |
| 108 | #define CONFIG_CMD_MMC |
| 109 | #define CONFIG_GENERIC_MMC |
| 110 | #define CONFIG_BOUNCE_BUFFER |
| 111 | #define CONFIG_FSL_ESDHC |
| 112 | #define CONFIG_FSL_USDHC |
| 113 | |
Stephen Warren | 57ab23f | 2013-02-26 12:28:29 +0000 | [diff] [blame] | 114 | #endif |