1ad9bc8e5SDirk Behme /* 2ad9bc8e5SDirk Behme * (C) Copyright 2006-2008 3ad9bc8e5SDirk Behme * Texas Instruments. 4ad9bc8e5SDirk Behme * Author : 5ad9bc8e5SDirk Behme * Manikandan Pillai <mani.pillai@ti.com> 6ad9bc8e5SDirk Behme * Derived from Beagle Board and 3430 SDP code by 7ad9bc8e5SDirk Behme * Richard Woodruff <r-woodruff2@ti.com> 8ad9bc8e5SDirk Behme * Syed Mohammed Khasim <khasim@ti.com> 9ad9bc8e5SDirk Behme * 10ad9bc8e5SDirk Behme * Manikandan Pillai <mani.pillai@ti.com> 11ad9bc8e5SDirk Behme * 12ad9bc8e5SDirk Behme * Configuration settings for the TI OMAP3 EVM board. 13ad9bc8e5SDirk Behme * 14ad9bc8e5SDirk Behme * See file CREDITS for list of people who contributed to this 15ad9bc8e5SDirk Behme * project. 16ad9bc8e5SDirk Behme * 17ad9bc8e5SDirk Behme * This program is free software; you can redistribute it and/or 18ad9bc8e5SDirk Behme * modify it under the terms of the GNU General Public License as 19ad9bc8e5SDirk Behme * published by the Free Software Foundation; either version 2 of 20ad9bc8e5SDirk Behme * the License, or (at your option) any later version. 21ad9bc8e5SDirk Behme * 22ad9bc8e5SDirk Behme * This program is distributed in the hope that it will be useful, 23ad9bc8e5SDirk Behme * but WITHOUT ANY WARRANTY; without even the implied warranty of 24ad9bc8e5SDirk Behme * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25ad9bc8e5SDirk Behme * GNU General Public License for more details. 26ad9bc8e5SDirk Behme * 27ad9bc8e5SDirk Behme * You should have received a copy of the GNU General Public License 28ad9bc8e5SDirk Behme * along with this program; if not, write to the Free Software 29ad9bc8e5SDirk Behme * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 30ad9bc8e5SDirk Behme * MA 02111-1307 USA 31ad9bc8e5SDirk Behme */ 32ad9bc8e5SDirk Behme 33ad9bc8e5SDirk Behme #ifndef __CONFIG_H 34ad9bc8e5SDirk Behme #define __CONFIG_H 35ad9bc8e5SDirk Behme #include <asm/sizes.h> 36ad9bc8e5SDirk Behme 37ad9bc8e5SDirk Behme /* 38ad9bc8e5SDirk Behme * High Level Configuration Options 39ad9bc8e5SDirk Behme */ 40ad9bc8e5SDirk Behme #define CONFIG_ARMCORTEXA8 1 /* This is an ARM V7 CPU core */ 41ad9bc8e5SDirk Behme #define CONFIG_OMAP 1 /* in a TI OMAP core */ 42ad9bc8e5SDirk Behme #define CONFIG_OMAP34XX 1 /* which is a 34XX */ 43ad9bc8e5SDirk Behme #define CONFIG_OMAP3430 1 /* which is in a 3430 */ 44ad9bc8e5SDirk Behme #define CONFIG_OMAP3_EVM 1 /* working with EVM */ 45ad9bc8e5SDirk Behme 46ad9bc8e5SDirk Behme #include <asm/arch/cpu.h> /* get chip and board defs */ 47ad9bc8e5SDirk Behme #include <asm/arch/omap3.h> 48ad9bc8e5SDirk Behme 49ad9bc8e5SDirk Behme /* Clock Defines */ 50ad9bc8e5SDirk Behme #define V_OSCK 26000000 /* Clock output from T2 */ 51ad9bc8e5SDirk Behme #define V_SCLK (V_OSCK >> 1) 52ad9bc8e5SDirk Behme 53ad9bc8e5SDirk Behme #undef CONFIG_USE_IRQ /* no support for IRQs */ 54ad9bc8e5SDirk Behme #define CONFIG_MISC_INIT_R 55ad9bc8e5SDirk Behme 56ad9bc8e5SDirk Behme #define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */ 57ad9bc8e5SDirk Behme #define CONFIG_SETUP_MEMORY_TAGS 1 58ad9bc8e5SDirk Behme #define CONFIG_INITRD_TAG 1 59ad9bc8e5SDirk Behme #define CONFIG_REVISION_TAG 1 60ad9bc8e5SDirk Behme 61ad9bc8e5SDirk Behme /* 62ad9bc8e5SDirk Behme * Size of malloc() pool 63ad9bc8e5SDirk Behme */ 64ad9bc8e5SDirk Behme #define CONFIG_ENV_SIZE SZ_128K /* Total Size Environment */ 65ad9bc8e5SDirk Behme /* Sector */ 66ad9bc8e5SDirk Behme #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + SZ_128K) 67ad9bc8e5SDirk Behme #define CONFIG_SYS_GBL_DATA_SIZE 128 /* bytes reserved for */ 68ad9bc8e5SDirk Behme /* initial data */ 69ad9bc8e5SDirk Behme 70ad9bc8e5SDirk Behme /* 71ad9bc8e5SDirk Behme * Hardware drivers 72ad9bc8e5SDirk Behme */ 73ad9bc8e5SDirk Behme 74ad9bc8e5SDirk Behme /* 75ad9bc8e5SDirk Behme * NS16550 Configuration 76ad9bc8e5SDirk Behme */ 77ad9bc8e5SDirk Behme #define V_NS16550_CLK 48000000 /* 48MHz (APLL96/2) */ 78ad9bc8e5SDirk Behme 79ad9bc8e5SDirk Behme #define CONFIG_SYS_NS16550 80ad9bc8e5SDirk Behme #define CONFIG_SYS_NS16550_SERIAL 81ad9bc8e5SDirk Behme #define CONFIG_SYS_NS16550_REG_SIZE (-4) 82ad9bc8e5SDirk Behme #define CONFIG_SYS_NS16550_CLK V_NS16550_CLK 83ad9bc8e5SDirk Behme 84ad9bc8e5SDirk Behme /* 85ad9bc8e5SDirk Behme * select serial console configuration 86ad9bc8e5SDirk Behme */ 87ad9bc8e5SDirk Behme #define CONFIG_CONS_INDEX 1 88ad9bc8e5SDirk Behme #define CONFIG_SYS_NS16550_COM1 OMAP34XX_UART1 89ad9bc8e5SDirk Behme #define CONFIG_SERIAL1 1 /* UART1 on OMAP3 EVM */ 90ad9bc8e5SDirk Behme 91ad9bc8e5SDirk Behme /* allow to overwrite serial and ethaddr */ 92ad9bc8e5SDirk Behme #define CONFIG_ENV_OVERWRITE 93ad9bc8e5SDirk Behme #define CONFIG_BAUDRATE 115200 94ad9bc8e5SDirk Behme #define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\ 95ad9bc8e5SDirk Behme 115200} 96ad9bc8e5SDirk Behme #define CONFIG_MMC 1 97ad9bc8e5SDirk Behme #define CONFIG_OMAP3_MMC 1 98ad9bc8e5SDirk Behme #define CONFIG_DOS_PARTITION 1 99ad9bc8e5SDirk Behme 100ad9bc8e5SDirk Behme /* commands to include */ 101ad9bc8e5SDirk Behme #include <config_cmd_default.h> 102ad9bc8e5SDirk Behme 103ad9bc8e5SDirk Behme #define CONFIG_CMD_EXT2 /* EXT2 Support */ 104ad9bc8e5SDirk Behme #define CONFIG_CMD_FAT /* FAT support */ 105ad9bc8e5SDirk Behme #define CONFIG_CMD_JFFS2 /* JFFS2 Support */ 106ad9bc8e5SDirk Behme 107ad9bc8e5SDirk Behme #define CONFIG_CMD_I2C /* I2C serial bus support */ 108ad9bc8e5SDirk Behme #define CONFIG_CMD_MMC /* MMC support */ 109ad9bc8e5SDirk Behme #define CONFIG_CMD_ONENAND /* ONENAND support */ 110ad9bc8e5SDirk Behme #define CONFIG_CMD_DHCP 111ad9bc8e5SDirk Behme #define CONFIG_CMD_PING 112ad9bc8e5SDirk Behme 113ad9bc8e5SDirk Behme #undef CONFIG_CMD_FLASH /* flinfo, erase, protect */ 114ad9bc8e5SDirk Behme #undef CONFIG_CMD_FPGA /* FPGA configuration Support */ 115ad9bc8e5SDirk Behme #undef CONFIG_CMD_IMI /* iminfo */ 116ad9bc8e5SDirk Behme #undef CONFIG_CMD_IMLS /* List all found images */ 117ad9bc8e5SDirk Behme 118ad9bc8e5SDirk Behme #define CONFIG_SYS_NO_FLASH 119ad9bc8e5SDirk Behme #define CONFIG_SYS_I2C_SPEED 100000 120ad9bc8e5SDirk Behme #define CONFIG_SYS_I2C_SLAVE 1 121ad9bc8e5SDirk Behme #define CONFIG_SYS_I2C_BUS 0 122ad9bc8e5SDirk Behme #define CONFIG_SYS_I2C_BUS_SELECT 1 123ad9bc8e5SDirk Behme #define CONFIG_DRIVER_OMAP34XX_I2C 1 124ad9bc8e5SDirk Behme 125ad9bc8e5SDirk Behme /* 126ad9bc8e5SDirk Behme * Board NAND Info. 127ad9bc8e5SDirk Behme */ 128ad9bc8e5SDirk Behme #define CONFIG_SYS_NAND_ADDR NAND_BASE /* physical address */ 129ad9bc8e5SDirk Behme /* to access nand */ 130ad9bc8e5SDirk Behme #define CONFIG_SYS_NAND_BASE NAND_BASE /* physical address */ 131ad9bc8e5SDirk Behme /* to access */ 132ad9bc8e5SDirk Behme /* nand at CS0 */ 133ad9bc8e5SDirk Behme 134ad9bc8e5SDirk Behme #define CONFIG_SYS_MAX_NAND_DEVICE 1 /* Max number of */ 135ad9bc8e5SDirk Behme /* NAND devices */ 136ad9bc8e5SDirk Behme #define SECTORSIZE 512 137ad9bc8e5SDirk Behme 138ad9bc8e5SDirk Behme #define NAND_ALLOW_ERASE_ALL 139ad9bc8e5SDirk Behme #define ADDR_COLUMN 1 140ad9bc8e5SDirk Behme #define ADDR_PAGE 2 141ad9bc8e5SDirk Behme #define ADDR_COLUMN_PAGE 3 142ad9bc8e5SDirk Behme 143ad9bc8e5SDirk Behme #define NAND_ChipID_UNKNOWN 0x00 144ad9bc8e5SDirk Behme #define NAND_MAX_FLOORS 1 145ad9bc8e5SDirk Behme #define NAND_MAX_CHIPS 1 146ad9bc8e5SDirk Behme #define NAND_NO_RB 1 147ad9bc8e5SDirk Behme #define CONFIG_SYS_NAND_WP 148ad9bc8e5SDirk Behme 149ad9bc8e5SDirk Behme #define CONFIG_JFFS2_NAND 150ad9bc8e5SDirk Behme /* nand device jffs2 lives on */ 151ad9bc8e5SDirk Behme #define CONFIG_JFFS2_DEV "nand0" 152ad9bc8e5SDirk Behme /* start of jffs2 partition */ 153ad9bc8e5SDirk Behme #define CONFIG_JFFS2_PART_OFFSET 0x680000 154ad9bc8e5SDirk Behme #define CONFIG_JFFS2_PART_SIZE 0xf980000 /* sz of jffs2 part */ 155ad9bc8e5SDirk Behme 156ad9bc8e5SDirk Behme /* Environment information */ 157ad9bc8e5SDirk Behme #define CONFIG_BOOTDELAY 10 158ad9bc8e5SDirk Behme 159ad9bc8e5SDirk Behme #define CONFIG_EXTRA_ENV_SETTINGS \ 160ad9bc8e5SDirk Behme "loadaddr=0x82000000\0" \ 161ad9bc8e5SDirk Behme "console=ttyS2,115200n8\0" \ 162ad9bc8e5SDirk Behme "mmcargs=setenv bootargs console=${console} " \ 163ad9bc8e5SDirk Behme "root=/dev/mmcblk0p2 rw " \ 164ad9bc8e5SDirk Behme "rootfstype=ext3 rootwait\0" \ 165ad9bc8e5SDirk Behme "nandargs=setenv bootargs console=${console} " \ 166ad9bc8e5SDirk Behme "root=/dev/mtdblock4 rw " \ 167ad9bc8e5SDirk Behme "rootfstype=jffs2\0" \ 168ad9bc8e5SDirk Behme "loadbootscript=fatload mmc 0 ${loadaddr} boot.scr\0" \ 169ad9bc8e5SDirk Behme "bootscript=echo Running bootscript from mmc ...; " \ 170*74de7aefSWolfgang Denk "source ${loadaddr}\0" \ 171ad9bc8e5SDirk Behme "loaduimage=fatload mmc 0 ${loadaddr} uImage\0" \ 172ad9bc8e5SDirk Behme "mmcboot=echo Booting from mmc ...; " \ 173ad9bc8e5SDirk Behme "run mmcargs; " \ 174ad9bc8e5SDirk Behme "bootm ${loadaddr}\0" \ 175ad9bc8e5SDirk Behme "nandboot=echo Booting from nand ...; " \ 176ad9bc8e5SDirk Behme "run nandargs; " \ 177ad9bc8e5SDirk Behme "onenand read ${loadaddr} 280000 400000; " \ 178ad9bc8e5SDirk Behme "bootm ${loadaddr}\0" \ 179ad9bc8e5SDirk Behme 180ad9bc8e5SDirk Behme #define CONFIG_BOOTCOMMAND \ 181ad9bc8e5SDirk Behme "if mmcinit; then " \ 182ad9bc8e5SDirk Behme "if run loadbootscript; then " \ 183ad9bc8e5SDirk Behme "run bootscript; " \ 184ad9bc8e5SDirk Behme "else " \ 185ad9bc8e5SDirk Behme "if run loaduimage; then " \ 186ad9bc8e5SDirk Behme "run mmcboot; " \ 187ad9bc8e5SDirk Behme "else run nandboot; " \ 188ad9bc8e5SDirk Behme "fi; " \ 189ad9bc8e5SDirk Behme "fi; " \ 190ad9bc8e5SDirk Behme "else run nandboot; fi" 191ad9bc8e5SDirk Behme 192ad9bc8e5SDirk Behme #define CONFIG_AUTO_COMPLETE 1 193ad9bc8e5SDirk Behme /* 194ad9bc8e5SDirk Behme * Miscellaneous configurable options 195ad9bc8e5SDirk Behme */ 196ad9bc8e5SDirk Behme #define V_PROMPT "OMAP3_EVM # " 197ad9bc8e5SDirk Behme 198ad9bc8e5SDirk Behme #define CONFIG_SYS_LONGHELP /* undef to save memory */ 199ad9bc8e5SDirk Behme #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */ 200ad9bc8e5SDirk Behme #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 201ad9bc8e5SDirk Behme #define CONFIG_SYS_PROMPT V_PROMPT 202ad9bc8e5SDirk Behme #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ 203ad9bc8e5SDirk Behme /* Print Buffer Size */ 204ad9bc8e5SDirk Behme #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \ 205ad9bc8e5SDirk Behme sizeof(CONFIG_SYS_PROMPT) + 16) 206ad9bc8e5SDirk Behme #define CONFIG_SYS_MAXARGS 16 /* max number of command */ 207ad9bc8e5SDirk Behme /* args */ 208ad9bc8e5SDirk Behme /* Boot Argument Buffer Size */ 209ad9bc8e5SDirk Behme #define CONFIG_SYS_BARGSIZE (CONFIG_SYS_CBSIZE) 210ad9bc8e5SDirk Behme /* memtest works on */ 211ad9bc8e5SDirk Behme #define CONFIG_SYS_MEMTEST_START (OMAP34XX_SDRC_CS0) 212ad9bc8e5SDirk Behme #define CONFIG_SYS_MEMTEST_END (OMAP34XX_SDRC_CS0 + \ 213ad9bc8e5SDirk Behme 0x01F00000) /* 31MB */ 214ad9bc8e5SDirk Behme 215ad9bc8e5SDirk Behme #define CONFIG_SYS_LOAD_ADDR (OMAP34XX_SDRC_CS0) /* default load */ 216ad9bc8e5SDirk Behme /* address */ 217ad9bc8e5SDirk Behme 218ad9bc8e5SDirk Behme /* 219ad9bc8e5SDirk Behme * 2430 has 12 GP timers, they can be driven by the SysClk (12/13/19.2) or by 220ad9bc8e5SDirk Behme * 32KHz clk, or from external sig. This rate is divided by a local divisor. 221ad9bc8e5SDirk Behme */ 222ad9bc8e5SDirk Behme #define CONFIG_SYS_TIMERBASE OMAP34XX_GPT2 22381472d89SLadislav Michl #define CONFIG_SYS_PTV 7 /* 2^(PTV+1) */ 22481472d89SLadislav Michl #define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV)) 225ad9bc8e5SDirk Behme 226ad9bc8e5SDirk Behme /*----------------------------------------------------------------------- 227ad9bc8e5SDirk Behme * Stack sizes 228ad9bc8e5SDirk Behme * 229ad9bc8e5SDirk Behme * The stack sizes are set up in start.S using the settings below 230ad9bc8e5SDirk Behme */ 231ad9bc8e5SDirk Behme #define CONFIG_STACKSIZE SZ_128K /* regular stack */ 232ad9bc8e5SDirk Behme #ifdef CONFIG_USE_IRQ 233ad9bc8e5SDirk Behme #define CONFIG_STACKSIZE_IRQ SZ_4K /* IRQ stack */ 234ad9bc8e5SDirk Behme #define CONFIG_STACKSIZE_FIQ SZ_4K /* FIQ stack */ 235ad9bc8e5SDirk Behme #endif 236ad9bc8e5SDirk Behme 237ad9bc8e5SDirk Behme /*----------------------------------------------------------------------- 238ad9bc8e5SDirk Behme * Physical Memory Map 239ad9bc8e5SDirk Behme */ 240ad9bc8e5SDirk Behme #define CONFIG_NR_DRAM_BANKS 2 /* CS1 may or may not be populated */ 241ad9bc8e5SDirk Behme #define PHYS_SDRAM_1 OMAP34XX_SDRC_CS0 242ad9bc8e5SDirk Behme #define PHYS_SDRAM_1_SIZE SZ_32M /* at least 32 meg */ 243ad9bc8e5SDirk Behme #define PHYS_SDRAM_2 OMAP34XX_SDRC_CS1 244ad9bc8e5SDirk Behme 245ad9bc8e5SDirk Behme /* SDRAM Bank Allocation method */ 246ad9bc8e5SDirk Behme #define SDRC_R_B_C 1 247ad9bc8e5SDirk Behme 248ad9bc8e5SDirk Behme /*----------------------------------------------------------------------- 249ad9bc8e5SDirk Behme * FLASH and environment organization 250ad9bc8e5SDirk Behme */ 251ad9bc8e5SDirk Behme 252ad9bc8e5SDirk Behme /* **** PISMO SUPPORT *** */ 253ad9bc8e5SDirk Behme 254ad9bc8e5SDirk Behme /* Configure the PISMO */ 255ad9bc8e5SDirk Behme #define PISMO1_NAND_SIZE GPMC_SIZE_128M 256ad9bc8e5SDirk Behme #define PISMO1_ONEN_SIZE GPMC_SIZE_128M 257ad9bc8e5SDirk Behme 258ad9bc8e5SDirk Behme #define CONFIG_SYS_MAX_FLASH_SECT 520 /* max number of sectors */ 259ad9bc8e5SDirk Behme /* on one chip */ 260ad9bc8e5SDirk Behme #define CONFIG_SYS_MAX_FLASH_BANKS 2 /* max number of flash banks */ 261ad9bc8e5SDirk Behme #define CONFIG_SYS_MONITOR_LEN SZ_256K /* Reserve 2 sectors */ 262ad9bc8e5SDirk Behme 263ad9bc8e5SDirk Behme #define CONFIG_SYS_FLASH_BASE boot_flash_base 264ad9bc8e5SDirk Behme 265ad9bc8e5SDirk Behme /* Monitor at start of flash */ 266ad9bc8e5SDirk Behme #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE 267ad9bc8e5SDirk Behme #define CONFIG_SYS_ONENAND_BASE ONENAND_MAP 268ad9bc8e5SDirk Behme 269ad9bc8e5SDirk Behme #define CONFIG_ENV_IS_IN_ONENAND 1 270ad9bc8e5SDirk Behme #define ONENAND_ENV_OFFSET 0x260000 /* environment starts here */ 271ad9bc8e5SDirk Behme #define SMNAND_ENV_OFFSET 0x260000 /* environment starts here */ 272ad9bc8e5SDirk Behme 273ad9bc8e5SDirk Behme #define CONFIG_SYS_ENV_SECT_SIZE boot_flash_sec 274ad9bc8e5SDirk Behme #define CONFIG_ENV_OFFSET boot_flash_off 275ad9bc8e5SDirk Behme #define CONFIG_ENV_ADDR boot_flash_env_addr 276ad9bc8e5SDirk Behme 277ad9bc8e5SDirk Behme /*----------------------------------------------------------------------- 278ad9bc8e5SDirk Behme * CFI FLASH driver setup 279ad9bc8e5SDirk Behme */ 280ad9bc8e5SDirk Behme /* timeout values are in ticks */ 281ad9bc8e5SDirk Behme #define CONFIG_SYS_FLASH_ERASE_TOUT (100 * CONFIG_SYS_HZ) 282ad9bc8e5SDirk Behme #define CONFIG_SYS_FLASH_WRITE_TOUT (100 * CONFIG_SYS_HZ) 283ad9bc8e5SDirk Behme 284ad9bc8e5SDirk Behme /* Flash banks JFFS2 should use */ 285ad9bc8e5SDirk Behme #define CONFIG_SYS_MAX_MTD_BANKS (CONFIG_SYS_MAX_FLASH_BANKS + \ 286ad9bc8e5SDirk Behme CONFIG_SYS_MAX_NAND_DEVICE) 287ad9bc8e5SDirk Behme #define CONFIG_SYS_JFFS2_MEM_NAND 288ad9bc8e5SDirk Behme /* use flash_info[2] */ 289ad9bc8e5SDirk Behme #define CONFIG_SYS_JFFS2_FIRST_BANK CONFIG_SYS_MAX_FLASH_BANKS 290ad9bc8e5SDirk Behme #define CONFIG_SYS_JFFS2_NUM_BANKS 1 291ad9bc8e5SDirk Behme 292ad9bc8e5SDirk Behme #ifndef __ASSEMBLY__ 293ad9bc8e5SDirk Behme extern gpmc_csx_t *nand_cs_base; 294ad9bc8e5SDirk Behme extern gpmc_t *gpmc_cfg_base; 295ad9bc8e5SDirk Behme extern unsigned int boot_flash_base; 296ad9bc8e5SDirk Behme extern volatile unsigned int boot_flash_env_addr; 297ad9bc8e5SDirk Behme extern unsigned int boot_flash_off; 298ad9bc8e5SDirk Behme extern unsigned int boot_flash_sec; 299ad9bc8e5SDirk Behme extern unsigned int boot_flash_type; 300ad9bc8e5SDirk Behme #endif 301ad9bc8e5SDirk Behme 302ad9bc8e5SDirk Behme 303ad9bc8e5SDirk Behme #define WRITE_NAND_COMMAND(d, adr)\ 304ad9bc8e5SDirk Behme writel(d, &nand_cs_base->nand_cmd) 305ad9bc8e5SDirk Behme #define WRITE_NAND_ADDRESS(d, adr)\ 306ad9bc8e5SDirk Behme writel(d, &nand_cs_base->nand_adr) 307ad9bc8e5SDirk Behme #define WRITE_NAND(d, adr) writew(d, &nand_cs_base->nand_dat) 308ad9bc8e5SDirk Behme #define READ_NAND(adr) readl(&nand_cs_base->nand_dat) 309ad9bc8e5SDirk Behme 310ad9bc8e5SDirk Behme /* Other NAND Access APIs */ 311ad9bc8e5SDirk Behme #define NAND_WP_OFF() do {readl(&gpmc_cfg_base->config) |= GPMC_CONFIG_WP; } \ 312ad9bc8e5SDirk Behme while (0) 313ad9bc8e5SDirk Behme #define NAND_WP_ON() do {readl(&gpmc_cfg_base->config) &= ~GPMC_CONFIG_WP; } \ 314ad9bc8e5SDirk Behme while (0) 315ad9bc8e5SDirk Behme #define NAND_DISABLE_CE(nand) 316ad9bc8e5SDirk Behme #define NAND_ENABLE_CE(nand) 317ad9bc8e5SDirk Behme #define NAND_WAIT_READY(nand) udelay(10) 318ad9bc8e5SDirk Behme 319ad9bc8e5SDirk Behme /*---------------------------------------------------------------------------- 320ad9bc8e5SDirk Behme * SMSC9115 Ethernet from SMSC9118 family 321ad9bc8e5SDirk Behme *---------------------------------------------------------------------------- 322ad9bc8e5SDirk Behme */ 323ad9bc8e5SDirk Behme #if defined(CONFIG_CMD_NET) 324ad9bc8e5SDirk Behme 325ad9bc8e5SDirk Behme #define CONFIG_DRIVER_SMC911X 326ad9bc8e5SDirk Behme #define CONFIG_DRIVER_SMC911X_32_BIT 327ad9bc8e5SDirk Behme #define CONFIG_DRIVER_SMC911X_BASE 0x2C000000 328ad9bc8e5SDirk Behme 329ad9bc8e5SDirk Behme #endif /* (CONFIG_CMD_NET) */ 330ad9bc8e5SDirk Behme 331ad9bc8e5SDirk Behme /* 332ad9bc8e5SDirk Behme * BOOTP fields 333ad9bc8e5SDirk Behme */ 334ad9bc8e5SDirk Behme 335ad9bc8e5SDirk Behme #define CONFIG_BOOTP_SUBNETMASK 0x00000001 336ad9bc8e5SDirk Behme #define CONFIG_BOOTP_GATEWAY 0x00000002 337ad9bc8e5SDirk Behme #define CONFIG_BOOTP_HOSTNAME 0x00000004 338ad9bc8e5SDirk Behme #define CONFIG_BOOTP_BOOTPATH 0x00000010 339ad9bc8e5SDirk Behme 340ad9bc8e5SDirk Behme #endif /* __CONFIG_H */ 341