/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _AST_PLATFORM_H_ #define _AST_PLATFORM_H_ 1 #define AST_PLL_25MHZ 25000000 #define AST_PLL_24MHZ 24000000 #define AST_PLL_12MHZ 12000000 #define AST_IO_START 0x1E600000 #define AST_IO_SIZE 0x00200000 /*********************************************************************************/ #if defined(CONFIG_ARCH_AST1520) #include #elif defined(CONFIG_ARCH_AST2000) #include #elif defined(CONFIG_ARCH_AST2100) #include #elif defined(CONFIG_ARCH_AST2200) #include #elif defined(CONFIG_ARCH_AST2300) #include #elif defined(CONFIG_ARCH_AST2400) #include #elif defined(CONFIG_ARCH_AST2500) #include #elif defined(CONFIG_ARCH_AST3200) #include #else #err "No define for platform.h" #endif /*********************************************************************************/ /* Companion Base Address */ #if defined(CONFIG_ARCH_AST1070) #include #endif /*********************************************************************************/ #define AST_CS0_DEF_BASE 0x20000000 /* CS0 */ #define AST_CS1_DEF_BASE 0x24000000 /* CS1 */ #define AST_CS2_DEF_BASE 0x26000000 /* CS2 */ #define AST_CS3_DEF_BASE 0x28000000 /* CS3 */ #define AST_CS4_DEF_BASE 0x2a000000 /* CS4 */ #define AST_NOR_SIZE 0x01000000 /* AST2300 NOR size 16MB */ /* * Watchdog */ #define AST_WDT_VA_BASE (IO_ADDRESS(AST_WDT_BASE)) #endif