mx23evk.h (41341221d12341a2ecfb280142d6478071738fc2) | mx23evk.h (5434caf5ba32d0779f309d7a8d13e985dc667f5b) |
---|---|
1/* 2 * Freescale i.MX23 EVK board config 3 * 4 * Copyright (C) 2013 Otavio Salvador <otavio@ossystems.com.br> 5 * on behalf of O.S. Systems Software LTDA. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 5 unchanged lines hidden (view full) --- 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * 21 */ | 1/* 2 * Freescale i.MX23 EVK board config 3 * 4 * Copyright (C) 2013 Otavio Salvador <otavio@ossystems.com.br> 5 * on behalf of O.S. Systems Software LTDA. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by --- 5 unchanged lines hidden (view full) --- 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * 21 */ |
22#ifndef __MX23EVK_CONFIG_H__ 23#define __MX23EVK_CONFIG_H__ | 22#ifndef __CONFIGS_MX23EVK_H__ 23#define __CONFIGS_MX23EVK_H__ |
24 | 24 |
25/* SoC configurations */ | 25/* System configurations */ |
26#define CONFIG_MX23 /* i.MX23 SoC */ | 26#define CONFIG_MX23 /* i.MX23 SoC */ |
27 28#include <asm/arch/regs-base.h> 29 30#define CONFIG_MXS_GPIO /* GPIO control */ 31#define CONFIG_SYS_HZ 1000 /* Ticks per second */ 32 | |
33#define CONFIG_MACH_TYPE MACH_TYPE_MX23EVK 34 | 27#define CONFIG_MACH_TYPE MACH_TYPE_MX23EVK 28 |
35#define CONFIG_SYS_NO_FLASH 36#define CONFIG_BOARD_EARLY_INIT_F 37#define CONFIG_ARCH_MISC_INIT 38 39/* SPL */ 40#define CONFIG_SPL 41#define CONFIG_SPL_NO_CPU_SUPPORT_CODE 42#define CONFIG_SPL_START_S_PATH "arch/arm/cpu/arm926ejs/mxs" 43#define CONFIG_SPL_LDSCRIPT "arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds" 44#define CONFIG_SPL_LIBCOMMON_SUPPORT 45#define CONFIG_SPL_LIBGENERIC_SUPPORT 46#define CONFIG_SPL_GPIO_SUPPORT 47 | |
48/* U-Boot Commands */ | 29/* U-Boot Commands */ |
30#define CONFIG_SYS_NO_FLASH |
|
49#include <config_cmd_default.h> 50#undef CONFIG_CMD_NET 51#undef CONFIG_CMD_NFS 52 53#define CONFIG_DISPLAY_CPUINFO 54#define CONFIG_DOS_PARTITION 55 56#define CONFIG_CMD_CACHE 57#define CONFIG_CMD_EXT2 58#define CONFIG_CMD_FAT 59#define CONFIG_CMD_GPIO 60#define CONFIG_CMD_MMC 61#define CONFIG_CMD_USB 62#define CONFIG_CMD_BOOTZ 63#define CONFIG_VIDEO 64 | 31#include <config_cmd_default.h> 32#undef CONFIG_CMD_NET 33#undef CONFIG_CMD_NFS 34 35#define CONFIG_DISPLAY_CPUINFO 36#define CONFIG_DOS_PARTITION 37 38#define CONFIG_CMD_CACHE 39#define CONFIG_CMD_EXT2 40#define CONFIG_CMD_FAT 41#define CONFIG_CMD_GPIO 42#define CONFIG_CMD_MMC 43#define CONFIG_CMD_USB 44#define CONFIG_CMD_BOOTZ 45#define CONFIG_VIDEO 46 |
65/* Memory configurations */ | 47/* Memory configuration */ |
66#define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */ 67#define PHYS_SDRAM_1 0x40000000 /* Base address */ 68#define PHYS_SDRAM_1_SIZE 0x08000000 /* Max 128 MB RAM */ | 48#define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */ 49#define PHYS_SDRAM_1 0x40000000 /* Base address */ 50#define PHYS_SDRAM_1_SIZE 0x08000000 /* Max 128 MB RAM */ |
69#define CONFIG_STACKSIZE (128 * 1024) /* 128 KB stack */ 70#define CONFIG_SYS_MALLOC_LEN 0x00400000 /* 4 MB for malloc */ 71#define CONFIG_SYS_MEMTEST_START 0x40000000 /* Memtest start adr */ 72#define CONFIG_SYS_MEMTEST_END 0x40400000 /* 4 MB RAM test */ | |
73#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 | 51#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 |
74/* Point initial SP in SRAM so SPL can use it too. */ | |
75 | 52 |
76#define CONFIG_SYS_INIT_RAM_ADDR 0x00000000 77#define CONFIG_SYS_INIT_RAM_SIZE (128 * 1024) 78 79#define CONFIG_SYS_INIT_SP_OFFSET \ 80 (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) 81#define CONFIG_SYS_INIT_SP_ADDR \ 82 (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET) 83 84/* 85 * We need to sacrifice first 4 bytes of RAM here to avoid triggering some 86 * strange BUG in ROM corrupting first 4 bytes of RAM when loading U-Boot 87 * binary. In case there was more of this mess, 0x100 bytes are skipped. 88 */ 89#define CONFIG_SYS_TEXT_BASE 0x40000100 90 | 53/* Environment */ |
91#define CONFIG_ENV_OVERWRITE | 54#define CONFIG_ENV_OVERWRITE |
55#define CONFIG_ENV_IS_IN_MMC |
|
92 | 56 |
93/* U-Boot general configurations */ 94#define CONFIG_SYS_LONGHELP 95#define CONFIG_SYS_PROMPT "=> " 96#define CONFIG_SYS_CBSIZE 256 /* Console I/O buffer size */ 97#define CONFIG_SYS_PBSIZE \ 98 (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) 99 /* Print buffer size */ 100#define CONFIG_SYS_MAXARGS 32 /* Max number of command args */ 101#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE 102 /* Boot argument buffer size */ 103#define CONFIG_VERSION_VARIABLE /* U-BOOT version */ 104#define CONFIG_AUTO_COMPLETE /* Command auto complete */ 105#define CONFIG_CMDLINE_EDITING /* Command history etc */ 106#define CONFIG_SYS_HUSH_PARSER 107#define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 108 109/* Serial Driver */ 110#define CONFIG_PL011_SERIAL 111#define CONFIG_PL011_CLOCK 24000000 112#define CONFIG_PL01x_PORTS { (void *)MXS_UARTDBG_BASE } 113#define CONFIG_CONS_INDEX 0 114#define CONFIG_BAUDRATE 115200 /* Default baud rate */ 115 116/* DMA */ 117#define CONFIG_APBH_DMA 118 119/* MMC Driver */ 120#ifdef CONFIG_CMD_MMC 121#define CONFIG_MMC 122#define CONFIG_GENERIC_MMC 123#define CONFIG_BOUNCE_BUFFER 124#define CONFIG_MXS_MMC | 57/* Environment is in MMC */ 58#if defined(CONFIG_CMD_MMC) && defined(CONFIG_ENV_IS_IN_MMC) 59#define CONFIG_ENV_OFFSET (256 * 1024) 60#define CONFIG_ENV_SIZE (16 * 1024) 61#define CONFIG_SYS_MMC_ENV_DEV 0 |
125#endif 126 127/* USB */ 128#ifdef CONFIG_CMD_USB | 62#endif 63 64/* USB */ 65#ifdef CONFIG_CMD_USB |
129#define CONFIG_USB_EHCI 130#define CONFIG_USB_EHCI_MXS | |
131#define CONFIG_EHCI_MXS_PORT0 132#define CONFIG_USB_MAX_CONTROLLER_COUNT 1 | 66#define CONFIG_EHCI_MXS_PORT0 67#define CONFIG_USB_MAX_CONTROLLER_COUNT 1 |
133#define CONFIG_EHCI_IS_TDI | |
134#define CONFIG_USB_STORAGE 135#endif 136 137/* Framebuffer support */ 138#ifdef CONFIG_VIDEO | 68#define CONFIG_USB_STORAGE 69#endif 70 71/* Framebuffer support */ 72#ifdef CONFIG_VIDEO |
139#define CONFIG_CFB_CONSOLE 140#define CONFIG_VIDEO_MXS | |
141#define CONFIG_VIDEO_LOGO | 73#define CONFIG_VIDEO_LOGO |
142#define CONFIG_VIDEO_SW_CURSOR 143#define CONFIG_VGA_AS_SINGLE_DEVICE 144#define CONFIG_SYS_CONSOLE_IS_IN_ENV | |
145#define CONFIG_SPLASH_SCREEN 146#define CONFIG_CMD_BMP 147#define CONFIG_BMP_16BPP 148#define CONFIG_VIDEO_BMP_RLE8 149#define CONFIG_VIDEO_BMP_GZIP 150#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (512 << 10) 151#endif 152 153/* Boot Linux */ | 74#define CONFIG_SPLASH_SCREEN 75#define CONFIG_CMD_BMP 76#define CONFIG_BMP_16BPP 77#define CONFIG_VIDEO_BMP_RLE8 78#define CONFIG_VIDEO_BMP_GZIP 79#define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (512 << 10) 80#endif 81 82/* Boot Linux */ |
154#define CONFIG_CMDLINE_TAG 155#define CONFIG_SETUP_MEMORY_TAGS | |
156#define CONFIG_BOOTDELAY 1 | 83#define CONFIG_BOOTDELAY 1 |
157#define CONFIG_BOOTFILE "uImage" 158#define CONFIG_LOADADDR 0x42000000 | 84#define CONFIG_BOOTFILE "uImage" 85#define CONFIG_LOADADDR 0x42000000 |
159#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR | 86#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR |
160#define CONFIG_OF_LIBFDT | |
161 | 87 |
162/* Environment */ 163#define CONFIG_ENV_IS_IN_MMC 164#ifdef CONFIG_ENV_IS_IN_MMC 165 #define CONFIG_ENV_OFFSET (256 * 1024) 166 #define CONFIG_ENV_SIZE (16 * 1024) 167 #define CONFIG_SYS_MMC_ENV_DEV 0 168#endif 169 | |
170/* Extra Environments */ 171#define CONFIG_EXTRA_ENV_SETTINGS \ 172 "update_sd_firmware_filename=u-boot.sd\0" \ 173 "update_sd_firmware=" /* Update the SD firmware partition */ \ 174 "if mmc rescan ; then " \ 175 "if tftp ${update_sd_firmware_filename} ; then " \ 176 "setexpr fw_sz ${filesize} / 0x200 ; " /* SD block size */ \ 177 "setexpr fw_sz ${fw_sz} + 1 ; " \ --- 41 unchanged lines hidden (view full) --- 219 "if run loaduimage; then " \ 220 "run mmcboot; " \ 221 "else " \ 222 "echo ERR: Fail to boot from MMC; " \ 223 "fi; " \ 224 "fi; " \ 225 "else exit; fi" 226 | 88/* Extra Environments */ 89#define CONFIG_EXTRA_ENV_SETTINGS \ 90 "update_sd_firmware_filename=u-boot.sd\0" \ 91 "update_sd_firmware=" /* Update the SD firmware partition */ \ 92 "if mmc rescan ; then " \ 93 "if tftp ${update_sd_firmware_filename} ; then " \ 94 "setexpr fw_sz ${filesize} / 0x200 ; " /* SD block size */ \ 95 "setexpr fw_sz ${fw_sz} + 1 ; " \ --- 41 unchanged lines hidden (view full) --- 137 "if run loaduimage; then " \ 138 "run mmcboot; " \ 139 "else " \ 140 "echo ERR: Fail to boot from MMC; " \ 141 "fi; " \ 142 "fi; " \ 143 "else exit; fi" 144 |
227#endif /* __MX23EVK_CONFIG_H__ */ | 145/* The rest of the configuration is shared */ 146#include <configs/mxs.h> 147 148#endif /* __CONFIGS_MX23EVK_H__ */ |