00001 /* 00002 * Copyright 2011 by egnite GmbH 00003 * 00004 * All rights reserved. 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions 00008 * are met: 00009 * 00010 * 1. Redistributions of source code must retain the above copyright 00011 * notice, this list of conditions and the following disclaimer. 00012 * 2. Redistributions in binary form must reproduce the above copyright 00013 * notice, this list of conditions and the following disclaimer in the 00014 * documentation and/or other materials provided with the distribution. 00015 * 3. Neither the name of the copyright holders nor the names of 00016 * contributors may be used to endorse or promote products derived 00017 * from this software without specific prior written permission. 00018 * 00019 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00020 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00021 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00022 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 00023 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00024 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 00025 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 00026 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 00027 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00028 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 00029 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00030 * SUCH DAMAGE. 00031 * 00032 * For additional information see http://www.ethernut.de/ 00033 */ 00034 00035 /* 00036 * \file arch/arm/board/ethernut3.h 00037 * \brief Ethernut 3 board specific settings. 00038 * 00039 * \verbatim 00040 * $Id$ 00041 * \endverbatim 00042 */ 00043 00044 #ifndef _DEV_BOARD_H_ 00045 #error "Do not include this file directly. Use dev/board.h instead!" 00046 #endif 00047 00048 /* 00049 * Determine old board version 00050 */ 00051 #include <cfg/eeprom.h> 00052 #if defined(NUT_CONFIG_X12RTC) 00053 #define ETHERNUT3_0 00054 #endif 00055 00056 /* 00057 * Console devices 00058 */ 00059 #ifndef DEV_CONSOLE 00060 #ifdef NUT_DEV_DEBUG_READ 00061 #define DEV_CONSOLE DEV_DEBUG 00062 #endif 00063 #endif 00064 00065 /* 00066 * Ethernet devices 00067 */ 00068 #ifndef NIC_BASE_ADDR 00069 #define NIC_BASE_ADDR 0x20000000 00070 #endif 00071 00072 #ifndef NIC_SIGNAL_IRQ 00073 #define NIC_SIGNAL_IRQ INT1 00074 #endif 00075 00076 #ifndef NIC_SIGNAL_PDR 00077 #define NIC_SIGNAL_PDR PIO_PDR 00078 #endif 00079 00080 #ifndef NIC_SIGNAL_BIT 00081 #define NIC_SIGNAL_BIT 10 00082 #endif 00083 00084 #include <dev/dm9000e.h> 00085 00086 /* 00087 * SPI bus controller devices 00088 */ 00089 #include <dev/spibus_npl.h> 00090 00091 #ifndef DEV_SPIBUS0 00092 #define DEV_SPIBUS0 spiBusNpl 00093 #endif 00094 00095 /* 00096 * RTC chips 00097 */ 00098 #ifdef ETHERNUT3_0 00099 #include <dev/x12rtc.h> 00100 #else 00101 #include <dev/pcf8563.h> 00102 #endif 00103 00104 #ifndef RTC_CHIP0 00105 #ifdef ETHERNUT3_0 00106 #define RTC_CHIP0 rtcX12x6 00107 #else 00108 #define RTC_CHIP0 rtcPcf8563 00109 #endif 00110 #endif 00111 00112 /* 00113 * MultiMedia Card devices 00114 */ 00115 #include <dev/nplmmc.h> 00116 00117 #ifndef DEV_MMCARD0 00118 #define DEV_MMCARD0 devNplMmc0 00119 #endif