1bcc05c7aStrem /* 2bcc05c7aStrem * 3bcc05c7aStrem * Configuration settings for the Armadeus Project motherboard APF27 4bcc05c7aStrem * 5bcc05c7aStrem * Copyright (C) 2008-2013 Eric Jarrige <eric.jarrige@armadeus.org> 6bcc05c7aStrem * 7bcc05c7aStrem * SPDX-License-Identifier: GPL-2.0+ 8bcc05c7aStrem */ 9bcc05c7aStrem 10bcc05c7aStrem #ifndef __CONFIG_H 11bcc05c7aStrem #define __CONFIG_H 12bcc05c7aStrem 13bcc05c7aStrem #define CONFIG_VERSION_VARIABLE 14bcc05c7aStrem #define CONFIG_ENV_VERSION 10 15bcc05c7aStrem #define CONFIG_IDENT_STRING " apf27 patch 3.10" 16bcc05c7aStrem #define CONFIG_BOARD_NAME apf27 17bcc05c7aStrem 18bcc05c7aStrem /* 19bcc05c7aStrem * SoC configurations 20bcc05c7aStrem */ 21bcc05c7aStrem #define CONFIG_ARM926EJS /* this is an ARM926EJS CPU */ 22bcc05c7aStrem #define CONFIG_MX27 /* in a Freescale i.MX27 Chip */ 23bcc05c7aStrem #define CONFIG_MACH_TYPE 1698 /* APF27 */ 24bcc05c7aStrem #define CONFIG_SYS_GENERIC_BOARD 25bcc05c7aStrem 26bcc05c7aStrem /* 27bcc05c7aStrem * Enable the call to miscellaneous platform dependent initialization. 28bcc05c7aStrem */ 29bcc05c7aStrem #define CONFIG_SYS_NO_FLASH /* to be define before <config_cmd_default.h> */ 30bcc05c7aStrem 31bcc05c7aStrem /* 32bcc05c7aStrem * Board display option 33bcc05c7aStrem */ 34bcc05c7aStrem #define CONFIG_DISPLAY_BOARDINFO 35bcc05c7aStrem #define CONFIG_DISPLAY_CPUINFO 36bcc05c7aStrem 37bcc05c7aStrem /* 38bcc05c7aStrem * SPL 39bcc05c7aStrem */ 40bcc05c7aStrem #define CONFIG_SPL 41bcc05c7aStrem #define CONFIG_SPL_TARGET "u-boot-with-spl.bin" 42bcc05c7aStrem #define CONFIG_SPL_LDSCRIPT "arch/$(ARCH)/cpu/u-boot-spl.lds" 43bcc05c7aStrem #define CONFIG_SPL_MAX_SIZE 2048 44bcc05c7aStrem #define CONFIG_SPL_TEXT_BASE 0xA0000000 45bcc05c7aStrem 46bcc05c7aStrem /* NAND boot config */ 47bcc05c7aStrem #define CONFIG_SPL_NAND_SUPPORT 48bcc05c7aStrem #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE 49bcc05c7aStrem #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x800 50bcc05c7aStrem #define CONFIG_SYS_NAND_U_BOOT_DST CONFIG_SYS_TEXT_BASE 51bcc05c7aStrem #define CONFIG_SYS_NAND_U_BOOT_SIZE CONFIG_SYS_MONITOR_LEN - 0x800 52bcc05c7aStrem 53bcc05c7aStrem /* 54bcc05c7aStrem * BOOTP options 55bcc05c7aStrem */ 56bcc05c7aStrem #define CONFIG_BOOTP_SUBNETMASK 57bcc05c7aStrem #define CONFIG_BOOTP_GATEWAY 58bcc05c7aStrem #define CONFIG_BOOTP_HOSTNAME 59bcc05c7aStrem #define CONFIG_BOOTP_BOOTPATH 60bcc05c7aStrem #define CONFIG_BOOTP_BOOTFILESIZE 61bcc05c7aStrem #define CONFIG_BOOTP_DNS 62bcc05c7aStrem #define CONFIG_BOOTP_DNS2 63bcc05c7aStrem 64bcc05c7aStrem #define CONFIG_HOSTNAME CONFIG_BOARD_NAME 65bcc05c7aStrem #define CONFIG_ROOTPATH "/tftpboot/" __stringify(CONFIG_BOARD_NAME) "-root" 66bcc05c7aStrem 67bcc05c7aStrem /* 68bcc05c7aStrem * U-Boot Commands 69bcc05c7aStrem */ 70bcc05c7aStrem #include <config_cmd_default.h> 71bcc05c7aStrem 72bcc05c7aStrem #define CONFIG_CMD_ASKENV /* ask for env variable */ 73bcc05c7aStrem #define CONFIG_CMD_BSP /* Board Specific functions */ 74bcc05c7aStrem #define CONFIG_CMD_CACHE /* icache, dcache */ 75bcc05c7aStrem #define CONFIG_CMD_DATE 76bcc05c7aStrem #define CONFIG_CMD_DHCP /* DHCP Support */ 77bcc05c7aStrem #define CONFIG_CMD_DNS 78bcc05c7aStrem #define CONFIG_CMD_EEPROM 79bcc05c7aStrem #define CONFIG_CMD_EXT2 80bcc05c7aStrem #define CONFIG_CMD_FAT /* FAT support */ 81bcc05c7aStrem #define CONFIG_CMD_IMX_FUSE /* imx iim fuse */ 82bcc05c7aStrem #define CONFIG_CMD_I2C 83bcc05c7aStrem #define CONFIG_CMD_MII /* MII support */ 84bcc05c7aStrem #define CONFIG_CMD_MMC 85bcc05c7aStrem #define CONFIG_CMD_MTDPARTS /* MTD partition support */ 86bcc05c7aStrem #define CONFIG_CMD_NAND /* NAND support */ 87bcc05c7aStrem #define CONFIG_CMD_NAND_LOCK_UNLOCK 88bcc05c7aStrem #define CONFIG_CMD_NAND_TRIMFFS 89bcc05c7aStrem #define CONFIG_CMD_NFS /* NFS support */ 90bcc05c7aStrem #define CONFIG_CMD_PING /* ping support */ 91bcc05c7aStrem #define CONFIG_CMD_SETEXPR /* setexpr support */ 92bcc05c7aStrem #define CONFIG_CMD_UBI 93bcc05c7aStrem #define CONFIG_CMD_UBIFS 94bcc05c7aStrem 95bcc05c7aStrem /* 96bcc05c7aStrem * Memory configurations 97bcc05c7aStrem */ 98bcc05c7aStrem #define CONFIG_NR_DRAM_POPULATED 1 99bcc05c7aStrem #define CONFIG_NR_DRAM_BANKS 2 100bcc05c7aStrem 101bcc05c7aStrem #define ACFG_SDRAM_MBYTE_SYZE 64 102bcc05c7aStrem 103bcc05c7aStrem #define PHYS_SDRAM_1 0xA0000000 104bcc05c7aStrem #define PHYS_SDRAM_2 0xB0000000 105bcc05c7aStrem #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 106bcc05c7aStrem #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (512<<10)) 107bcc05c7aStrem #define CONFIG_SYS_MEMTEST_START 0xA0000000 /* memtest test area */ 108bcc05c7aStrem #define CONFIG_SYS_MEMTEST_END 0xA0300000 /* 3 MiB RAM test */ 109bcc05c7aStrem 110bcc05c7aStrem #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE \ 111bcc05c7aStrem + PHYS_SDRAM_1_SIZE - 0x0100000) 112bcc05c7aStrem 113bcc05c7aStrem #define CONFIG_SYS_TEXT_BASE 0xA0000800 114bcc05c7aStrem 115bcc05c7aStrem /* 116bcc05c7aStrem * FLASH organization 117bcc05c7aStrem */ 118bcc05c7aStrem #define ACFG_MONITOR_OFFSET 0x00000000 119bcc05c7aStrem #define CONFIG_SYS_MONITOR_LEN 0x00100000 /* 1MiB */ 120bcc05c7aStrem #define CONFIG_ENV_IS_IN_NAND 121bcc05c7aStrem #define CONFIG_ENV_OVERWRITE 122bcc05c7aStrem #define CONFIG_ENV_OFFSET 0x00100000 /* NAND offset */ 123bcc05c7aStrem #define CONFIG_ENV_SIZE 0x00020000 /* 128kB */ 124bcc05c7aStrem #define CONFIG_ENV_RANGE 0X00080000 /* 512kB */ 125bcc05c7aStrem #define CONFIG_ENV_OFFSET_REDUND \ 126bcc05c7aStrem (CONFIG_ENV_OFFSET + CONFIG_ENV_RANGE) /* +512kB */ 127bcc05c7aStrem #define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE /* 512kB */ 128bcc05c7aStrem #define CONFIG_FIRMWARE_OFFSET 0x00200000 129bcc05c7aStrem #define CONFIG_FIRMWARE_SIZE 0x00080000 /* 512kB */ 130bcc05c7aStrem #define CONFIG_KERNEL_OFFSET 0x00300000 131bcc05c7aStrem #define CONFIG_ROOTFS_OFFSET 0x00800000 132bcc05c7aStrem 133bcc05c7aStrem #define CONFIG_MTDMAP "mxc_nand.0" 134bcc05c7aStrem #define MTDIDS_DEFAULT "nand0=" CONFIG_MTDMAP 135bcc05c7aStrem #define MTDPARTS_DEFAULT "mtdparts=" CONFIG_MTDMAP \ 136bcc05c7aStrem ":1M(u-boot)ro," \ 137bcc05c7aStrem "512K(env)," \ 138bcc05c7aStrem "512K(env2)," \ 139bcc05c7aStrem "512K(firmware)," \ 140bcc05c7aStrem "512K(dtb)," \ 141bcc05c7aStrem "5M(kernel)," \ 142bcc05c7aStrem "-(rootfs)" 143bcc05c7aStrem 144bcc05c7aStrem /* 145bcc05c7aStrem * U-Boot general configurations 146bcc05c7aStrem */ 147bcc05c7aStrem #define CONFIG_SYS_LONGHELP 148bcc05c7aStrem #define CONFIG_SYS_PROMPT "BIOS> " /* prompt string */ 149bcc05c7aStrem #define CONFIG_SYS_CBSIZE 2048 /* console I/O buffer */ 150bcc05c7aStrem #define CONFIG_SYS_PBSIZE \ 151bcc05c7aStrem (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) 152bcc05c7aStrem /* Print buffer size */ 153bcc05c7aStrem #define CONFIG_SYS_MAXARGS 16 /* max command args */ 154bcc05c7aStrem #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE 155bcc05c7aStrem /* Boot argument buffer size */ 156bcc05c7aStrem #define CONFIG_AUTO_COMPLETE 157bcc05c7aStrem #define CONFIG_CMDLINE_EDITING 158bcc05c7aStrem #define CONFIG_SYS_HUSH_PARSER /* enable the "hush" shell */ 159bcc05c7aStrem #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " /* secondary prompt string */ 160bcc05c7aStrem #define CONFIG_ENV_VARS_UBOOT_CONFIG 161bcc05c7aStrem #define CONFIG_PREBOOT "run check_flash check_env;" 162bcc05c7aStrem 163bcc05c7aStrem 164bcc05c7aStrem /* 165bcc05c7aStrem * Boot Linux 166bcc05c7aStrem */ 167bcc05c7aStrem #define CONFIG_CMDLINE_TAG /* send commandline to Kernel */ 168bcc05c7aStrem #define CONFIG_SETUP_MEMORY_TAGS /* send memory definition to kernel */ 169bcc05c7aStrem #define CONFIG_INITRD_TAG /* send initrd params */ 170bcc05c7aStrem 171bcc05c7aStrem #define CONFIG_OF_LIBFDT 172bcc05c7aStrem 173bcc05c7aStrem #define CONFIG_BOOTDELAY 5 174bcc05c7aStrem #define CONFIG_ZERO_BOOTDELAY_CHECK 175bcc05c7aStrem #define CONFIG_BOOTFILE __stringify(CONFIG_BOARD_NAME) "-linux.bin" 176bcc05c7aStrem #define CONFIG_BOOTARGS "console=" __stringify(ACFG_CONSOLE_DEV) "," \ 177bcc05c7aStrem __stringify(CONFIG_BAUDRATE) " " MTDPARTS_DEFAULT \ 178bcc05c7aStrem " ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs " 179bcc05c7aStrem 180bcc05c7aStrem #define ACFG_CONSOLE_DEV ttySMX0 181bcc05c7aStrem #define CONFIG_BOOTCOMMAND "run ubifsboot" 182bcc05c7aStrem #define CONFIG_SYS_AUTOLOAD "no" 183bcc05c7aStrem /* 184bcc05c7aStrem * Default load address for user programs and kernel 185bcc05c7aStrem */ 186bcc05c7aStrem #define CONFIG_LOADADDR 0xA0000000 187bcc05c7aStrem #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR 188bcc05c7aStrem 189bcc05c7aStrem /* 190bcc05c7aStrem * Extra Environments 191bcc05c7aStrem */ 192bcc05c7aStrem #define CONFIG_EXTRA_ENV_SETTINGS \ 193bcc05c7aStrem "env_version=" __stringify(CONFIG_ENV_VERSION) "\0" \ 194bcc05c7aStrem "consoledev=" __stringify(ACFG_CONSOLE_DEV) "\0" \ 195bcc05c7aStrem "mtdparts=" MTDPARTS_DEFAULT "\0" \ 196bcc05c7aStrem "partition=nand0,6\0" \ 197bcc05c7aStrem "u-boot_addr=" __stringify(ACFG_MONITOR_OFFSET) "\0" \ 198bcc05c7aStrem "env_addr=" __stringify(CONFIG_ENV_OFFSET) "\0" \ 199bcc05c7aStrem "firmware_addr=" __stringify(CONFIG_FIRMWARE_OFFSET) "\0" \ 200bcc05c7aStrem "firmware_size=" __stringify(CONFIG_FIRMWARE_SIZE) "\0" \ 201bcc05c7aStrem "kernel_addr=" __stringify(CONFIG_KERNEL_OFFSET) "\0" \ 202bcc05c7aStrem "rootfs_addr=" __stringify(CONFIG_ROOTFS_OFFSET) "\0" \ 203bcc05c7aStrem "board_name=" __stringify(CONFIG_BOARD_NAME) "\0" \ 204bcc05c7aStrem "kernel_addr_r=A0000000\0" \ 205bcc05c7aStrem "check_env=if test -n ${flash_env_version}; " \ 206bcc05c7aStrem "then env default env_version; " \ 207bcc05c7aStrem "else env set flash_env_version ${env_version}; env save; "\ 208bcc05c7aStrem "fi; " \ 209bcc05c7aStrem "if itest ${flash_env_version} < ${env_version}; then " \ 210bcc05c7aStrem "echo \"*** Warning - Environment version" \ 211bcc05c7aStrem " change suggests: run flash_reset_env; reset\"; "\ 212bcc05c7aStrem "env default flash_reset_env; "\ 213bcc05c7aStrem "fi; \0" \ 214bcc05c7aStrem "check_flash=nand lock; nand unlock ${env_addr}; \0" \ 215bcc05c7aStrem "flash_reset_env=env default -f -a; saveenv; run update_env;" \ 216bcc05c7aStrem "echo Flash environment variables erased!\0" \ 217bcc05c7aStrem "download_uboot=tftpboot ${loadaddr} ${board_name}" \ 218bcc05c7aStrem "-u-boot-with-spl.bin\0" \ 219bcc05c7aStrem "flash_uboot=nand unlock ${u-boot_addr} ;" \ 220bcc05c7aStrem "nand erase.part u-boot;" \ 221bcc05c7aStrem "if nand write.trimffs ${fileaddr} ${u-boot_addr} ${filesize};"\ 222bcc05c7aStrem "then nand lock; nand unlock ${env_addr};" \ 223bcc05c7aStrem "echo Flashing of uboot succeed;" \ 224bcc05c7aStrem "else echo Flashing of uboot failed;" \ 225bcc05c7aStrem "fi; \0" \ 226bcc05c7aStrem "update_uboot=run download_uboot flash_uboot\0" \ 227bcc05c7aStrem "download_env=tftpboot ${loadaddr} ${board_name}" \ 228bcc05c7aStrem "-u-boot-env.txt\0" \ 229bcc05c7aStrem "flash_env=env import -t ${loadaddr}; env save; \0" \ 230bcc05c7aStrem "update_env=run download_env flash_env\0" \ 231bcc05c7aStrem "update_all=run update_env update_uboot\0" \ 232bcc05c7aStrem "unlock_regs=mw 10000008 0; mw 10020008 0\0" \ 233bcc05c7aStrem 234bcc05c7aStrem /* 235bcc05c7aStrem * Serial Driver 236bcc05c7aStrem */ 237bcc05c7aStrem #define CONFIG_MXC_UART 238bcc05c7aStrem #define CONFIG_CONS_INDEX 1 239bcc05c7aStrem #define CONFIG_BAUDRATE 115200 240bcc05c7aStrem #define CONFIG_MXC_UART_BASE UART1_BASE 241bcc05c7aStrem 242bcc05c7aStrem /* 243bcc05c7aStrem * GPIO 244bcc05c7aStrem */ 245bcc05c7aStrem #define CONFIG_MXC_GPIO 246bcc05c7aStrem 247bcc05c7aStrem /* 248bcc05c7aStrem * NOR 249bcc05c7aStrem */ 250bcc05c7aStrem 251bcc05c7aStrem /* 252bcc05c7aStrem * NAND 253bcc05c7aStrem */ 254bcc05c7aStrem #define CONFIG_NAND_MXC 255bcc05c7aStrem 256bcc05c7aStrem #define CONFIG_MXC_NAND_REGS_BASE 0xD8000000 257bcc05c7aStrem #define CONFIG_SYS_NAND_BASE CONFIG_MXC_NAND_REGS_BASE 258bcc05c7aStrem #define CONFIG_SYS_MAX_NAND_DEVICE 1 259bcc05c7aStrem 260bcc05c7aStrem #define CONFIG_MXC_NAND_HWECC 261bcc05c7aStrem #define CONFIG_SYS_NAND_LARGEPAGE 262bcc05c7aStrem #define CONFIG_SYS_NAND_BUSWIDTH_16BIT 263bcc05c7aStrem #define CONFIG_SYS_NAND_PAGE_SIZE 2048 264bcc05c7aStrem #define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024) 265bcc05c7aStrem #define CONFIG_SYS_NAND_PAGE_COUNT CONFIG_SYS_NAND_BLOCK_SIZE / \ 266bcc05c7aStrem CONFIG_SYS_NAND_PAGE_SIZE 267bcc05c7aStrem #define CONFIG_SYS_NAND_SIZE (256 * 1024 * 1024) 268bcc05c7aStrem #define CONFIG_SYS_NAND_BAD_BLOCK_POS 11 269bcc05c7aStrem #define NAND_MAX_CHIPS 1 270bcc05c7aStrem 271bcc05c7aStrem #define CONFIG_FLASH_SHOW_PROGRESS 45 272bcc05c7aStrem #define CONFIG_SYS_NAND_QUIET 1 273bcc05c7aStrem 274bcc05c7aStrem /* 275bcc05c7aStrem * Partitions & Filsystems 276bcc05c7aStrem */ 277bcc05c7aStrem #define CONFIG_MTD_DEVICE 278bcc05c7aStrem #define CONFIG_MTD_PARTITIONS 279bcc05c7aStrem #define CONFIG_DOS_PARTITION 280bcc05c7aStrem #define CONFIG_SUPPORT_VFAT 281bcc05c7aStrem 282bcc05c7aStrem /* 283bcc05c7aStrem * UBIFS 284bcc05c7aStrem */ 285bcc05c7aStrem #define CONFIG_RBTREE 286bcc05c7aStrem #define CONFIG_LZO 287bcc05c7aStrem 288bcc05c7aStrem /* 289bcc05c7aStrem * Ethernet (on SOC imx FEC) 290bcc05c7aStrem */ 291bcc05c7aStrem #define CONFIG_FEC_MXC 292bcc05c7aStrem #define CONFIG_FEC_MXC_PHYADDR 0x1f 293bcc05c7aStrem #define CONFIG_MII /* MII PHY management */ 294bcc05c7aStrem 295bcc05c7aStrem /* 296b5e7f1bcStrem * FPGA 297b5e7f1bcStrem */ 298b5e7f1bcStrem #ifndef CONFIG_SPL_BUILD 299b5e7f1bcStrem #define CONFIG_FPGA 300b5e7f1bcStrem #endif 301b5e7f1bcStrem #define CONFIG_FPGA_COUNT 1 302b5e7f1bcStrem #define CONFIG_FPGA_XILINX 303b5e7f1bcStrem #define CONFIG_FPGA_SPARTAN3 304b5e7f1bcStrem #define CONFIG_SYS_FPGA_WAIT 250 /* 250 ms */ 305b5e7f1bcStrem #define CONFIG_SYS_FPGA_PROG_FEEDBACK 306b5e7f1bcStrem #define CONFIG_SYS_FPGA_CHECK_CTRLC 307b5e7f1bcStrem #define CONFIG_SYS_FPGA_CHECK_ERROR 308b5e7f1bcStrem 309b5e7f1bcStrem /* 310bcc05c7aStrem * Fuses - IIM 311bcc05c7aStrem */ 312bcc05c7aStrem #ifdef CONFIG_CMD_IMX_FUSE 313bcc05c7aStrem #define IIM_MAC_BANK 0 314bcc05c7aStrem #define IIM_MAC_ROW 5 315bcc05c7aStrem #define IIM0_SCC_KEY 11 316bcc05c7aStrem #define IIM1_SUID 1 317bcc05c7aStrem #endif 318bcc05c7aStrem 319bcc05c7aStrem /* 320bcc05c7aStrem * I2C 321bcc05c7aStrem */ 322bcc05c7aStrem 323bcc05c7aStrem #ifdef CONFIG_CMD_I2C 324*b089d039Strem #define CONFIG_SYS_I2C 325*b089d039Strem #define CONFIG_SYS_I2C_MXC 326*b089d039Strem #define CONFIG_SYS_MXC_I2C1_SPEED 100000 /* 100 kHz */ 327*b089d039Strem #define CONFIG_SYS_MXC_I2C1_SLAVE 0x7F 328*b089d039Strem #define CONFIG_SYS_MXC_I2C2_SPEED 100000 /* 100 kHz */ 329*b089d039Strem #define CONFIG_SYS_MXC_I2C2_SLAVE 0x7F 330bcc05c7aStrem #define CONFIG_SYS_I2C_NOPROBES { } 331bcc05c7aStrem 332bcc05c7aStrem #ifdef CONFIG_CMD_EEPROM 333bcc05c7aStrem # define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* EEPROM 24LC02 */ 334bcc05c7aStrem # define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* bytes of address */ 335bcc05c7aStrem #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 336bcc05c7aStrem #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 /* msec */ 337bcc05c7aStrem #endif /* CONFIG_CMD_EEPROM */ 338bcc05c7aStrem #endif /* CONFIG_CMD_I2C */ 339bcc05c7aStrem 340bcc05c7aStrem /* 341bcc05c7aStrem * SD/MMC 342bcc05c7aStrem */ 343bcc05c7aStrem #ifdef CONFIG_CMD_MMC 344bcc05c7aStrem #define CONFIG_MMC 345bcc05c7aStrem #define CONFIG_GENERIC_MMC 346bcc05c7aStrem #define CONFIG_MXC_MMC 347bcc05c7aStrem #define CONFIG_MXC_MCI_REGS_BASE 0x10014000 348bcc05c7aStrem #endif 349bcc05c7aStrem 350bcc05c7aStrem /* 351bcc05c7aStrem * RTC 352bcc05c7aStrem */ 353bcc05c7aStrem #ifdef CONFIG_CMD_DATE 354bcc05c7aStrem #define CONFIG_RTC_DS1374 355bcc05c7aStrem #define CONFIG_SYS_RTC_BUS_NUM 0 356bcc05c7aStrem #endif /* CONFIG_CMD_DATE */ 357bcc05c7aStrem 358bcc05c7aStrem /* 359bcc05c7aStrem * Clocks 360bcc05c7aStrem */ 361bcc05c7aStrem #define CONFIG_SYS_HZ 1000 /* Ticks per second */ 362bcc05c7aStrem 363bcc05c7aStrem /* 364bcc05c7aStrem * PLL 365bcc05c7aStrem * 366bcc05c7aStrem * 31 | x |x| x x x x |x x x x x x x x x x |x x|x x x x|x x x x x x x x x x| 0 367bcc05c7aStrem * |CPLM|X|----PD---|--------MFD---------|XXX|--MFI--|-----MFN-----------| 368bcc05c7aStrem */ 369bcc05c7aStrem #define CONFIG_MX27_CLK32 32768 /* 32768 or 32000 Hz crystal */ 370bcc05c7aStrem 371bcc05c7aStrem #if (ACFG_SDRAM_MBYTE_SYZE == 64) /* micron MT46H16M32LF -6 */ 372bcc05c7aStrem /* micron 64MB */ 373bcc05c7aStrem #define PHYS_SDRAM_1_SIZE 0x04000000 /* 64 MB */ 374bcc05c7aStrem #define PHYS_SDRAM_2_SIZE 0x04000000 /* 64 MB */ 375bcc05c7aStrem #endif 376bcc05c7aStrem 377bcc05c7aStrem #if (ACFG_SDRAM_MBYTE_SYZE == 128) 378bcc05c7aStrem /* micron 128MB */ 379bcc05c7aStrem #define PHYS_SDRAM_1_SIZE 0x08000000 /* 128 MB */ 380bcc05c7aStrem #define PHYS_SDRAM_2_SIZE 0x08000000 /* 128 MB */ 381bcc05c7aStrem #endif 382bcc05c7aStrem 383bcc05c7aStrem #if (ACFG_SDRAM_MBYTE_SYZE == 256) 384bcc05c7aStrem /* micron 256MB */ 385bcc05c7aStrem #define PHYS_SDRAM_1_SIZE 0x10000000 /* 256 MB */ 386bcc05c7aStrem #define PHYS_SDRAM_2_SIZE 0x10000000 /* 256 MB */ 387bcc05c7aStrem #endif 388bcc05c7aStrem 389bcc05c7aStrem #endif /* __CONFIG_H */ 390