Skip to contentSkip to conversation

ARM: Add nuc960 paltform files to w90x900 platform

PATCH In review Wan ZongShun 2 participants 2 messages Aug 18, 2009 – Sep 1, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 3/3 ARM: Add nuc960 paltform files to w90x900 platform

Dear Russell,

Add nuc960 paltform files to w90x900 platform.

---
 arch/arm/mach-w90x900/Kconfig          |   15 +++++++++
 arch/arm/mach-w90x900/Makefile         |    2 +
 arch/arm/mach-w90x900/mach-nuc960evb.c |   44 ++++++++++++++++++++++++++
 arch/arm/mach-w90x900/nuc960.c         |   54 ++++++++++++++++++++++++++++++++
 arch/arm/mach-w90x900/nuc960.h         |   28 ++++++++++++++++
 5 files changed, 143 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-w90x900/mach-nuc960evb.c
 create mode 100644 arch/arm/mach-w90x900/nuc960.c
 create mode 100644 arch/arm/mach-w90x900/nuc960.h
arch/arm/mach-w90x900/Kconfig +15 -0
index 163b801..69bab32 100644
@@ -10,6 +10,11 @@ config CPU_NUC950
 	help
 	  Support for NUCP950 of Nuvoton NUC900 CPUs.
 
+config CPU_NUC960
+	bool
+	help
+	  Support for NUCP960 of Nuvoton NUC900 CPUs.
+
 menu "W90P910 Machines"
 
 config MACH_W90P910EVB
@@ -31,4 +36,14 @@ config MACH_W90P950EVB
 
 endmenu
 
+menu "NUC960 Machines"
+
+config MACH_W90N960EVB
+	bool "Nuvoton NUC960 Evaluation Board"
+	select CPU_NUC960
+	help
+	   Say Y here if you are using the Nuvoton NUC960EVB
+
+endmenu
+
 endif
arch/arm/mach-w90x900/Makefile +2 -0
index a4622b5..828c032 100644
@@ -10,8 +10,10 @@ obj-y				+= clksel.o dev.o cpu.o
 
 obj-$(CONFIG_CPU_W90P910)	+= nuc910.o
 obj-$(CONFIG_CPU_NUC950)	+= nuc950.o
+obj-$(CONFIG_CPU_NUC960)	+= nuc960.o
 
 # machine support
 
 obj-$(CONFIG_MACH_W90P910EVB)	+= mach-nuc910evb.o
 obj-$(CONFIG_MACH_W90P950EVB)	+= mach-nuc950evb.o
+obj-$(CONFIG_MACH_W90N960EVB)	+= mach-nuc960evb.o
arch/arm/mach-w90x900/mach-nuc960evb.c new file +44 -0

44 lines not on this page · raw message

arch/arm/mach-w90x900/nuc960.c new file +54 -0

54 lines not on this page · raw message

arch/arm/mach-w90x900/nuc960.h new file +28 -0
new file mode 100644
index 0000000..f0c07cb
@@ -0,0 +1,28 @@
+/*
+ * arch/arm/mach-w90x900/nuc960.h
+ *
+ * Copyright (c) 2008 Nuvoton corporation
+ *
+ * Header file for NUC900 CPU support
+ *
+ * Wan ZongShun <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ */
+
+struct map_desc;
+struct sys_timer;
+
+/* core initialisation functions */
+
+extern void nuc900_init_irq(void);
+extern struct sys_timer nuc900_timer;
+
+/* extern file from nuc960.c */
+
+extern void nuc960_board_init(void);
+extern void nuc960_init_clocks(void);
+extern void nuc960_map_io(void);
Signature · 1 line
1.5.6.3