Skip to contentSkip to conversation

ARM: Add all nuc960 platform files to mach-w90x900

PATCH New Wan ZongShun 1 participant 1 message Aug 16, 2009

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

PATCH 2/2 ARM: Add all nuc960 platform files to mach-w90x900

Dear Russell,

Add new nuc960 platform files to mach-w90x900.

---
 arch/arm/mach-w90x900/Kconfig          |   15 +++++++
 arch/arm/mach-w90x900/Makefile         |    2 +
 arch/arm/mach-w90x900/mach-nuc960evb.c |   61 +++++++++++++++++++++++++++
 arch/arm/mach-w90x900/nuc960.c         |   70 ++++++++++++++++++++++++++++++++
 arch/arm/mach-w90x900/nuc960.h         |   28 +++++++++++++
 5 files changed, 176 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 c70407c..8fd4624 100644
@@ -10,6 +10,11 @@ config CPU_NUC950
 	help
 	  Support for NUCP950 of Nuvoton W90X900 CPUs.
 
+config CPU_NUC960
+	bool
+	help
+	  Support for NUCP960 of Nuvoton W90X900 CPUs.
+
 menu "W90P910 Machines"
 
 config MACH_W90P910EVB
@@ -30,4 +35,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 8cdbb91..093c5da 100644
@@ -10,8 +10,10 @@ obj-y				+= clksel.o
 
 obj-$(CONFIG_CPU_W90P910)	+= w90p910.o mfp-w90p910.o
 obj-$(CONFIG_CPU_NUC950)	+= nuc950.o
+obj-$(CONFIG_CPU_NUC960)	+= nuc960.o
 
 # machine support
 
 obj-$(CONFIG_MACH_W90P910EVB)	+= mach-w90p910evb.o
 obj-$(CONFIG_MACH_W90P950EVB)	+= mach-nuc950evb.o
+obj-$(CONFIG_MACH_W90N960EVB)	+= mach-nuc960evb.o
arch/arm/mach-w90x900/mach-nuc960evb.c new file +61 -0

61 lines not on this page · raw message

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

70 lines not on this page · raw message

arch/arm/mach-w90x900/nuc960.h new file +28 -0
new file mode 100644
index 0000000..c81228c
@@ -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 w90x900_init_irq(void);
+extern struct sys_timer w90x900_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