summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-aspeed/include/mach/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-aspeed/include/mach/platform.h')
-rw-r--r--arch/arm/mach-aspeed/include/mach/platform.h89
1 files changed, 89 insertions, 0 deletions
diff --git a/arch/arm/mach-aspeed/include/mach/platform.h b/arch/arm/mach-aspeed/include/mach/platform.h
new file mode 100644
index 0000000..afce81b
--- /dev/null
+++ b/arch/arm/mach-aspeed/include/mach/platform.h
@@ -0,0 +1,89 @@
+/*
+ * 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 <mach/ast1520_platform.h>
+#elif defined(CONFIG_ARCH_AST2000)
+#include <mach/ast2000_platform.h>
+#elif defined(CONFIG_ARCH_AST2100)
+#include <mach/ast2100_platform.h>
+#elif defined(CONFIG_ARCH_AST2200)
+#include <mach/ast2200_platform.h>
+#elif defined(CONFIG_ARCH_AST2300)
+#include <mach/ast2300_platform.h>
+#elif defined(CONFIG_ARCH_AST2400)
+#include <mach/ast2400_platform.h>
+#elif defined(CONFIG_ARCH_AST2500)
+#include <mach/ast2500_platform.h>
+#elif defined(CONFIG_ARCH_AST3200)
+#include <mach/ast3200_platform.h>
+#else
+#err "No define for platform.h"
+#endif
+/*********************************************************************************/
+/* Companion Base Address */
+#if defined(CONFIG_ARCH_AST1070)
+#include <mach/ast1070_platform.h>
+#endif
+/*********************************************************************************/
+#if defined(CONFIG_ARCH_AST2300) || defined(CONFIG_ARCH_AST2400)
+#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 */
+#else
+#define AST_CS0_DEF_BASE 0x10000000 /* CS0 */
+#define AST_CS1_DEF_BASE 0x12000000 /* CS1 */
+#define AST_CS2_DEF_BASE 0x14000000 /* CS2 */
+#endif
+
+/*
+ * Watchdog
+ */
+#define AST_WDT_VA_BASE (IO_ADDRESS(AST_WDT_BASE))
+
+/*
+ * Console UART
+ */
+#ifdef CONFIG_WEDGE
+#define AST_UART_BASE AST_UART3_BASE
+#elif defined(CONFIG_WEDGE100)
+#define AST_UART_BASE AST_UART3_BASE
+#elif defined(CONFIG_YOSEMITE)
+#define AST_UART_BASE AST_UART0_BASE
+#elif defined(CONFIG_FBPLATFORM1)
+#define AST_UART_BASE AST_UART0_BASE
+#elif defined(CONFIG_ASUSPLATFORM)
+#define AST_UART_BASE AST_UART1_BASE
+#else
+#define AST_UART_BASE AST_UART0_BASE
+#endif
+
+#endif
OpenPOWER on IntegriCloud