152a822edSMichal Simek /* 24aecfb16SMichal Simek * (C) Copyright 2007-2010 Michal Simek 352a822edSMichal Simek * 452a822edSMichal Simek * Michal SIMEK <monstr@monstr.eu> 552a822edSMichal Simek * 652a822edSMichal Simek * See file CREDITS for list of people who contributed to this 752a822edSMichal Simek * project. 852a822edSMichal Simek * 952a822edSMichal Simek * This program is free software; you can redistribute it and/or 1052a822edSMichal Simek * modify it under the terms of the GNU General Public License as 1152a822edSMichal Simek * published by the Free Software Foundation; either version 2 of 1252a822edSMichal Simek * the License, or (at your option) any later version. 1352a822edSMichal Simek * 1452a822edSMichal Simek * This program is distributed in the hope that it will be useful, 1552a822edSMichal Simek * but WITHOUT ANY WARRANTY; without even the implied warranty of 1652a822edSMichal Simek * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1752a822edSMichal Simek * GNU General Public License for more details. 1852a822edSMichal Simek * 1952a822edSMichal Simek * You should have received a copy of the GNU General Public License 2052a822edSMichal Simek * along with this program; if not, write to the Free Software 2152a822edSMichal Simek * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 2252a822edSMichal Simek * MA 02111-1307 USA 2352a822edSMichal Simek */ 2452a822edSMichal Simek 2552a822edSMichal Simek #ifndef __CONFIG_H 2652a822edSMichal Simek #define __CONFIG_H 2752a822edSMichal Simek 2852a822edSMichal Simek #include "../board/xilinx/microblaze-generic/xparameters.h" 2952a822edSMichal Simek 304aecfb16SMichal Simek /* MicroBlaze CPU */ 314aecfb16SMichal Simek #define CONFIG_MICROBLAZE 1 3252a822edSMichal Simek #define MICROBLAZE_V5 1 3352a822edSMichal Simek 3452a822edSMichal Simek /* uart */ 3552a822edSMichal Simek #ifdef XILINX_UARTLITE_BASEADDR 3652a822edSMichal Simek # define CONFIG_XILINX_UARTLITE 3752a822edSMichal Simek # define CONFIG_SERIAL_BASE XILINX_UARTLITE_BASEADDR 3852a822edSMichal Simek # define CONFIG_BAUDRATE XILINX_UARTLITE_BAUDRATE 3952a822edSMichal Simek # define CONFIG_SYS_BAUDRATE_TABLE { CONFIG_BAUDRATE } 40330e5545SMichal Simek # define CONSOLE_ARG "console=console=ttyUL0,115200\0" 4152a822edSMichal Simek #elif XILINX_UART16550_BASEADDR 4252a822edSMichal Simek # define CONFIG_SYS_NS16550 1 4352a822edSMichal Simek # define CONFIG_SYS_NS16550_SERIAL 441de55ef1SStephan Linz # if defined(__MICROBLAZEEL__) 4552a822edSMichal Simek # define CONFIG_SYS_NS16550_REG_SIZE -4 461de55ef1SStephan Linz # else 471de55ef1SStephan Linz # define CONFIG_SYS_NS16550_REG_SIZE 4 481de55ef1SStephan Linz # endif 4952a822edSMichal Simek # define CONFIG_CONS_INDEX 1 504aecfb16SMichal Simek # define CONFIG_SYS_NS16550_COM1 \ 511de55ef1SStephan Linz ((XILINX_UART16550_BASEADDR & ~0xF) + 0x1000) 5252a822edSMichal Simek # define CONFIG_SYS_NS16550_CLK XILINX_UART16550_CLOCK_HZ 5352a822edSMichal Simek # define CONFIG_BAUDRATE 115200 5452a822edSMichal Simek 5552a822edSMichal Simek /* The following table includes the supported baudrates */ 5652a822edSMichal Simek # define CONFIG_SYS_BAUDRATE_TABLE \ 5752a822edSMichal Simek {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400} 58330e5545SMichal Simek # define CONSOLE_ARG "console=console=ttyS0,115200\0" 5952a822edSMichal Simek #else 6052a822edSMichal Simek # error Undefined uart 6152a822edSMichal Simek #endif 6252a822edSMichal Simek 6352a822edSMichal Simek /* setting reset address */ 6414d0a02aSWolfgang Denk /*#define CONFIG_SYS_RESET_ADDRESS CONFIG_SYS_TEXT_BASE*/ 6552a822edSMichal Simek 6652a822edSMichal Simek /* ethernet */ 671252df06SMichal Simek #undef CONFIG_SYS_ENET 683ceba1d4SMichal Simek #ifdef XILINX_EMACLITE_BASEADDR 6952a822edSMichal Simek # define CONFIG_XILINX_EMACLITE 1 7052a822edSMichal Simek # define CONFIG_SYS_ENET 71330e5545SMichal Simek #elif XILINX_LLTEMAC_BASEADDR 72330e5545SMichal Simek # define CONFIG_XILINX_LL_TEMAC 1 73330e5545SMichal Simek # define CONFIG_SYS_ENET 7452a822edSMichal Simek #endif 75e634138eSMichal Simek #if defined(XILINX_AXIEMAC_BASEADDR) 76e634138eSMichal Simek # define CONFIG_XILINX_AXIEMAC 1 77e634138eSMichal Simek # define CONFIG_SYS_ENET 78e634138eSMichal Simek #endif 79330e5545SMichal Simek 8052a822edSMichal Simek #undef ET_DEBUG 8152a822edSMichal Simek 8252a822edSMichal Simek /* gpio */ 8352a822edSMichal Simek #ifdef XILINX_GPIO_BASEADDR 8452a822edSMichal Simek # define CONFIG_SYS_GPIO_0 1 8552a822edSMichal Simek # define CONFIG_SYS_GPIO_0_ADDR XILINX_GPIO_BASEADDR 8652a822edSMichal Simek #endif 8752a822edSMichal Simek 8852a822edSMichal Simek /* interrupt controller */ 8952a822edSMichal Simek #ifdef XILINX_INTC_BASEADDR 9052a822edSMichal Simek # define CONFIG_SYS_INTC_0 1 9152a822edSMichal Simek # define CONFIG_SYS_INTC_0_ADDR XILINX_INTC_BASEADDR 9252a822edSMichal Simek # define CONFIG_SYS_INTC_0_NUM XILINX_INTC_NUM_INTR_INPUTS 9352a822edSMichal Simek #endif 9452a822edSMichal Simek 9552a822edSMichal Simek /* timer */ 9652a822edSMichal Simek #ifdef XILINX_TIMER_BASEADDR 9752a822edSMichal Simek # if (XILINX_TIMER_IRQ != -1) 9852a822edSMichal Simek # define CONFIG_SYS_TIMER_0 1 9952a822edSMichal Simek # define CONFIG_SYS_TIMER_0_ADDR XILINX_TIMER_BASEADDR 10052a822edSMichal Simek # define CONFIG_SYS_TIMER_0_IRQ XILINX_TIMER_IRQ 10152a822edSMichal Simek # define FREQUENCE XILINX_CLOCK_FREQ 10252a822edSMichal Simek # define CONFIG_SYS_TIMER_0_PRELOAD ( FREQUENCE/1000 ) 10352a822edSMichal Simek # endif 104330e5545SMichal Simek #elif XILINX_CLOCK_FREQ 10552a822edSMichal Simek # define CONFIG_XILINX_CLOCK_FREQ XILINX_CLOCK_FREQ 10652a822edSMichal Simek #else 10752a822edSMichal Simek # error BAD CLOCK FREQ 10852a822edSMichal Simek #endif 10952a822edSMichal Simek /* FSL */ 11052a822edSMichal Simek /* #define CONFIG_SYS_FSL_2 */ 11152a822edSMichal Simek /* #define FSL_INTR_2 1 */ 11252a822edSMichal Simek 11352a822edSMichal Simek /* 11452a822edSMichal Simek * memory layout - Example 11514d0a02aSWolfgang Denk * CONFIG_SYS_TEXT_BASE = 0x1200_0000; 11652a822edSMichal Simek * CONFIG_SYS_SRAM_BASE = 0x1000_0000; 11752a822edSMichal Simek * CONFIG_SYS_SRAM_SIZE = 0x0400_0000; 11852a822edSMichal Simek * 11952a822edSMichal Simek * CONFIG_SYS_GBL_DATA_OFFSET = 0x1000_0000 + 0x0400_0000 - 0x1000 = 0x13FF_F000 12052a822edSMichal Simek * CONFIG_SYS_MONITOR_BASE = 0x13FF_F000 - 0x40000 = 0x13FB_F000 12152a822edSMichal Simek * CONFIG_SYS_MALLOC_BASE = 0x13FB_F000 - 0x40000 = 0x13F7_F000 12252a822edSMichal Simek * 12352a822edSMichal Simek * 0x1000_0000 CONFIG_SYS_SDRAM_BASE 12452a822edSMichal Simek * FREE 12514d0a02aSWolfgang Denk * 0x1200_0000 CONFIG_SYS_TEXT_BASE 12652a822edSMichal Simek * U-BOOT code 12752a822edSMichal Simek * 0x1202_0000 12852a822edSMichal Simek * FREE 12952a822edSMichal Simek * 13052a822edSMichal Simek * STACK 13152a822edSMichal Simek * 0x13F7_F000 CONFIG_SYS_MALLOC_BASE 13252a822edSMichal Simek * MALLOC_AREA 256kB Alloc 13352a822edSMichal Simek * 0x11FB_F000 CONFIG_SYS_MONITOR_BASE 13452a822edSMichal Simek * MONITOR_CODE 256kB Env 13552a822edSMichal Simek * 0x13FF_F000 CONFIG_SYS_GBL_DATA_OFFSET 13652a822edSMichal Simek * GLOBAL_DATA 4kB bd, gd 13752a822edSMichal Simek * 0x1400_0000 CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE 13852a822edSMichal Simek */ 13952a822edSMichal Simek 14052a822edSMichal Simek /* ddr sdram - main memory */ 14152a822edSMichal Simek #define CONFIG_SYS_SDRAM_BASE XILINX_RAM_START 14252a822edSMichal Simek #define CONFIG_SYS_SDRAM_SIZE XILINX_RAM_SIZE 14352a822edSMichal Simek #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE 14452a822edSMichal Simek #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000) 14552a822edSMichal Simek 14652a822edSMichal Simek /* global pointer */ 14752a822edSMichal Simek /* start of global data */ 1484aecfb16SMichal Simek #define CONFIG_SYS_GBL_DATA_OFFSET \ 1491020286eSMichal Simek (CONFIG_SYS_SDRAM_SIZE - GENERATED_GBL_DATA_SIZE) 15052a822edSMichal Simek 15152a822edSMichal Simek /* monitor code */ 15252a822edSMichal Simek #define SIZE 0x40000 1531020286eSMichal Simek #define CONFIG_SYS_MONITOR_LEN SIZE 1544aecfb16SMichal Simek #define CONFIG_SYS_MONITOR_BASE \ 1551020286eSMichal Simek (CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET \ 1561020286eSMichal Simek - CONFIG_SYS_MONITOR_LEN - GENERATED_BD_INFO_SIZE) 1574aecfb16SMichal Simek #define CONFIG_SYS_MONITOR_END \ 1584aecfb16SMichal Simek (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) 15952a822edSMichal Simek #define CONFIG_SYS_MALLOC_LEN SIZE 1604aecfb16SMichal Simek #define CONFIG_SYS_MALLOC_BASE \ 1614aecfb16SMichal Simek (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN) 16252a822edSMichal Simek 16352a822edSMichal Simek /* stack */ 1648fe7b29fSGraeme Smecher #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_MALLOC_BASE 16552a822edSMichal Simek 16652a822edSMichal Simek /*#define RAMENV */ 16752a822edSMichal Simek #define FLASH 16852a822edSMichal Simek 16952a822edSMichal Simek #ifdef FLASH 17052a822edSMichal Simek # define CONFIG_SYS_FLASH_BASE XILINX_FLASH_START 17152a822edSMichal Simek # define CONFIG_SYS_FLASH_SIZE XILINX_FLASH_SIZE 17252a822edSMichal Simek # define CONFIG_SYS_FLASH_CFI 1 17352a822edSMichal Simek # define CONFIG_FLASH_CFI_DRIVER 1 1744aecfb16SMichal Simek /* ?empty sector */ 1754aecfb16SMichal Simek # define CONFIG_SYS_FLASH_EMPTY_INFO 1 1764aecfb16SMichal Simek /* max number of memory banks */ 1774aecfb16SMichal Simek # define CONFIG_SYS_MAX_FLASH_BANKS 1 1784aecfb16SMichal Simek /* max number of sectors on one chip */ 1794aecfb16SMichal Simek # define CONFIG_SYS_MAX_FLASH_SECT 512 1804aecfb16SMichal Simek /* hardware flash protection */ 1814aecfb16SMichal Simek # define CONFIG_SYS_FLASH_PROTECTION 18252a822edSMichal Simek 18352a822edSMichal Simek # ifdef RAMENV 18452a822edSMichal Simek # define CONFIG_ENV_IS_NOWHERE 1 18552a822edSMichal Simek # define CONFIG_ENV_SIZE 0x1000 18652a822edSMichal Simek # define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE) 18752a822edSMichal Simek 18852a822edSMichal Simek # else /* !RAMENV */ 18952a822edSMichal Simek # define CONFIG_ENV_IS_IN_FLASH 1 1904aecfb16SMichal Simek /* 128K(one sector) for env */ 1914aecfb16SMichal Simek # define CONFIG_ENV_SECT_SIZE 0x20000 1924aecfb16SMichal Simek # define CONFIG_ENV_ADDR \ 1934aecfb16SMichal Simek (CONFIG_SYS_FLASH_BASE + (2 * CONFIG_ENV_SECT_SIZE)) 194330e5545SMichal Simek # define CONFIG_ENV_SIZE 0x20000 19552a822edSMichal Simek # endif /* !RAMBOOT */ 19652a822edSMichal Simek #else /* !FLASH */ 19752a822edSMichal Simek /* ENV in RAM */ 19852a822edSMichal Simek # define CONFIG_SYS_NO_FLASH 1 19952a822edSMichal Simek # define CONFIG_ENV_IS_NOWHERE 1 20052a822edSMichal Simek # define CONFIG_ENV_SIZE 0x1000 20152a822edSMichal Simek # define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SIZE) 2024aecfb16SMichal Simek /* hardware flash protection */ 2034aecfb16SMichal Simek # define CONFIG_SYS_FLASH_PROTECTION 20452a822edSMichal Simek #endif /* !FLASH */ 20552a822edSMichal Simek 20652a822edSMichal Simek /* system ace */ 20752a822edSMichal Simek #ifdef XILINX_SYSACE_BASEADDR 20852a822edSMichal Simek # define CONFIG_SYSTEMACE 20952a822edSMichal Simek /* #define DEBUG_SYSTEMACE */ 21052a822edSMichal Simek # define SYSTEMACE_CONFIG_FPGA 21152a822edSMichal Simek # define CONFIG_SYS_SYSTEMACE_BASE XILINX_SYSACE_BASEADDR 21252a822edSMichal Simek # define CONFIG_SYS_SYSTEMACE_WIDTH XILINX_SYSACE_MEM_WIDTH 21352a822edSMichal Simek # define CONFIG_DOS_PARTITION 21452a822edSMichal Simek #endif 21552a822edSMichal Simek 216e9b737deSMichal Simek #if defined(XILINX_USE_ICACHE) 217e9b737deSMichal Simek # define CONFIG_ICACHE 218e9b737deSMichal Simek #else 219e9b737deSMichal Simek # undef CONFIG_ICACHE 220e9b737deSMichal Simek #endif 221e9b737deSMichal Simek 222e9b737deSMichal Simek #if defined(XILINX_USE_DCACHE) 223e9b737deSMichal Simek # define CONFIG_DCACHE 224e9b737deSMichal Simek #else 225e9b737deSMichal Simek # undef CONFIG_DCACHE 226e9b737deSMichal Simek #endif 227e9b737deSMichal Simek 22852a822edSMichal Simek /* 22952a822edSMichal Simek * BOOTP options 23052a822edSMichal Simek */ 23152a822edSMichal Simek #define CONFIG_BOOTP_BOOTFILESIZE 23252a822edSMichal Simek #define CONFIG_BOOTP_BOOTPATH 23352a822edSMichal Simek #define CONFIG_BOOTP_GATEWAY 23452a822edSMichal Simek #define CONFIG_BOOTP_HOSTNAME 23552a822edSMichal Simek 23652a822edSMichal Simek /* 23752a822edSMichal Simek * Command line configuration. 23852a822edSMichal Simek */ 23952a822edSMichal Simek #include <config_cmd_default.h> 24052a822edSMichal Simek 24152a822edSMichal Simek #define CONFIG_CMD_ASKENV 24252a822edSMichal Simek #define CONFIG_CMD_IRQ 24352a822edSMichal Simek #define CONFIG_CMD_MFSL 244330e5545SMichal Simek #define CONFIG_CMD_ECHO 24552a822edSMichal Simek 246e9b737deSMichal Simek #if defined(CONFIG_DCACHE) || defined(CONFIG_ICACHE) 247e9b737deSMichal Simek # define CONFIG_CMD_CACHE 248e9b737deSMichal Simek #else 249e9b737deSMichal Simek # undef CONFIG_CMD_CACHE 250e9b737deSMichal Simek #endif 251e9b737deSMichal Simek 25252a822edSMichal Simek #ifndef CONFIG_SYS_ENET 25352a822edSMichal Simek # undef CONFIG_CMD_NET 2541252df06SMichal Simek # undef CONFIG_CMD_NFS 25552a822edSMichal Simek #else 25652a822edSMichal Simek # define CONFIG_CMD_PING 2573faf987dSStephan Linz # define CONFIG_CMD_DHCP 2584eb29cf0SStephan Linz # define CONFIG_CMD_TFTPPUT 25952a822edSMichal Simek #endif 26052a822edSMichal Simek 26152a822edSMichal Simek #if defined(CONFIG_SYSTEMACE) 26252a822edSMichal Simek # define CONFIG_CMD_EXT2 26352a822edSMichal Simek # define CONFIG_CMD_FAT 26452a822edSMichal Simek #endif 26552a822edSMichal Simek 26652a822edSMichal Simek #if defined(FLASH) 26752a822edSMichal Simek # define CONFIG_CMD_ECHO 26852a822edSMichal Simek # define CONFIG_CMD_FLASH 26952a822edSMichal Simek # define CONFIG_CMD_IMLS 27052a822edSMichal Simek # define CONFIG_CMD_JFFS2 27152a822edSMichal Simek 27252a822edSMichal Simek # if !defined(RAMENV) 273bdab39d3SMike Frysinger # define CONFIG_CMD_SAVEENV 27452a822edSMichal Simek # define CONFIG_CMD_SAVES 27552a822edSMichal Simek # endif 27652a822edSMichal Simek #else 277330e5545SMichal Simek # undef CONFIG_CMD_IMLS 27852a822edSMichal Simek # undef CONFIG_CMD_FLASH 279330e5545SMichal Simek # undef CONFIG_CMD_JFFS2 28052a822edSMichal Simek #endif 28152a822edSMichal Simek 28252a822edSMichal Simek #if defined(CONFIG_CMD_JFFS2) 28352a822edSMichal Simek /* JFFS2 partitions */ 28468d7d651SStefan Roese #define CONFIG_CMD_MTDPARTS /* mtdparts command line support */ 285942556a9SStefan Roese #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ 286942556a9SStefan Roese #define CONFIG_FLASH_CFI_MTD 287c82a541dSStephan Linz #define MTDIDS_DEFAULT "nor0=flash-0" 28852a822edSMichal Simek 28952a822edSMichal Simek /* default mtd partition table */ 290c82a541dSStephan Linz #define MTDPARTS_DEFAULT "mtdparts=flash-0:256k(u-boot),"\ 29152a822edSMichal Simek "256k(env),3m(kernel),1m(romfs),"\ 29252a822edSMichal Simek "1m(cramfs),-(jffs2)" 29352a822edSMichal Simek #endif 29452a822edSMichal Simek 29552a822edSMichal Simek /* Miscellaneous configurable options */ 29652a822edSMichal Simek #define CONFIG_SYS_PROMPT "U-Boot-mONStR> " 2974aecfb16SMichal Simek /* size of console buffer */ 2984aecfb16SMichal Simek #define CONFIG_SYS_CBSIZE 512 2994aecfb16SMichal Simek /* print buffer size */ 3004aecfb16SMichal Simek #define CONFIG_SYS_PBSIZE \ 3014aecfb16SMichal Simek (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) 3024aecfb16SMichal Simek /* max number of command args */ 3034aecfb16SMichal Simek #define CONFIG_SYS_MAXARGS 15 30452a822edSMichal Simek #define CONFIG_SYS_LONGHELP 3054aecfb16SMichal Simek /* default load address */ 3064aecfb16SMichal Simek #define CONFIG_SYS_LOAD_ADDR XILINX_RAM_START 30752a822edSMichal Simek 308330e5545SMichal Simek #define CONFIG_BOOTDELAY -1 /* -1 disables auto-boot */ 30952a822edSMichal Simek #define CONFIG_BOOTARGS "root=romfs" 310330e5545SMichal Simek #define CONFIG_HOSTNAME XILINX_BOARD_NAME 31152a822edSMichal Simek #define CONFIG_BOOTCOMMAND "base 0;tftp 11000000 image.img;bootm" 31252a822edSMichal Simek #define CONFIG_IPADDR 192.168.0.3 31352a822edSMichal Simek #define CONFIG_SERVERIP 192.168.0.5 31452a822edSMichal Simek #define CONFIG_GATEWAYIP 192.168.0.1 31552a822edSMichal Simek #define CONFIG_ETHADDR 00:E0:0C:00:00:FD 31652a822edSMichal Simek 31752a822edSMichal Simek /* architecture dependent code */ 31852a822edSMichal Simek #define CONFIG_SYS_USR_EXCEP /* user exception */ 31952a822edSMichal Simek #define CONFIG_SYS_HZ 1000 32052a822edSMichal Simek 3210900bee9SMichal Simek #define CONFIG_PREBOOT "echo U-BOOT for ${hostname};setenv preboot;echo" 32252a822edSMichal Simek 3234aecfb16SMichal Simek #define CONFIG_EXTRA_ENV_SETTINGS "unlock=yes\0" \ 324c82a541dSStephan Linz "nor0=flash-0\0"\ 325c82a541dSStephan Linz "mtdparts=mtdparts=flash-0:"\ 32652a822edSMichal Simek "256k(u-boot),256k(env),3m(kernel),"\ 32752a822edSMichal Simek "1m(romfs),1m(cramfs),-(jffs2)\0" 32852a822edSMichal Simek 32952a822edSMichal Simek #define CONFIG_CMDLINE_EDITING 33052a822edSMichal Simek 3310900bee9SMichal Simek /* Use the HUSH parser */ 3320900bee9SMichal Simek #define CONFIG_SYS_HUSH_PARSER 3330900bee9SMichal Simek #ifdef CONFIG_SYS_HUSH_PARSER 3340900bee9SMichal Simek # define CONFIG_SYS_PROMPT_HUSH_PS2 "> " 3350900bee9SMichal Simek #endif 3360900bee9SMichal Simek 33737e892d9SMichal Simek /* Enable flat device tree support */ 33837e892d9SMichal Simek #define CONFIG_LMB 1 33937e892d9SMichal Simek #define CONFIG_FIT 1 34037e892d9SMichal Simek #define CONFIG_OF_LIBFDT 1 34137e892d9SMichal Simek 342*f5e5e1ffSStephan Linz #if defined(CONFIG_XILINX_AXIEMAC) 343*f5e5e1ffSStephan Linz # define CONFIG_MII 1 344*f5e5e1ffSStephan Linz # define CONFIG_CMD_MII 1 345*f5e5e1ffSStephan Linz # define CONFIG_PHY_GIGE 1 346*f5e5e1ffSStephan Linz # define CONFIG_SYS_FAULT_ECHO_LINK_DOWN 1 347*f5e5e1ffSStephan Linz # define CONFIG_PHYLIB 1 348*f5e5e1ffSStephan Linz # define CONFIG_PHY_ATHEROS 1 349*f5e5e1ffSStephan Linz # define CONFIG_PHY_BROADCOM 1 350*f5e5e1ffSStephan Linz # define CONFIG_PHY_DAVICOM 1 351*f5e5e1ffSStephan Linz # define CONFIG_PHY_LXT 1 352*f5e5e1ffSStephan Linz # define CONFIG_PHY_MARVELL 1 353*f5e5e1ffSStephan Linz # define CONFIG_PHY_MICREL 1 354*f5e5e1ffSStephan Linz # define CONFIG_PHY_NATSEMI 1 355*f5e5e1ffSStephan Linz # define CONFIG_PHY_REALTEK 1 356*f5e5e1ffSStephan Linz # define CONFIG_PHY_VITESSE 1 357*f5e5e1ffSStephan Linz #else 358*f5e5e1ffSStephan Linz # undef CONFIG_MII 359*f5e5e1ffSStephan Linz # undef CONFIG_CMD_MII 360*f5e5e1ffSStephan Linz # undef CONFIG_PHYLIB 361*f5e5e1ffSStephan Linz #endif 362*f5e5e1ffSStephan Linz 36352a822edSMichal Simek #endif /* __CONFIG_H */ 364