Add support W90P710 ARM SoC from Nuvoton
Subsystems (3)
PATCH 1/1 Add support W90P710 ARM SoC from Nuvoton
Add support W90P710 ARM SoC from Nuvoton
Add W90P1 board based on W90P710
--- MAKEALL | 1 + Makefile | 3 + board/w90p1/Makefile | 52 ++++ board/w90p1/config.mk | 27 ++ board/w90p1/ide.c | 108 ++++++++ board/w90p1/led.c | 63 +++++ board/w90p1/lowlevel_init.S | 130 +++++++++ board/w90p1/nand.c | 101 +++++++ board/w90p1/u-boot.lds | 69 +++++ board/w90p1/w90p1.c | 96 +++++++ cpu/arm720t/cpu.c | 46 +++- cpu/arm720t/interrupts.c | 88 ++++++- cpu/arm720t/serial.c | 108 +++++++- cpu/arm720t/start.S | 29 ++- drivers/net/Makefile | 1 + drivers/net/w90p710_eth.c | 451 +++++++++++++++++++++++++++++++ drivers/net/w90p710_eth.h | 274 +++++++++++++++++++ examples/Makefile | 6 +- include/asm-arm/arch-arm720t/W90P710.h | 239 ++++++++++++++++ include/asm-arm/arch-arm720t/hardware.h | 5 +- include/asm-arm/io.h | 4 + include/configs/W90P1.h | 237 ++++++++++++++++ include/netdev.h | 1 + 23 files changed, 2127 insertions(+), 12 deletions(-)
create mode 100644 board/w90p1/Makefile
create mode 100644 board/w90p1/config.mk
create mode 100644 board/w90p1/ide.c
create mode 100644 board/w90p1/led.c
create mode 100644 board/w90p1/lowlevel_init.S create mode 100644 board/w90p1/nand.c
create mode 100644 board/w90p1/u-boot.lds
create mode 100644 board/w90p1/w90p1.c
create mode 100644 drivers/net/w90p710_eth.c create mode 100644 drivers/net/w90p710_eth.h create mode 100644 include/asm-arm/arch-arm720t/W90P710.h create mode 100644 include/configs/W90P1.h
MAKEALL +1 -0
@@ -477,6 +477,7 @@ LIST_ARM7=" \ lpc2292sodimm \ modnet50 \ SMN42 \ + w90p1 \ " #########################################################################
Makefile +3 -0
@@ -2868,6 +2868,9 @@ lpc2292sodimm_config: unconfig SMN42_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm720t SMN42 siemens lpc2292 +W90P1_config : unconfig + @$(MKCONFIG) $(@:_config=) arm arm720t w90p1 + ######################################################################### ## XScale Systems #########################################################################
board/w90p1/Makefile new file +52 -0
52 lines not on this page · raw message
board/w90p1/config.mk new file +27 -0
@@ -0,0 +1,27 @@ +# +# Copyright (c) 2008 KSL Embedded (http://www.kslemb.com) +# Vovk Konstantin <[email protected]> +# +# (C) Copyright 2000-2004 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# 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 +# + +TEXT_BASE = 0x01FC0000
board/w90p1/ide.c new file +108 -0
108 lines not on this page · raw message
board/w90p1/led.c new file +63 -0
63 lines not on this page · raw message
board/w90p1/lowlevel_init.S new file +130 -0
130 lines not on this page · raw message
board/w90p1/nand.c new file +101 -0
101 lines not on this page · raw message
board/w90p1/u-boot.lds new file +69 -0
69 lines not on this page · raw message
board/w90p1/w90p1.c new file +96 -0
96 lines not on this page · raw message
cpu/arm720t/cpu.c +45 -1
58 lines not on this page · raw message
cpu/arm720t/interrupts.c +87 -1
112 lines not on this page · raw message
cpu/arm720t/serial.c +103 -5
120 lines not on this page · raw message
cpu/arm720t/start.S +27 -2
@@ -1,8 +1,8 @@ /* * armboot - Startup Code for ARM720 CPU-core * - * Copyright (c) 2001 Marius Gr?ger <[email protected]> - * Copyright (c) 2002 Alex Z?pke <[email protected]> + * Copyright (c) 2001 Marius Gr???ger <[email protected]> + * Copyright (c) 2002 Alex Z???pke <[email protected]> * * See file CREDITS for list of people who contributed to this * project.
@@ -224,6 +224,13 @@ PLLSTAT_ADR: .word PLLSTAT VPBDIV_ADR: .word VPBDIV MEMMAP_ADR: .word MEMMAP +#elif defined(CONFIG_W90P710) +#define CAHCON 0xFFF02004 /* W90P710 Cache control register */ +#define AIC_MDCR 0xFFF82124 /* W90P710 AIC Mask Disable Control Register */ +#define CAHCNF 0xFFF02000 /* W90P710 Cache configuration register */ +#define IDREG 0xFFF00000 /* W90P710 CHIP ID */ +#define CKSKEW 0xFFF01F00 /* Clock Skew Control register */ + #endif cpu_init_crit:
@@ -368,6 +375,21 @@ lock_loop: ldr r0, VPBDIV_ADR mov r1, #0x01 /* VPB clock is same as process clock */ str r1, [r0] + +#elif defined(CONFIG_W90P710) + /* Disable Interrupt*/ + LDR r0, =AIC_MDCR + LDR r1, =0x7FFFE + STR r1, [r0] + /*Disable FIQ and IRQ*/ + MRS r0, CPSR + ORR r0, r0, #0xC0 + MSR CPSR_c, r0 + /* Disable I-Cache and D-cache entirely */ + LDR r1,=CAHCNF + MOV r0, #0x0 + STR r0, [r1] + #else #error No cpu_init_crit() defined for current CPU type #endif
@@ -606,6 +628,9 @@ reset_cpu: .globl reset_cpu reset_cpu: mov pc, r0 +#elif defined(CONFIG_W90P710) +/* Nothing done here as reseting the CPU is board specific, depending on external peripherals see lowlevel_init.c*/ + #else #error No reset_cpu() defined for current CPU type #endif
drivers/net/Makefile +1 -0
@@ -69,6 +69,7 @@ COBJS-$(CONFIG_VSC7385_ENET) += vsc7385.o COBJS-$(CONFIG_XILINX_EMAC) += xilinx_emac.o COBJS-$(CONFIG_XILINX_EMACLITE) += xilinx_emaclite.o COBJS-$(CONFIG_SH_ETHER) += sh_eth.o +COBJS-$(CONFIG_DRIVER_W90P710_ETH) += w90p710_eth.o COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c)
drivers/net/w90p710_eth.c new file +451 -0
451 lines not on this page · raw message
drivers/net/w90p710_eth.h new file +274 -0
274 lines not on this page · raw message
examples/Makefile +5 -1
@@ -33,7 +33,11 @@ ifeq ($(ARCH),arm) ifeq ($(BOARD),omap2420h4) LOAD_ADDR = 0x80300000 else -LOAD_ADDR = 0xc100000 + ifeq ($(BOARD),w90p1) + LOAD_ADDR = 0x00001000 + else + LOAD_ADDR = 0xc100000 +endif endif endif
include/asm-arm/arch-arm720t/W90P710.h new file +239 -0
239 lines not on this page · raw message
include/asm-arm/arch-arm720t/hardware.h +3 -2
@@ -23,8 +23,9 @@* Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ - -#if defined(CONFIG_S3C4510B ) +#if defined(CONFIG_W90P710 ) +#include <asm-arm/arch-arm720t/W90P710.h> +#elif defined(CONFIG_S3C4510B )#include <asm-arm/arch-arm720t/s3c4510b.h> #elif defined(CONFIG_NETARM )#include <asm-arm/arch-arm720t/netarm_registers.h>
include/asm-arm/io.h +4 -0
@@ -46,6 +46,10 @@ static inline void sync(void)static inline void *map_physmem (phys_addr_t paddr,unsigned long len,unsigned long flags) { +#ifdef CONFIG_W90P710 +if (flags==MAP_NOCACHE ) + paddr |=0x80000000 ; +#endif return (void *)paddr; }
include/configs/W90P1.h new file +237 -0
237 lines not on this page · raw message
include/netdev.h +1 -0
@@ -70,6 +70,7 @@ int skge_initialize(bd_t *bis);int tsi108_eth_initialize (bd_t *bis);int uec_initialize (int index);int uli526x_initialize (bd_t *bis); +int W90P710_EMC_initialize (bd_t *bis);/* Boards with PCI network controllers can call this from their board_eth_init() * function to initialize whatever's on board.
Signature · 1 line
1.5.4.3
PATCH 1/1 Add support W90P710 ARM SoC from Nuvoton
Hi Konstantin,
Quoted 21 lines · Konstantin Vovk
Add support W90P710 ARM SoC from Nuvoton
Add W90P1 board based on W90P710Signed-off-by Konstantin Vovk <[email protected]>--- MAKEALL | 1 + Makefile | 3 + board/w90p1/Makefile | 52 ++++ board/w90p1/config.mk | 27 ++ board/w90p1/ide.c | 108 ++++++++ board/w90p1/led.c | 63 +++++ board/w90p1/lowlevel_init.S | 130 +++++++++ board/w90p1/nand.c | 101 +++++++ board/w90p1/u-boot.lds | 69 +++++ board/w90p1/w90p1.c | 96 +++++++ cpu/arm720t/cpu.c | 46 +++- cpu/arm720t/interrupts.c | 88 ++++++- cpu/arm720t/serial.c | 108 +++++++- cpu/arm720t/start.S | 29 ++- drivers/net/Makefile | 1 + drivers/net/w90p710_eth.c | 451
Quoted 8 lines
+++++++++++++++++++++++++++++++
drivers/net/w90p710_eth.h | 274 +++++++++++++++++++ examples/Makefile | 6 +- include/asm-arm/arch-arm720t/W90P710.h | 239 ++++++++++++++++ include/asm-arm/arch-arm720t/hardware.h | 5 +- include/asm-arm/io.h | 4 + include/configs/W90P1.h | 237 ++++++++++++++++ include/netdev.h | 1 +
Please break this patch up into logical orthogonal parts. This is too big to expect anybody to wade through.
thanks,
Ben
PATCH 1/1 Add support W90P710 ARM SoC from Nuvoton
Hi Konstantin,
Quoted 31 lines
Quoted 21 lines
Add support W90P710 ARM SoC from Nuvoton
Add W90P1 board based on W90P710Signed-off-by Konstantin Vovk <[email protected]>--- MAKEALL | 1 + Makefile | 3 + board/w90p1/Makefile | 52 ++++ board/w90p1/config.mk | 27 ++ board/w90p1/ide.c | 108 ++++++++ board/w90p1/led.c | 63 +++++ board/w90p1/lowlevel_init.S | 130 +++++++++ board/w90p1/nand.c | 101 +++++++ board/w90p1/u-boot.lds | 69 +++++ board/w90p1/w90p1.c | 96 +++++++ cpu/arm720t/cpu.c | 46 +++- cpu/arm720t/interrupts.c | 88 ++++++- cpu/arm720t/serial.c | 108 +++++++- cpu/arm720t/start.S | 29 ++- drivers/net/Makefile | 1 + drivers/net/w90p710_eth.c | 451Quoted 8 lines
+++++++++++++++++++++++++++++++
drivers/net/w90p710_eth.h | 274 +++++++++++++++++++ examples/Makefile | 6 +- include/asm-arm/arch-arm720t/W90P710.h | 239 ++++++++++++++++ include/asm-arm/arch-arm720t/hardware.h | 5 +- include/asm-arm/io.h | 4 + include/configs/W90P1.h | 237 ++++++++++++++++ include/netdev.h | 1 +
Quoted 5 lines
Please break this patch up into logical orthogonal parts. This is too big to expect anybody to wade through.
thanks,
Ben
It would be nice if you added yourself to the MAINTAINERS file as well.
Best,
Peter
PATCH 1/1 Add support W90P710 ARM SoC from Nuvoton
In reply to Ben WarrenQuoted 35 lines · Ben Warren
Hi Konstantin,
Quoted 21 lines · Konstantin Vovk
Add support W90P710 ARM SoC from Nuvoton
Add W90P1 board based on W90P710Signed-off-by Konstantin Vovk <[email protected]>--- MAKEALL | 1 + Makefile | 3 + board/w90p1/Makefile | 52 ++++ board/w90p1/config.mk | 27 ++ board/w90p1/ide.c | 108 ++++++++ board/w90p1/led.c | 63 +++++ board/w90p1/lowlevel_init.S | 130 +++++++++ board/w90p1/nand.c | 101 +++++++ board/w90p1/u-boot.lds | 69 +++++ board/w90p1/w90p1.c | 96 +++++++ cpu/arm720t/cpu.c | 46 +++- cpu/arm720t/interrupts.c | 88 ++++++- cpu/arm720t/serial.c | 108 +++++++- cpu/arm720t/start.S | 29 ++- drivers/net/Makefile | 1 + drivers/net/w90p710_eth.c | 451Quoted 8 lines
+++++++++++++++++++++++++++++++
drivers/net/w90p710_eth.h | 274 +++++++++++++++++++ examples/Makefile | 6 +- include/asm-arm/arch-arm720t/W90P710.h | 239 ++++++++++++++++ include/asm-arm/arch-arm720t/hardware.h | 5 +- include/asm-arm/io.h | 4 + include/configs/W90P1.h | 237 ++++++++++++++++ include/netdev.h | 1 +
Quoted 2 lines
Please break this patch up into logical orthogonal parts. This is too big to expect anybody to wade through.
ping
will send a new version soon?
btw please check the conding style of your patch
you have too long line 80 chars max
a lot's of whitespace when tab will be needed
please add space between |, >>, >, + etc...
Best Regards,
J.