cpu_misc_init support for ARM architectures
Subsystems (5)
PATCH 1/1 cpu_misc_init support for ARM architectures
This patch is required for Kirkwood support
may be used by other ARM architectures
--- include/asm-arm/u-boot-arm.h | 1 + lib_arm/board.c | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-)
include/asm-arm/u-boot-arm.h +1 -0
@@ -42,6 +42,7 @@ int cleanup_before_linux(void);/* cpu/.../arch/cpu.c */ int arch_cpu_init (void ); +int arch_misc_init (void );/* board/.../... */ int board_init (void );
lib_arm/board.c +4 -0
@@ -399,6 +399,10 @@ void start_armboot (void)console_init_r ();/* fully init console as a device */ +#if defined(CONFIG_ARCH_MISC_INIT ) +/* miscellaneous arch dependent initialisations */ +arch_misc_init (); +#endif #if defined(CONFIG_MISC_INIT_R )/* miscellaneous platform dependent initialisations */ misc_init_r ();
Signature · 1 line
1.5.3.3
PATCH 1/1 cpu_misc_init support for ARM architectures
Quoted 1 line · On Friday 29 May 2009 15:43:30 Prafulla Wadaskar wrote:
+int
arch_misc_init(void);
your subject line says cpu_xxx but the source says arch_xxx
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090529/1b9e4eef/attachment.pgp
PATCH 1/1 cpu_misc_init support for ARM architectures
Quoted 11 lines
-----Original Message-----
From: Mike Frysinger [mailto:vapier at gentoo.org]
Sent: Friday, May 29, 2009 9:58 PM
To: u-boot at lists.denx.de
Cc: Prafulla Wadaskar; Manas Saksena; Ronen Shitrit; Nicolas Pitre; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH]cpu_misc_initsupport for ARM architectures
Quoted 4 lines
Quoted 1 line · On Friday 29 May 2009 15:43:30 Prafulla Wadaskar wrote:
+int
arch_misc_init(void);your subject line says
cpu_xxxbut the source saysarch_xxx-mike
Hi Mike,
Thanks....
I will correct this
regards..
Prafulla . .
Quoted 1 line
PATCH v2 1/1 arch_misc_init support for ARM architectures
This patch is required for Kirkwood support
may be used by other ARM architectures
---
Change log:
v2: Name of the patch corrected to arch_misc_init from cpu_misc_init
include/asm-arm/u-boot-arm.h | 1 + lib_arm/board.c | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-)
include/asm-arm/u-boot-arm.h +1 -0
@@ -42,6 +42,7 @@ int cleanup_before_linux(void);/* cpu/.../arch/cpu.c */ int arch_cpu_init (void ); +int arch_misc_init (void );/* board/.../... */ int board_init (void );
lib_arm/board.c +4 -0
@@ -399,6 +399,10 @@ void start_armboot (void)console_init_r ();/* fully init console as a device */ +#if defined(CONFIG_ARCH_MISC_INIT ) +/* miscellaneous arch dependent initialisations */ +arch_misc_init (); +#endif #if defined(CONFIG_MISC_INIT_R )/* miscellaneous platform dependent initialisations */ misc_init_r ();
Signature · 1 line
1.5.3.3
Jean-Christophe PLAGNIOL-VILLARD
AppliedPATCH v2 1/1 arch_misc_init support for ARM architectures
Quoted 5 lines · Prafulla Wadaskar
This patch is required for Kirkwood support
may be used by other ARM architecturesSigned-off-by Prafulla Wadaskar <[email protected]>---
applied to arm/next
Best Regards,
J.
PATCH 1/1 arm: generic cache.h for ARM architectures
In reply to Prafulla WadaskarThis patch is required for Kirkwood SoC support
may be used by other ARM architectures
--- include/asm-arm/cache.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) create mode 100644 include/asm-arm/cache.h
include/asm-arm/cache.h new file +41 -0
@@ -0,0 +1,41 @@ +/* +* (C) Copyright 2009 +* Marvell Semiconductor <www.marvell.com> +* Written-by: Prafulla Wadaskar <[email protected]> +* +* 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., 51 Franklin Street, Fifth Floor, Boston, +* MA 02110-1301 USA +*/ + +#ifndef _ASM_CACHE_H +#define _ASM_CACHE_H + +#include <asm/system.h> + +/* +* Invalidate L2 Cache using co-proc instruction +*/ +static inline void invalidate_l2_cache (void ) +{ +unsigned int val=0 ; + + asmvolatile ("mcr p15, 1, %0, c15, c11, 0 @ invl l2 cache" + : :"r" (val) :"cc" ); +isb (); +} +#endif /* _ASM_CACHE_H */
Signature · 1 line
1.5.3.3
PATCH 1/1 arm: Kirkwood: Basic SOCs support
Kirkwood family controllers are highly integrated SOCs based on Feroceon-88FR131/Sheeva-88SV131/arm926ejs cpu core.
SOC versions supported:-
1) 88F6281-A0 define CONFIG_KW88F6281_A0
2) 88F6192-A0 define CONFIG_KW88F6192_A0
Other supported features:-
1) get_random_hex() fucntion
2) PCI Express port initialization
3) NS16550 driver support
Contributors:
Yotam Admon <[email protected]>
Michael Blostein <michaelbl at marvell.com
--- cpu/arm926ejs/kirkwood/Makefile | 49 +++++ cpu/arm926ejs/kirkwood/cpu.c | 324 +++++++++++++++++++++++++++++ cpu/arm926ejs/kirkwood/dram.c | 58 +++++ cpu/arm926ejs/kirkwood/mpp.c | 80 +++++++ cpu/arm926ejs/kirkwood/timer.c | 168 +++++++++++++++ drivers/serial/serial.c | 3 + include/asm-arm/arch-kirkwood/cpu.h | 148 +++++++++++++ include/asm-arm/arch-kirkwood/kirkwood.h | 69 ++++++ include/asm-arm/arch-kirkwood/kw88f6192.h | 37 ++++ include/asm-arm/arch-kirkwood/kw88f6281.h | 37 ++++ include/asm-arm/arch-kirkwood/mpp.h | 303 +++++++++++++++++++++++++++ 11 files changed, 1276 insertions(+), 0 deletions(-) create mode 100644 cpu/arm926ejs/kirkwood/Makefile create mode 100644 cpu/arm926ejs/kirkwood/cpu.c create mode 100644 cpu/arm926ejs/kirkwood/dram.c create mode 100644 cpu/arm926ejs/kirkwood/mpp.c create mode 100644 cpu/arm926ejs/kirkwood/timer.c create mode 100644 include/asm-arm/arch-kirkwood/cpu.h create mode 100644 include/asm-arm/arch-kirkwood/kirkwood.h create mode 100644 include/asm-arm/arch-kirkwood/kw88f6192.h create mode 100644 include/asm-arm/arch-kirkwood/kw88f6281.h create mode 100644 include/asm-arm/arch-kirkwood/mpp.h
cpu/arm926ejs/kirkwood/Makefile new file +49 -0
@@ -0,0 +1,49 @@ +# +# (C) Copyright 2009 +# Marvell Semiconductor <www.marvell.com> +# Written-by: Prafulla Wadaskar <[email protected]> +# +# 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., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301 USA +# + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(SOC).a + +COBJS-y = dram.o +COBJS-y += cpu.o +COBJS-y += mpp.o +COBJS-y += timer.o + +SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) + +all: $(obj).depend $(LIB) + +$(LIB): $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +#########################################################################
cpu/arm926ejs/kirkwood/cpu.c new file +324 -0
324 lines not on this page · raw message
cpu/arm926ejs/kirkwood/dram.c new file +58 -0
58 lines not on this page · raw message
cpu/arm926ejs/kirkwood/mpp.c new file +80 -0
80 lines not on this page · raw message
cpu/arm926ejs/kirkwood/timer.c new file +168 -0
168 lines not on this page · raw message
drivers/serial/serial.c +3 -0
@@ -27,6 +27,9 @@#ifdef CONFIG_NS87308 #include <ns87308.h> #endif +#ifdef CONFIG_KIRKWOOD +#include <asm/arch/kirkwood.h> +#endif #if defined (CONFIG_SERIAL_MULTI )#include <serial.h>
include/asm-arm/arch-kirkwood/cpu.h new file +148 -0
148 lines not on this page · raw message
include/asm-arm/arch-kirkwood/kirkwood.h new file +69 -0
69 lines not on this page · raw message
include/asm-arm/arch-kirkwood/kw88f6192.h new file +37 -0
@@ -0,0 +1,37 @@ +/* +* (C) Copyright 2009 +* Marvell Semiconductor <www.marvell.com> +* Written-by: Prafulla Wadaskar <[email protected]> +* +* Header file for Feroceon CPU core 88FR131 Based KW88F6192 SOC. +* +* 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., 51 Franklin Street, Fifth Floor, Boston, +* MA 02110-1301 USA +*/ + +#ifndef _CONFIG_KW88F6192_H +#define _CONFIG_KW88F6192_H + +/* SOC specific definations */ +#define KW88F6192_REGS_PHYS_BASE 0xf1000000 +#define KW_REGS_PHY_BASE KW88F6192_REGS_PHYS_BASE + +/* TCLK Core Clock defination */ +#define CONFIG_SYS_TCLK 166000000/* 166MHz */ + +#endif /* _CONFIG_KW88F6192_H */
include/asm-arm/arch-kirkwood/kw88f6281.h new file +37 -0
@@ -0,0 +1,37 @@ +/* +* (C) Copyright 2009 +* Marvell Semiconductor <www.marvell.com> +* Written-by: Prafulla Wadaskar <[email protected]> +* +* Header file for Feroceon CPU core 88FR131 Based KW88F6281 SOC. +* +* 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., 51 Franklin Street, Fifth Floor, Boston, +* MA 02110-1301 USA +*/ + +#ifndef _ASM_ARCH_KW88F6281_H +#define _ASM_ARCH_KW88F6281_H + +/* SOC specific definations */ +#define KW88F6281_REGS_PHYS_BASE 0xf1000000 +#define KW_REGS_PHY_BASE KW88F6281_REGS_PHYS_BASE + +/* TCLK Core Clock defination*/ +#define CONFIG_SYS_TCLK 200000000/* 200MHz */ + +#endif /* _ASM_ARCH_KW88F6281_H */
include/asm-arm/arch-kirkwood/mpp.h new file +303 -0
303 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 1/1 spi: Add Marvell Kirkwood SPI driver
This patch adds a SPI driver for the Marvell Kirkwood SoC's.
--- drivers/spi/Makefile | 1 + drivers/spi/kirkwood_spi.c | 185 +++++++++++++++++++++++++++++++++++ include/asm-arm/arch-kirkwood/spi.h | 56 +++++++++++ 3 files changed, 242 insertions(+), 0 deletions(-) create mode 100644 drivers/spi/kirkwood_spi.c create mode 100644 include/asm-arm/arch-kirkwood/spi.h
drivers/spi/Makefile +1 -0
@@ -28,6 +28,7 @@ LIB := $(obj)libspi.a COBJS-$(CONFIG_ATMEL_DATAFLASH_SPI) += atmel_dataflash_spi.o COBJS-$(CONFIG_ATMEL_SPI) += atmel_spi.o COBJS-$(CONFIG_BFIN_SPI) += bfin_spi.o +COBJS-$(CONFIG_KIRKWOOD_SPI) += kirkwood_spi.o COBJS-$(CONFIG_MPC8XXX_SPI) += mpc8xxx_spi.o COBJS-$(CONFIG_MXC_SPI) += mxc_spi.o COBJS-$(CONFIG_SOFT_SPI) += soft_spi.o
drivers/spi/kirkwood_spi.c new file +185 -0
185 lines not on this page · raw message
include/asm-arm/arch-kirkwood/spi.h new file +56 -0
56 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 1/1 nand: Add Marvell Kirkwood NAND driver
This patch adds a NAND driver for the Marvell Kirkwood SoC's.
--- drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/kirkwood_nand.c | 81 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/nand/kirkwood_nand.c
drivers/mtd/nand/Makefile +1 -0
@@ -40,6 +40,7 @@ COBJS-$(CONFIG_DRIVER_NAND_BFIN) += bfin_nand.o COBJS-$(CONFIG_NAND_DAVINCI) += davinci_nand.o COBJS-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o COBJS-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o +COBJS-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o COBJS-$(CONFIG_NAND_NOMADIK) += nomadik.o COBJS-$(CONFIG_NAND_S3C2410) += s3c2410_nand.c COBJS-$(CONFIG_NAND_S3C64XX) += s3c64xx.o
drivers/mtd/nand/kirkwood_nand.c new file +81 -0
81 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 1/1 nand: Add Marvell Kirkwood NAND driver
Quoted 4 lines · Prafulla Wadaskar
This patch adds a NAND driver for the Marvell Kirkwood SoC's.
Acked-by Stefan Roese <[email protected]>Signed-off-by Prafulla Wadaskar <[email protected]>
ACK, except for a typo:
drivers/mtd/nand/kirkwood_nand.c line 33
Quoted 5 lines
drivers/mtd/nand/kirkwood_nand.c new file +5
-0+/* NAND Flash Soc registers */ +struct kwnandf_registers { +u32 rd_params;/* 0x10418 */ +u32 wr_param;/* 0x1041c */ +u8 pag[0x10470 -0x1041c -4 ];
s/pag/pad/, presumably. Also s/-4/- 4/.
-Scott
PATCH v2 1/1 nand: Add Marvell Kirkwood NAND driver
This patch adds a NAND driver for the Marvell Kirkwood SoC's.
---
Change log:
v2: Typos corrected
drivers/mtd/nand/Makefile | 1 + drivers/mtd/nand/kirkwood_nand.c | 81 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/nand/kirkwood_nand.c
drivers/mtd/nand/Makefile +1 -0
@@ -40,6 +40,7 @@ COBJS-$(CONFIG_DRIVER_NAND_BFIN) += bfin_nand.o COBJS-$(CONFIG_NAND_DAVINCI) += davinci_nand.o COBJS-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o COBJS-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o +COBJS-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o COBJS-$(CONFIG_NAND_NOMADIK) += nomadik.o COBJS-$(CONFIG_NAND_S3C2410) += s3c2410_nand.c COBJS-$(CONFIG_NAND_S3C64XX) += s3c64xx.o
drivers/mtd/nand/kirkwood_nand.c new file +81 -0
81 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 1/1 nand: Add Marvell Kirkwood NAND driver
In reply to Scott WoodHi Scott
I have already posted v2 patch for this change which has only cosmetic change suggested by you. Ref : http://lists.denx.de/pipermail/u-boot/2009-May/053485.html
Since Kirkwood Basic Soc support is pulled in, and if there are no issues pending with this driver. May I request you to pull this on nand/next? Followed by pull request to Wolfgang.
Regards..
Prafulla . .
Quoted 26 lines
-----Original Message-----
From: Scott Wood [mailto:scottwood at freescale.com]
Sent: Saturday, May 30, 2009 1:10 AM
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Manas Saksena; Ronen Shitrit; Nicolas Pitre; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH] nand: Add Marvell Kirkwood NAND driverQuoted 4 lines · Prafulla Wadaskar
This patch adds a NAND driver for the Marvell Kirkwood SoC's.
Acked-by Stefan Roese <[email protected]>Signed-off-by Prafulla Wadaskar <[email protected]>ACK, except for a typo:
drivers/mtd/nand/kirkwood_nand.c line 33
Quoted 5 lines
drivers/mtd/nand/kirkwood_nand.c new file +5
-0+/* NAND Flash Soc registers */ +struct kwnandf_registers { +u32 rd_params;/* 0x10418 */ +u32 wr_param;/* 0x1041c */ +u8 pag[0x10470 -0x1041c -4 ];s/pag/pad/, presumably. Also s/-4/- 4/.
-Scott
PATCH 1/1 net: Add Marvell Kirkwood gigabit ethernet driver
In reply to Prafulla WadaskarThis patch adds a egiga driver for the Marvell Kirkwood SoC's.
Contributors:
Yotam Admon <[email protected]>
Michael Blostein <michaelbl at marvell.com
--- drivers/net/Makefile | 1 + drivers/net/kirkwood_egiga.c | 674 ++++++++++++++++++++++++++++++++++++++++++ drivers/net/kirkwood_egiga.h | 561 +++++++++++++++++++++++++++++++++++ include/netdev.h | 1 + 4 files changed, 1237 insertions(+), 0 deletions(-) create mode 100644 drivers/net/kirkwood_egiga.c create mode 100644 drivers/net/kirkwood_egiga.h
drivers/net/Makefile +1 -0
@@ -40,6 +40,7 @@ COBJS-$(CONFIG_ENC28J60) += enc28j60.o COBJS-$(CONFIG_FSLDMAFEC) += fsl_mcdmafec.o mcfmii.o COBJS-$(CONFIG_GRETH) += greth.o COBJS-$(CONFIG_INCA_IP_SWITCH) += inca-ip_sw.o +COBJS-$(CONFIG_KIRKWOOD_EGIGA) += kirkwood_egiga.o COBJS-$(CONFIG_DRIVER_KS8695ETH) += ks8695eth.o COBJS-$(CONFIG_DRIVER_LAN91C96) += lan91c96.o COBJS-$(CONFIG_MACB) += macb.o
drivers/net/kirkwood_egiga.c new file +674 -0
674 lines not on this page · raw message
drivers/net/kirkwood_egiga.h new file +561 -0
561 lines not on this page · raw message
include/netdev.h +1 -0
@@ -52,6 +52,7 @@ int fec_initialize (bd_t *bis);int greth_initialize (bd_t *bis);void gt6426x_eth_initialize (bd_t *bis);int inca_switch_initialize (bd_t *bis); +int kirkwood_egiga_initialize (bd_t *bis);int macb_eth_initialize (int id,void *regs,unsigned int phy_addr);int mcdmafec_initialize (bd_t *bis);int mcffec_initialize (bd_t *bis);
Signature · 1 line
1.5.3.3
PATCH 1/1 Marvell MV88F6281GTW_GE Board support
This is Marvell's 88F6281_A0 based custom board developed for wireless access point product
This patch is tested for-
1. Boot from DRAM/SPI flash/NFS
2. File transfer using tftp and loadb
3. SPI flash read/write/erase
4. Booting Linux kernel and RFS from SPI flash
--- MAKEALL | 1 + Makefile | 3 + board/Marvell/mv88f6281gtw_ge/Makefile | 51 ++++++ board/Marvell/mv88f6281gtw_ge/config.mk | 25 +++ board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.c | 141 +++++++++++++++++ board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.h | 36 +++++ include/configs/mv88f6281gtw_ge.h | 188 +++++++++++++++++++++++ 7 files changed, 445 insertions(+), 0 deletions(-) create mode 100644 board/Marvell/mv88f6281gtw_ge/Makefile create mode 100644 board/Marvell/mv88f6281gtw_ge/config.mk create mode 100644 board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.c create mode 100644 board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.h create mode 100644 include/configs/mv88f6281gtw_ge.h
MAKEALL +1 -0
@@ -505,6 +505,7 @@ LIST_ARM9=" \ cp946es \ cp966 \ lpd7a400 \ + mv88f6281gtw_ge \ mx1ads \ mx1fs2 \ netstar \
Makefile +3 -0
@@ -2808,6 +2808,9 @@ lpd7a400_config \ lpd7a404_config: unconfig @$(MKCONFIG) $(@:_config=) arm lh7a40x lpd7a40x +mv88f6281gtw_ge_config: unconfig + @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood + mx1ads_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm920t mx1ads NULL imx
board/Marvell/mv88f6281gtw_ge/Makefile new file +51 -0
51 lines not on this page · raw message
board/Marvell/mv88f6281gtw_ge/config.mk new file +25 -0
@@ -0,0 +1,25 @@ +# +# (C) Copyright 2009 +# Marvell Semiconductor <www.marvell.com> +# Written-by: Prafulla Wadaskar <[email protected]> +# +# 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., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301 USA +# + +TEXT_BASE = 0x00600000
board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.c new file +141 -0
141 lines not on this page · raw message
board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.h new file +36 -0
@@ -0,0 +1,36 @@ +/* +* (C) Copyright 2009 +* Marvell Semiconductor <www.marvell.com> +* Written-by: Prafulla Wadaskar <[email protected]> +* +* 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., 51 Franklin Street, Fifth Floor, Boston, +* MA 02110-1301 USA +*/ + +#ifndef __MV88F6281GTW_GE_H +#define __MV88F6281GTW_GE_H + +#define MV88F6281GTW_GE_OE_LOW (~((1 << 7) | (1 << 12) \ + |(1 << 20) | (1 << 21)))/*enable GLED,RLED */ +#define MV88F6281GTW_GE_OE_HIGH (~((1 << 4)|(1 << 6)|(1 << 7)|(1 << 12) \ + |(1 << 13)|(1 << 16)|(1 << 17))) +#define MV88F6281GTW_GE_OE_VAL_LOW (1 << 20)/*make GLED on */ +#define MV88F6281GTW_GE_OE_VAL_HIGH ((1 << 6)|(1 << 13)|(1 << 16)|(1 << 17)) + + +#endif /* __MV88F6281GTW_GE_H */
include/configs/mv88f6281gtw_ge.h new file +188 -0
188 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 1/1 Marvell Sheevaplug Board support
Reference:
http://plugcomputer.org/
http://openplug.org/plugwiki/index.php/Das_U-boot_plug_support
This patch is tested for-
1. Boot from DRAM/NAND flash
2. File transfer using tftp
3. NAND flash read/write/erase
4. Linux kernel and RFS Boot from NAND
--- MAKEALL | 1 + Makefile | 4 +- board/Marvell/sheevaplug/Makefile | 51 +++++++++ board/Marvell/sheevaplug/config.mk | 25 +++++ board/Marvell/sheevaplug/sheevaplug.c | 135 +++++++++++++++++++++++ board/Marvell/sheevaplug/sheevaplug.h | 37 +++++++ include/configs/sheevaplug.h | 192 +++++++++++++++++++++++++++++++++ 7 files changed, 444 insertions(+), 1 deletions(-) create mode 100644 board/Marvell/sheevaplug/Makefile create mode 100644 board/Marvell/sheevaplug/config.mk create mode 100644 board/Marvell/sheevaplug/sheevaplug.c create mode 100644 board/Marvell/sheevaplug/sheevaplug.h create mode 100644 include/configs/sheevaplug.h
MAKEALL +1 -0
@@ -144,6 +144,7 @@ LIST_8xx=" \ RPXlite \ RPXlite_DW \ RRvision \ + sheevaplug \ SM850 \ spc1920 \ SPD823TS \
Makefile +3 -1
@@ -1122,6 +1122,9 @@ RRvision_LCD_config: unconfig @echo "#define CONFIG_SHARP_LQ104V7DS01" >>$(obj)include/config.h @$(MKCONFIG) -a RRvision ppc mpc8xx RRvision +sheevaplug_config: unconfig + @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) Marvell kirkwood + SM850_config : unconfig @$(MKCONFIG) $(@:_config=) ppc mpc8xx tqm8xx tqc
@@ -3110,7 +3113,6 @@ omap2420h4_config : unconfig qong_config : unconfig @$(MKCONFIG) $(@:_config=) arm arm1136 qong davedenx mx31 - ######################################################################### ## ARM1176 Systems #########################################################################
board/Marvell/sheevaplug/Makefile new file +51 -0
51 lines not on this page · raw message
board/Marvell/sheevaplug/config.mk new file +25 -0
@@ -0,0 +1,25 @@ +# +# (C) Copyright 2009 +# Marvell Semiconductor <www.marvell.com> +# Written-by: Prafulla Wadaskar <[email protected]> +# +# 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., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301 USA +# + +TEXT_BASE = 0x00600000
board/Marvell/sheevaplug/sheevaplug.c new file +135 -0
135 lines not on this page · raw message
board/Marvell/sheevaplug/sheevaplug.h new file +37 -0
@@ -0,0 +1,37 @@ +/* +* (C) Copyright 2009 +* Marvell Semiconductor <www.marvell.com> +* Written-by: Prafulla Wadaskar <[email protected]> +* +* 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., 51 Franklin Street, Fifth Floor, Boston, +* MA 02110-1301 USA +*/ + +#ifndef __SHEEVAPLUG_H +#define __SHEEVAPLUG_H + +#ifndef MACH_TYPE_SHEEVAPLUG +#define MACH_TYPE_SHEEVAPLUG 2097 +#endif + +#define SHEEVAPLUG_OE_LOW (~(0)) +#define SHEEVAPLUG_OE_HIGH (~(0)) +#define SHEEVAPLUG_OE_VAL_LOW (1 << 29)/* USB_PWEN low */ +#define SHEEVAPLUG_OE_VAL_HIGH (1 << 17)/* LED pin high */ + +#endif /* __SHEEVAPLUG_H */
include/configs/sheevaplug.h new file +192 -0
192 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 1/1 Marvell Sheevaplug Board support
Please do not review/accept this patch, I have send v2 for this. Sorry for inconvenience
Regards..
Prafulla . .
Quoted 27 lines
-----Original Message-----
From: Prafulla Wadaskar [mailto:prafulla at marvell.com]
Sent: Saturday, May 30, 2009 1:14 AM
To: u-boot at lists.denx.de
Cc: Nicolas Pitre; Manas Saksena; Lennert Buijtenhek; Prabhanjan Sarnaik; Ronen Shitrit; Ashish Karkare; Prafulla Wadaskar
Subject: [PATCH] Marvell Sheevaplug Board supportReference:
http://plugcomputer.org/
http://openplug.org/plugwiki/index.php/Das_U-boot_plug_supportThis patch is tested for-
1. Boot from DRAM/NAND flash
2. File transfer using tftp
3. NAND flash read/write/erase
4. Linux kernel and RFS Boot from NANDSigned-off-by Prafulla Wadaskar <[email protected]>--- MAKEALL | 1 + Makefile | 4 +- board/Marvell/sheevaplug/Makefile | 51 +++++++++ board/Marvell/sheevaplug/config.mk | 25 +++++ board/Marvell/sheevaplug/sheevaplug.c | 135 +++++++++++++++++++++++ board/Marvell/sheevaplug/sheevaplug.h | 37 +++++++ include/configs/sheevaplug.h | 192
PATCH 1/1 Marvell Sheevaplug Board support
In reply to Prafulla WadaskarDear Prafulla Wadaskar,
Quoted 11 lines · In message <[email protected]> you wrote:
Reference:
http://plugcomputer.org/
http://openplug.org/plugwiki/index.php/Das_U-boot_plug_supportThis patch is tested for-
1. Boot from DRAM/NAND flash
2. File transfer using tftp
3. NAND flash read/write/erase
4. Linux kernel and RFS Boot from NANDSigned-off-by Prafulla Wadaskar <[email protected]>
Quoted 14 lines
--- MAKEALL | 1 + Makefile | 4 +- board/Marvell/sheevaplug/Makefile | 51 +++++++++ board/Marvell/sheevaplug/config.mk | 25 +++++ board/Marvell/sheevaplug/sheevaplug.c | 135 +++++++++++++++++++++++ board/Marvell/sheevaplug/sheevaplug.h | 37 +++++++ include/configs/sheevaplug.h | 192 +++++++++++++++++++++++++++++++++ 7 files changed, 444 insertions(+), 1 deletions(-) create mode 100644 board/Marvell/sheevaplug/Makefile create mode 100644 board/Marvell/sheevaplug/config.mk create mode 100644 board/Marvell/sheevaplug/sheevaplug.c create mode 100644 board/Marvell/sheevaplug/sheevaplug.h create mode 100644 include/configs/sheevaplug.h
Entry in MAINTAINERS missing.
...
include/configs/sheevaplug.h line 100
Quoted 12 lines
include/configs/sheevaplug.h new file +12
-0+/* +* Commands configuration +*/ +#define CONFIG_CMD_ENV +#define CONFIG_CMD_RUN +#define CONFIG_CMD_LOADB +#define CONFIG_CMD_NET +#define CONFIG_CMD_AUTOSCRIPT +#define CONFIG_CMD_MEMORY +#define CONFIG_CMD_BOOTD +#define CONFIG_CMD_SAVEENV +#define CONFIG_CMD_NAND
Please sort.
...
include/configs/sheevaplug.h line 141
Quoted 2 lines
include/configs/sheevaplug.h new file +2
-0+#define CONFIG_MTDPARTS "orion_nand:512k(uboot)," \ + "1m at 4m(psm), 3m at 1m(kernel),13m at 5m(rootfs) rw\0"
Do you really want to have such an unusal and unexpectad setup?
include/configs/sheevaplug.h line 175
Quoted 6 lines
include/configs/sheevaplug.h new file +6
-0+/* +* Ethernet Driver configuration +*/ +#ifdef CONFIG_CMD_NET +#define CONFIG_CMD_DHCP +#define CONFIG_CMD_PING
I recommend to keep command definitions close together. Move up?
include/configs/sheevaplug.h line 184
Quoted 9 lines
include/configs/sheevaplug.h new file +9
-0+#define CONFIG_NETCONSOLE /* include NetConsole support */ +#define CONFIG_NET_MULTI /* specify more that one ports available */ +#define CONFIG_MII /* expose smi ove miiphy interface */ +#define CONFIG_KIRKWOOD_EGIGA /* Enable kirkwood Gbe Controller Driver */ +#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN /* detect link using phy */ +#define CONFIG_KIRKWOOD_EGIGA_PORTS {1,0}/* enable port 0 only */ +#define CONFIG_PHY_BASE_ADR 0 +#define CONFIG_ENV_OVERWRITE /* ethaddr can be reprogrammed */ +#endif /* CONFIG_CMD_NET */
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Perl already has an IDE. It's called Unix.
-- Tom Christiansen in 375bd509 at cs.colorado.eduPATCH 1/1 Marvell MV88F6281GTW_GE Board support
In reply to Prafulla WadaskarDear Prafulla Wadaskar,
Quoted 11 lines · In message <[email protected]> you wrote:
This is Marvell's 88F6281_A0 based custom board developed for wireless access point product
This patch is tested for-
1. Boot from DRAM/SPI flash/NFS
2. File transfer using tftp and loadb
3. SPI flash read/write/erase
4. Booting Linux kernel and RFS from SPI flashReviewed-by Ronen Shitrit <[email protected]>Signed-off-by Prafulla Wadaskar <[email protected]>
Quoted 14 lines
--- MAKEALL | 1 + Makefile | 3 + board/Marvell/mv88f6281gtw_ge/Makefile | 51 ++++++ board/Marvell/mv88f6281gtw_ge/config.mk | 25 +++ board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.c | 141 +++++++++++++++++ board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.h | 36 +++++ include/configs/mv88f6281gtw_ge.h | 188 +++++++++++++++++++++++ 7 files changed, 445 insertions(+), 0 deletions(-) create mode 100644 board/Marvell/mv88f6281gtw_ge/Makefile create mode 100644 board/Marvell/mv88f6281gtw_ge/config.mk create mode 100644 board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.c create mode 100644 board/Marvell/mv88f6281gtw_ge/mv88f6281gtw_ge.h create mode 100644 include/configs/mv88f6281gtw_ge.h
Entry in MAINTAINERS file is missing.
Quoted 5 lines
include/configs/mv88f6281gtw_ge.h new file +0
-0
...
include/configs/mv88f6281gtw_ge.h line 101
Quoted 12 lines
include/configs/mv88f6281gtw_ge.h new file +12
-0+/* +* Commands configuration +*/ +#define CONFIG_CMD_ENV +#define CONFIG_CMD_RUN +#define CONFIG_CMD_LOADB +#define CONFIG_CMD_NET +#define CONFIG_CMD_AUTOSCRIPT +#define CONFIG_CMD_MEMORY +#define CONFIG_CMD_BOOTD +#define CONFIG_CMD_SAVEENV +#define CONFIG_CMD_SF
Please sort such lists.
...
include/configs/mv88f6281gtw_ge.h line 138
Quoted 2 lines
include/configs/mv88f6281gtw_ge.h new file +2
-0+#define CONFIG_MTDPARTS "spi0.0:512k(uboot)," \ + "512k at 512k(psm), 2m at 1m(kernel),13m at 3m(rootfs)\0"
For readability, you might want to omit the redundant offet values here.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You may call me by my name, Wirth, or by my value, Worth. - Nicklaus Wirth
PATCH 1/1 net: Add Marvell Kirkwood gigabit ethernet driver
In reply to Prafulla WadaskarQuoted 9 lines · Prafulla Wadaskar
This patch adds a egiga driver for the Marvell Kirkwood SoC's.
Contributors:
Yotam Admon <[email protected]>
Michael Blostein <[email protected]Reviewed-by Ronen Shitrit <[email protected]>Acked-by Stefan Rose <[email protected]>Signed-off-by Prafulla Wadaskar <[email protected]>
Ben if it's ok for you I'll apply with rest of the series
Best Regards,
J.
PATCH 1/1 net: Add Marvell Kirkwood gigabit ethernet driver
Quoted 8 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 6 lines · Prafulla Wadaskar
This patch adds a egiga driver for the Marvell Kirkwood SoC's.
Contributors:
Yotam Admon <[email protected]>
Michael Blostein <[email protected]
Quoted 9 lines
Quoted 4 lines
Reviewed-by Ronen Shitrit <[email protected]>Acked-by Stefan Rose <[email protected]>Signed-off-by Prafulla Wadaskar <[email protected]>Ben if it's ok for you I'll apply with rest of the series
Best Regards,
J.
I'll look at it this weekend.
regards,
Ben
PATCH 1/1 net: Add Marvell Kirkwood gigabit ethernet driver
Quoted 25 lines
-----Original Message-----
From: Ben Warren [mailto:biggerbadderben at gmail.com]
Sent: Saturday, May 30, 2009 4:51 AM
To: Jean-Christophe PLAGNIOL-VILLARD
Cc: Prafulla Wadaskar; u-boot at lists.denx.de; Manas Saksena; Ronen Shitrit; Nicolas Pitre; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH] net: Add Marvell Kirkwood gigabit ethernet driverQuoted 12 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 10 lines · Prafulla Wadaskar
This patch adds a egiga driver for the Marvell Kirkwood SoC's.
Contributors:
Yotam Admon <[email protected]>
Michael Blostein <[email protected]Reviewed-by Ronen Shitrit <[email protected]>Acked-by Stefan Rose <[email protected]>Signed-off-by Prafulla Wadaskar <[email protected]>
Quoted 6 lines
Quoted 5 lines
Ben if it's ok for you I'll apply with rest of the series
Best Regards,
J.I'll look at it this weekend.
Hi Ben,
I have put the huge efforts to tune it specially for code size reduction. Whereas I have lost only network statistics and packet info print debugging features. Now it looks more simpler and cleaner :-)
Hopefully it will stand as per your suggestions.
See the difference
New driver..
drivers/net/Makefile | 1 + drivers/net/kirkwood_egiga.c | 674 ++++++++++++++++++++++++++++++++++++++++++ drivers/net/kirkwood_egiga.h | 561 +++++++++++++++++++++++++++++++++++ include/netdev.h | 1 + 4 files changed, 1237 insertions(+), 0 deletions(-) create mode 100644
Old driver
cpu/arm926ejs/kirkwood/cpu.c | 8 + drivers/net/Makefile | 1 + drivers/net/kirkwood_egiga.c | 1670 ++++++++++++++++++++++++++++++++++++++++++ drivers/net/kirkwood_egiga.h | 828 +++++++++++++++++++++ include/netdev.h | 1 + 5 files changed, 2508 insertions(+), 0 deletions(-) create mode 100644 drivers/net/kirkwood_egiga.c create mode 100644 drivers/net/kirkwood_egiga.h
Regards..
Prafulla .
Quoted 4 lines
regards,
Ben
PATCH 1/1 net: Add Marvell Kirkwood gigabit ethernet driver
Quoted 35 lines · Prafulla Wadaskar
Quoted 35 lines
-----Original Message-----
From: Ben Warren [mailto:biggerbadderben at gmail.com]
Sent: Saturday, May 30, 2009 4:51 AM
To: Jean-Christophe PLAGNIOL-VILLARD
Cc: Prafulla Wadaskar; u-boot at lists.denx.de; Manas Saksena; Ronen Shitrit; Nicolas Pitre; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH] net: Add Marvell Kirkwood gigabit ethernet driverQuoted 20 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 11 lines · Prafulla Wadaskar
This patch adds a egiga driver for the Marvell Kirkwood SoC's.
Contributors:
Yotam Admon <[email protected]>
Michael Blostein <[email protected]Reviewed-by Ronen Shitrit <[email protected]>Acked-by Stefan Rose <[email protected]>Signed-off-by Prafulla Wadaskar <[email protected]>Ben if it's ok for you I'll apply with rest of the series
Best Regards,
J.
Quoted 9 lines
Quoted 2 lines
I'll look at it this weekend.
Hi Ben,
I have put the huge efforts to tune it specially for code size reduction. Whereas I have lost only network statistics and packet info print debugging features. Now it looks more simpler and cleaner :-)
Hopefully it will stand as per your suggestions.
Much appreciated! Thanks a lot. It looks really good - please just take care of Wolfgang's concerns about error messages and it'll be ready for inclusion.
regards,
Ben
PATCH v2 3/5 net: Add Marvell Kirkwood gigabit ethernet driver
This patch adds a egiga driver for the Marvell Kirkwood SoC's.
Contributors:
Yotam Admon <[email protected]>
Michael Blostein <michaelbl at marvell.com
---
Change log:
v2: updated all print messages to provide helpful info
drivers/net/Makefile | 1 + drivers/net/kirkwood_egiga.c | 664 ++++++++++++++++++++++++++++++++++++++++++ drivers/net/kirkwood_egiga.h | 561 +++++++++++++++++++++++++++++++++++ include/netdev.h | 1 + 4 files changed, 1227 insertions(+), 0 deletions(-) create mode 100644 drivers/net/kirkwood_egiga.c create mode 100644 drivers/net/kirkwood_egiga.h
drivers/net/Makefile +1 -0
@@ -40,6 +40,7 @@ COBJS-$(CONFIG_ENC28J60) += enc28j60.o COBJS-$(CONFIG_FSLDMAFEC) += fsl_mcdmafec.o mcfmii.o COBJS-$(CONFIG_GRETH) += greth.o COBJS-$(CONFIG_INCA_IP_SWITCH) += inca-ip_sw.o +COBJS-$(CONFIG_KIRKWOOD_EGIGA) += kirkwood_egiga.o COBJS-$(CONFIG_DRIVER_KS8695ETH) += ks8695eth.o COBJS-$(CONFIG_DRIVER_LAN91C96) += lan91c96.o COBJS-$(CONFIG_MACB) += macb.o
drivers/net/kirkwood_egiga.c new file +664 -0
664 lines not on this page · raw message
drivers/net/kirkwood_egiga.h new file +561 -0
561 lines not on this page · raw message
include/netdev.h +1 -0
@@ -52,6 +52,7 @@ int fec_initialize (bd_t *bis);int greth_initialize (bd_t *bis);void gt6426x_eth_initialize (bd_t *bis);int inca_switch_initialize (bd_t *bis); +int kirkwood_egiga_initialize (bd_t *bis);int macb_eth_initialize (int id,void *regs,unsigned int phy_addr);int mcdmafec_initialize (bd_t *bis);int mcffec_initialize (bd_t *bis);
Signature · 1 line
1.5.3.3
PATCH 1/1 net: Add Marvell Kirkwood gigabit ethernet driver
In reply to Prafulla WadaskarDear Prafulla Wadaskar,
Quoted 1 line · In message <[email protected]> you wrote:
This patch adds a egiga driver for the Marvell Kirkwood SoC's.
...
drivers/net/kirkwood_egiga.c line 135
Quoted 4 lines
drivers/net/kirkwood_egiga.c new file +4
-0+/* check parameters */ +if ((phy_adr <<KWGBE_PHY_SMI_DEV_ADDR_OFFS ) & + ~KWGBE_PHY_SMI_DEV_ADDR_MASK ) { +printf ("Illegal phy address\n" );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
drivers/net/kirkwood_egiga.c line 140
Quoted 5 lines
drivers/net/kirkwood_egiga.c new file +5
-0+return -EINVAL ; + } +if ((reg_ofs <<KWGBE_SMI_REG_ADDR_OFFS ) & + ~KWGBE_SMI_REG_ADDR_MASK ) { +printf ("Illegal register offset\n" );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If you priont an error message, please print a helpful one, i. e. provide the information what failed the test, and why.
drivers/net/kirkwood_egiga.c line 499
Quoted 8 lines
drivers/net/kirkwood_egiga.c new file +8
-0+static int kwgbe_send (struct eth_device *dev,volatile void *dataptr,int datasize) +{ +struct kwgbe_device *dkwgbe =to_dkwgbe (dev); +struct kwgbe_registers *regs = dkwgbe->regs; +struct kwgbe_txdesc *p_txdesc = dkwgbe->p_txdesc; + +if ((u32 )dataptr &0x07 ) { +printf ("Err..xmit dataptr not 64bit aligned\n" );
Ditto. The user does not even know which driver this is coming from.
Also, please write "dataptr & 0x07".
drivers/net/kirkwood_egiga.c line 522
Quoted 4 lines
drivers/net/kirkwood_egiga.c new file +4
-0+while (p_txdesc->cmd_sts &KWGBE_BUFFER_OWNED_BY_DMA ) { +/* return fail if error is detected */ +if (p_txdesc->cmd_sts & (KWGBE_UR_ERROR |KWGBE_RL_ERROR )) { +printf ("Err..in xmit packet\n" );
Ditto.
drivers/net/kirkwood_egiga.c line 536
Quoted 8 lines
drivers/net/kirkwood_egiga.c new file +8
-0+static int kwgbe_recv (struct eth_device *dev) +{ +volatile struct kwgbe_device *dkwgbe =to_dkwgbe (dev); +volatile struct kwgbe_rxdesc *p_rxdesc_curr= dkwgbe->p_rxdesc_curr; + +/* Sanity check */ +if (p_rxdesc_curr ==NULL ) { +printf ("Err.. null ptr \n" );
Please do not print trailing white space.
Also, this error message could be more helpful if you printed where it happened, and which pointer was unexpectedly NULL.
And so on - please check rest of this file, and all other files for _helpful_ error messages.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Inside every old person is a young person wondering what happened.
- Terry Pratchett, _Moving Pictures_PATCH 1/1 spi: Add Marvell Kirkwood SPI driver
In reply to Prafulla WadaskarQuoted 3 lines · Prafulla Wadaskar
This patch adds a SPI driver for the Marvell Kirkwood SoC's.
Signed-off-by Prafulla Wadaskar <[email protected]>
Looks fine
Andy fot you?
Best Regards,
J.
PATCH 1/1 spi: Add Marvell Kirkwood SPI driver
...My first pass says this patch doesn't touch on my domain. Is there something I'm missing?
Quoted 15 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 3 lines · Prafulla Wadaskar
This patch adds a SPI driver for the Marvell Kirkwood SoC's.
Signed-off-by Prafulla Wadaskar <[email protected]>Looks fine
Andy fot you?
Best Regards,
J.
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
PATCH 1/1 spi: Add Marvell Kirkwood SPI driver
In reply to Prafulla WadaskarDear Prafulla Wadaskar,
drivers/spi/kirkwood_spi.c line 65
Quoted 5 lines · In message <[email protected]> you wrote:
This patch adds a SPI driver for the Marvell Kirkwood SoC's.
drivers/spi/kirkwood_spi.c new file +3
-0+/* program spi clock prescaller using max_hz */ +writel (KWSPI_ADRLEN_3BYTE | data, &spireg->cfg); +debug ("data = 0x%08x \n" , data);
Please do not print trailing white space.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Just about every computer on the market today runs Unix, except the Mac (and nobody cares about it). - Bill Joy 6/21/85
PATCH v2 2/5 spi: Add Marvell Kirkwood SPI driver
This patch adds a SPI driver for the Marvell Kirkwood SoC's.
---
Change log:
v2: White space in debug print removed
drivers/spi/Makefile | 1 + drivers/spi/kirkwood_spi.c | 185 +++++++++++++++++++++++++++++++++++ include/asm-arm/arch-kirkwood/spi.h | 56 +++++++++++ 3 files changed, 242 insertions(+), 0 deletions(-) create mode 100644 drivers/spi/kirkwood_spi.c create mode 100644 include/asm-arm/arch-kirkwood/spi.h
drivers/spi/Makefile +1 -0
@@ -28,6 +28,7 @@ LIB := $(obj)libspi.a COBJS-$(CONFIG_ATMEL_DATAFLASH_SPI) += atmel_dataflash_spi.o COBJS-$(CONFIG_ATMEL_SPI) += atmel_spi.o COBJS-$(CONFIG_BFIN_SPI) += bfin_spi.o +COBJS-$(CONFIG_KIRKWOOD_SPI) += kirkwood_spi.o COBJS-$(CONFIG_MPC8XXX_SPI) += mpc8xxx_spi.o COBJS-$(CONFIG_MXC_SPI) += mxc_spi.o COBJS-$(CONFIG_SOFT_SPI) += soft_spi.o
drivers/spi/kirkwood_spi.c new file +185 -0
185 lines not on this page · raw message
include/asm-arm/arch-kirkwood/spi.h new file +56 -0
56 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 1/1 spi: Add Marvell Kirkwood SPI driver
In reply to Prafulla WadaskarQuoted 10 lines · Prafulla Wadaskar
This patch adds a SPI driver for the Marvell Kirkwood SoC's.
Signed-off-by Prafulla Wadaskar <[email protected]>--- drivers/spi/Makefile | 1 + drivers/spi/kirkwood_spi.c | 185 +++++++++++++++++++++++++++++++++++ include/asm-arm/arch-kirkwood/spi.h | 56 +++++++++++ 3 files changed, 242 insertions(+), 0 deletions(-) create mode 100644 drivers/spi/kirkwood_spi.c create mode 100644 include/asm-arm/arch-kirkwood/spi.h
applied to u-boot-arm
Best Regards,
J.
PATCH 1/1 spi: Add Marvell Kirkwood SPI driver
Thanks Jean...
Regards..
Prafulla . .
Quoted 25 lines
-----Original Message-----
From: Jean-Christophe PLAGNIOL-VILLARD [mailto:plagnioj at jcrosoft.com]
Sent: Friday, June 26, 2009 4:30 AM
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Manas Saksena; Ronen Shitrit; Nicolas Pitre; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH] spi: Add Marvell Kirkwood SPI driverQuoted 6 lines · Prafulla Wadaskar
This patch adds a SPI driver for the Marvell Kirkwood SoC's.
Signed-off-by Prafulla Wadaskar <[email protected]>--- drivers/spi/Makefile | 1 + drivers/spi/kirkwood_spi.c | 185+++++++++++++++++++++++++++++++++++
Quoted 4 lines
include/asm-arm/arch-kirkwood/spi.h | 56 +++++++++++ 3 files changed, 242 insertions(+), 0 deletions(-) create mode100644
drivers/spi/kirkwood_spi.ccreate mode 100644include/asm-arm/arch-kirkwood/spi.happlied to u-boot-arm
Best Regards,
J.
PATCH 1/1 spi: Add Marvell Kirkwood SPI driver
Quoted 17 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de
[mailto:u-boot-bounces at lists.denx.de] On Behalf Of Prafulla Wadaskar
Sent: Friday, June 26, 2009 11:28 AM
To: Jean-Christophe PLAGNIOL-VILLARD
Cc: Manas Saksena; Ronen Shitrit; Nicolas Pitre;
u-boot at lists.denx.de; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH] spi: Add Marvell Kirkwood SPI driverThanks Jean...
Regards..
Prafulla . .
Quoted 23 lines
Quoted 2 lines
-----Original Message-----
From: Jean-Christophe PLAGNIOL-VILLARD[mailto:plagnioj at jcrosoft.com]
Quoted 3 lines
Sent: Friday, June 26, 2009 4:30 AM
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Manas Saksena; Ronen Shitrit;Nicolas Pitre;
Quoted 16 lines
Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH] spi: Add Marvell Kirkwood SPI driverQuoted 6 lines · Prafulla Wadaskar
This patch adds a SPI driver for the Marvell Kirkwood SoC's.
Signed-off-by Prafulla Wadaskar <[email protected]>--- drivers/spi/Makefile | 1 + drivers/spi/kirkwood_spi.c | 185+++++++++++++++++++++++++++++++++++
Quoted 4 lines
include/asm-arm/arch-kirkwood/spi.h | 56 +++++++++++ 3 files changed, 242 insertions(+), 0 deletions(-) create mode100644
drivers/spi/kirkwood_spi.ccreate mode 100644include/asm-arm/arch-kirkwood/spi.happlied to u-boot-arm
Hi Jean,
On which branch it is applied?, I could not find it on arm/next...
Regards..
Prafulla . . .
Quoted 9 lines
Quoted 4 lines
Best Regards,
J._______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
PATCH 1/1 spi: Add Marvell Kirkwood SPI driver
Quoted 35 lines · Prafulla Wadaskar
Quoted 35 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de
[mailto:u-boot-bounces at lists.denx.de] On Behalf Of Prafulla Wadaskar
Sent: Friday, June 26, 2009 11:28 AM
To: Jean-Christophe PLAGNIOL-VILLARD
Cc: Manas Saksena; Ronen Shitrit; Nicolas Pitre;
u-boot at lists.denx.de; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH] spi: Add Marvell Kirkwood SPI driverThanks Jean...
Regards..
Prafulla . .Quoted 2 lines
-----Original Message-----
From: Jean-Christophe PLAGNIOL-VILLARD[mailto:plagnioj at jcrosoft.com]
Quoted 3 lines
Sent: Friday, June 26, 2009 4:30 AM
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Manas Saksena; Ronen Shitrit;Nicolas Pitre;
Quoted 11 lines
Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH] spi: Add Marvell Kirkwood SPI driverQuoted 6 lines · Prafulla Wadaskar
This patch adds a SPI driver for the Marvell Kirkwood SoC's.
Signed-off-by Prafulla Wadaskar <[email protected]>--- drivers/spi/Makefile | 1 + drivers/spi/kirkwood_spi.c | 185+++++++++++++++++++++++++++++++++++
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
include/asm-arm/arch-kirkwood/spi.h | 56 +++++++++++ 3 files changed, 242 insertions(+), 0 deletions(-) create mode100644
drivers/spi/kirkwood_spi.ccreate mode 100644include/asm-arm/arch-kirkwood/spi.happlied to u-boot-arm
Hi Jean,
On which branch it is applied?, I could not find it on arm/next...
master
next or testing is still for dev as the master will not build for mtd stuff
Best Regards,
J.
PATCH 1/1 spi: Add Marvell Kirkwood SPI driver
Quoted 7 lines
Prafulla Wadaskar
Quoted 6 lines
Quoted 6 lines
Sent: Friday, June 26, 2009 11:28 AM
To: Jean-Christophe PLAGNIOL-VILLARD
Cc: Manas Saksena; Ronen Shitrit; Nicolas Pitre;
u-boot at lists.denx.de; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH] spi: Add Marvell Kirkwood SPI driver
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
applied to u-boot-arm
Hi Jean,
On which branch it is applied?, I could not find it on arm/next...
master
next or testing is still for dev as the master will not build for mtd stuff
Thanks jean I could see it now :)
Regards..
Prafulla . .
PATCH 1/1 arm: Kirkwood: Basic SOCs support
In reply to Prafulla WadaskarQuoted 5 lines
+ *
+ * Reference Documentation:
+ * Mbus-L to Mbus Bridge Registers Configuration.
+ * (Sec 25.1 and 25.3 of Datasheet)
+ */
cpu/arm926ejs/kirkwood/cpu.c line 112
Quoted 10 lines
cpu/arm926ejs/kirkwood/cpu.c new file +10
-0+int kw_config_adr_windows (void ) +{ +struct kwwin_registers *winregs = + (struct kwwin_registers *)KW_CPU_WIN_BASE ; + +writel (KWCPU_WIN_CTRL_DATA (0xc0000 ,KWCPU_TARGET_PCIE , +KWCPU_ATTR_PCIE_MEM ,KWCPU_WIN_ENABLE ), + &winregs[0 ].ctrl); + +writel (0x90000000 , &winregs[0 ].base);
any chance to have some macro for the 0x90000000 & co...
other fine
Best Regards,
J.
PATCH 1/1 arm: Kirkwood: Basic SOCs support
Quoted 10 lines
-----Original Message-----
From: Jean-Christophe PLAGNIOL-VILLARD [mailto:plagnioj at jcrosoft.com]
Sent: Saturday, May 30, 2009 3:52 AM
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Manas Saksena; Ronen Shitrit; Nicolas Pitre; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH] arm: Kirkwood: Basic SOCs support
Quoted 16 lines
Quoted 5 lines
+ *
+ * Reference Documentation:
+ * Mbus-L to Mbus Bridge Registers Configuration.
+ * (Sec 25.1 and 25.3 of Datasheet)
+ */cpu/arm926ejs/kirkwood/cpu.c line 112
Quoted 10 lines
cpu/arm926ejs/kirkwood/cpu.c new file +10
-0+int kw_config_adr_windows (void ) +{ +struct kwwin_registers *winregs = + (struct kwwin_registers *)KW_CPU_WIN_BASE ; + +writel (KWCPU_WIN_CTRL_DATA (0xc0000 ,KWCPU_TARGET_PCIE , +KWCPU_ATTR_PCIE_MEM ,KWCPU_WIN_ENABLE ), + &winregs[0 ].ctrl); + +writel (0x90000000 , &winregs[0 ].base);any chance to have some macro for the
0x90000000& co...
Hi Jean,
Base address, remap address high, remap address low are the registers need to be programmed with some address value.
Making it macro will not make much sense since the code line itself is readable for objective
Quoted 2 lines
other fine
Please make it everything fine :-)
Waiting eagerly for acceptance
Regards..
Prafulla ..
Quoted 4 lines
Best Regards,
J.
PATCH 1/1 arm: Kirkwood: Basic SOCs support
Quoted 26 lines · Prafulla Wadaskar
Quoted 10 lines
-----Original Message-----
From: Jean-Christophe PLAGNIOL-VILLARD [mailto:plagnioj at jcrosoft.com]
Sent: Saturday, May 30, 2009 3:52 AM
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Manas Saksena; Ronen Shitrit; Nicolas Pitre; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH] arm: Kirkwood: Basic SOCs supportQuoted 16 lines
Quoted 5 lines
+ *
+ * Reference Documentation:
+ * Mbus-L to Mbus Bridge Registers Configuration.
+ * (Sec 25.1 and 25.3 of Datasheet)
+ */cpu/arm926ejs/kirkwood/cpu.c line 112
Quoted 10 lines
cpu/arm926ejs/kirkwood/cpu.c new file +10
-0+int kw_config_adr_windows (void ) +{ +struct kwwin_registers *winregs = + (struct kwwin_registers *)KW_CPU_WIN_BASE ; + +writel (KWCPU_WIN_CTRL_DATA (0xc0000 ,KWCPU_TARGET_PCIE , +KWCPU_ATTR_PCIE_MEM ,KWCPU_WIN_ENABLE ), + &winregs[0 ].ctrl); + +writel (0x90000000 , &winregs[0 ].base);any chance to have some macro for the
0x90000000& co...
Quoted 4 lines
Hi Jean,
Base address, remap address high, remap address low are the registers need to be programmed with some address value.
Making it macro will not make much sense since the code line itself is readable for objective
so please explain this in the code
Best Regards,
J.
PATCH 1/1 arm: Kirkwood: Basic SOCs support
Kirkwood family controllers are highly integrated SOCs based on Feroceon-88FR131/Sheeva-88SV131/arm926ejs cpu core.
SOC versions supported:-
1) 88F6281-A0 define CONFIG_KW88F6281_A0
2) 88F6192-A0 define CONFIG_KW88F6192_A0
Other supported features:-
1) get_random_hex() fucntion
2) PCI Express port initialization
3) NS16550 driver support
Contributors:
Yotam Admon <[email protected]>
Michael Blostein <michaelbl at marvell.com
---
Change log:
v2: explained cpu winregs programming, defined macros too.
cpu/arm926ejs/kirkwood/Makefile | 49 +++++ cpu/arm926ejs/kirkwood/cpu.c | 315 +++++++++++++++++++++++++++++ cpu/arm926ejs/kirkwood/dram.c | 58 ++++++ cpu/arm926ejs/kirkwood/mpp.c | 80 ++++++++ cpu/arm926ejs/kirkwood/timer.c | 168 +++++++++++++++ drivers/serial/serial.c | 3 + include/asm-arm/arch-kirkwood/cpu.h | 159 +++++++++++++++ include/asm-arm/arch-kirkwood/kirkwood.h | 69 +++++++ include/asm-arm/arch-kirkwood/kw88f6192.h | 37 ++++ include/asm-arm/arch-kirkwood/kw88f6281.h | 37 ++++ include/asm-arm/arch-kirkwood/mpp.h | 303 +++++++++++++++++++++++++++ 11 files changed, 1278 insertions(+), 0 deletions(-) create mode 100644 cpu/arm926ejs/kirkwood/Makefile create mode 100644 cpu/arm926ejs/kirkwood/cpu.c create mode 100644 cpu/arm926ejs/kirkwood/dram.c create mode 100644 cpu/arm926ejs/kirkwood/mpp.c create mode 100644 cpu/arm926ejs/kirkwood/timer.c create mode 100644 include/asm-arm/arch-kirkwood/cpu.h create mode 100644 include/asm-arm/arch-kirkwood/kirkwood.h create mode 100644 include/asm-arm/arch-kirkwood/kw88f6192.h create mode 100644 include/asm-arm/arch-kirkwood/kw88f6281.h create mode 100644 include/asm-arm/arch-kirkwood/mpp.h
cpu/arm926ejs/kirkwood/Makefile new file +49 -0
@@ -0,0 +1,49 @@ +# +# (C) Copyright 2009 +# Marvell Semiconductor <www.marvell.com> +# Written-by: Prafulla Wadaskar <[email protected]> +# +# 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., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301 USA +# + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(SOC).a + +COBJS-y = dram.o +COBJS-y += cpu.o +COBJS-y += mpp.o +COBJS-y += timer.o + +SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c) +OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS-y)) + +all: $(obj).depend $(LIB) + +$(LIB): $(OBJS) + $(AR) $(ARFLAGS) $@ $(OBJS) + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +#########################################################################
cpu/arm926ejs/kirkwood/cpu.c new file +315 -0
315 lines not on this page · raw message
cpu/arm926ejs/kirkwood/dram.c new file +58 -0
58 lines not on this page · raw message
cpu/arm926ejs/kirkwood/mpp.c new file +80 -0
80 lines not on this page · raw message
cpu/arm926ejs/kirkwood/timer.c new file +168 -0
168 lines not on this page · raw message
drivers/serial/serial.c +3 -0
@@ -27,6 +27,9 @@#ifdef CONFIG_NS87308 #include <ns87308.h> #endif +#ifdef CONFIG_KIRKWOOD +#include <asm/arch/kirkwood.h> +#endif #if defined (CONFIG_SERIAL_MULTI )#include <serial.h>
include/asm-arm/arch-kirkwood/cpu.h new file +159 -0
159 lines not on this page · raw message
include/asm-arm/arch-kirkwood/kirkwood.h new file +69 -0
69 lines not on this page · raw message
include/asm-arm/arch-kirkwood/kw88f6192.h new file +37 -0
@@ -0,0 +1,37 @@ +/* +* (C) Copyright 2009 +* Marvell Semiconductor <www.marvell.com> +* Written-by: Prafulla Wadaskar <[email protected]> +* +* Header file for Feroceon CPU core 88FR131 Based KW88F6192 SOC. +* +* 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., 51 Franklin Street, Fifth Floor, Boston, +* MA 02110-1301 USA +*/ + +#ifndef _CONFIG_KW88F6192_H +#define _CONFIG_KW88F6192_H + +/* SOC specific definations */ +#define KW88F6192_REGS_PHYS_BASE 0xf1000000 +#define KW_REGS_PHY_BASE KW88F6192_REGS_PHYS_BASE + +/* TCLK Core Clock defination */ +#define CONFIG_SYS_TCLK 166000000/* 166MHz */ + +#endif /* _CONFIG_KW88F6192_H */
include/asm-arm/arch-kirkwood/kw88f6281.h new file +37 -0
@@ -0,0 +1,37 @@ +/* +* (C) Copyright 2009 +* Marvell Semiconductor <www.marvell.com> +* Written-by: Prafulla Wadaskar <[email protected]> +* +* Header file for Feroceon CPU core 88FR131 Based KW88F6281 SOC. +* +* 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., 51 Franklin Street, Fifth Floor, Boston, +* MA 02110-1301 USA +*/ + +#ifndef _ASM_ARCH_KW88F6281_H +#define _ASM_ARCH_KW88F6281_H + +/* SOC specific definations */ +#define KW88F6281_REGS_PHYS_BASE 0xf1000000 +#define KW_REGS_PHY_BASE KW88F6281_REGS_PHYS_BASE + +/* TCLK Core Clock defination*/ +#define CONFIG_SYS_TCLK 200000000/* 200MHz */ + +#endif /* _ASM_ARCH_KW88F6281_H */
include/asm-arm/arch-kirkwood/mpp.h new file +303 -0
303 lines not on this page · raw message
Signature · 1 line
1.5.3.3
PATCH 1/1 arm: Kirkwood: Basic SOCs support
Hi Jean
I have added macros and put some comments in kw_config_adr_windows() for better readability Also I have given references from datasheet too.
This was the only feedback from the last patch.
I Hope this patch is clean to apply
So please kindly review and apply the same
Regards..
Prafulla . .
Quoted 31 lines
-----Original Message-----
From: Prafulla Wadaskar [mailto:prafulla at marvell.com]
Sent: Tuesday, June 02, 2009 3:17 PM
To: u-boot at lists.denx.de
Cc: Nicolas Pitre; Manas Saksena; Lennert Buijtenhek; Prabhanjan Sarnaik; Ronen Shitrit; Ashish Karkare; Prafulla Wadaskar
Subject: [PATCH v1] arm: Kirkwood: Basic SOCs supportKirkwood family controllers are highly integrated SOCs based on Feroceon-88FR131/Sheeva-88SV131/arm926ejs cpu core.
SOC versions supported:-
1) 88F6281-A0 defineCONFIG_KW88F6281_A0
2) 88F6192-A0 defineCONFIG_KW88F6192_A0Other supported features:-
1)get_random_hex()fucntion
2) PCI Express port initialization
3) NS16550 driver supportContributors:
Yotam Admon <[email protected]>
Michael Blostein <[email protected]Reviewed-by Ronen Shitrit <[email protected]>Acked-by Stefan Rose <[email protected]>Signed-off-by Prafulla Wadaskar <[email protected]>---
Change log:
v2: explained cpu winregs programming, defined macros too.
Jean-Christophe PLAGNIOL-VILLARD
AppliedPATCH 1/1 arm: Kirkwood: Basic SOCs support
In reply to Prafulla WadaskarQuoted 37 lines · Prafulla Wadaskar
Kirkwood family controllers are highly integrated SOCs based on Feroceon-88FR131/Sheeva-88SV131/arm926ejs cpu core.
SOC versions supported:-
1) 88F6281-A0 defineCONFIG_KW88F6281_A0
2) 88F6192-A0 defineCONFIG_KW88F6192_A0Other supported features:-
1)get_random_hex()fucntion
2) PCI Express port initialization
3) NS16550 driver supportContributors:
Yotam Admon <[email protected]>
Michael Blostein <[email protected]Reviewed-by Ronen Shitrit <[email protected]>Acked-by Stefan Rose <[email protected]>Signed-off-by Prafulla Wadaskar <[email protected]>---
Change log:
v2: explained cpu winregs programming, defined macros too.cpu/arm926ejs/kirkwood/Makefile | 49 +++++ cpu/arm926ejs/kirkwood/cpu.c | 315 +++++++++++++++++++++++++++++ cpu/arm926ejs/kirkwood/dram.c | 58 ++++++ cpu/arm926ejs/kirkwood/mpp.c | 80 ++++++++ cpu/arm926ejs/kirkwood/timer.c | 168 +++++++++++++++ drivers/serial/serial.c | 3 + include/asm-arm/arch-kirkwood/cpu.h | 159 +++++++++++++++ include/asm-arm/arch-kirkwood/kirkwood.h | 69 +++++++ include/asm-arm/arch-kirkwood/kw88f6192.h | 37 ++++ include/asm-arm/arch-kirkwood/kw88f6281.h | 37 ++++ include/asm-arm/arch-kirkwood/mpp.h | 303 +++++++++++++++++++++++++++ 11 files changed, 1278 insertions(+), 0 deletions(-) create mode 100644 cpu/arm926ejs/kirkwood/Makefile create mode 100644 cpu/arm926ejs/kirkwood/cpu.c
Quoted 9 lines
create mode 100644 cpu/arm926ejs/kirkwood/dram.c create mode 100644 cpu/arm926ejs/kirkwood/mpp.c create mode 100644 cpu/arm926ejs/kirkwood/timer.c create mode 100644 include/asm-arm/arch-kirkwood/cpu.h create mode 100644 include/asm-arm/arch-kirkwood/kirkwood.h create mode 100644 include/asm-arm/arch-kirkwood/kw88f6192.h create mode 100644 include/asm-arm/arch-kirkwood/kw88f6281.h create mode 100644 include/asm-arm/arch-kirkwood/mpp.h
applied to arm/next
Best Regards,
J.
PATCH 1/1 arm: Kirkwood: Basic SOCs support
Quoted 9 lines
-----Original Message-----
From: Jean-Christophe PLAGNIOL-VILLARD [mailto:plagnioj at jcrosoft.com]
Sent: Sunday, June 07, 2009 5:27 PM
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Manas Saksena; Ronen Shitrit; Nicolas Pitre; Ashish Karkare; Prabhanjan Sarnaik; Lennert Buijtenhek
Subject: Re: [U-Boot] [PATCH v1] arm: Kirkwood: Basic SOCs support
Quoted 6 lines
Quoted 3 lines · Prafulla Wadaskar
Kirkwood family controllers are highly integrated SOCs based on Feroceon-88FR131/Sheeva-88SV131/arm926ejs cpu core.
applied to arm/next
Thanks Jean.
Regards..
Prafulla . .
PATCH 1/1 arm: generic cache.h for ARM architectures
In reply to Prafulla WadaskarHi Jean
Thanks for accepting my earlier patch "arch_misc_init support for ARM architectures"
Can you please re-think for this patch too.
This patch is nothing but outcome of our earlier discussion/abstraction to create Generic Cache header for ARM
Also kirkwood Soc support patches are almost done (I think so :-) ) Kirkwood users are very keen to use them right from next release
How I can assist you to get them through?
Shall I resubmit them with the dependency follow-up as suggested by Wolfgang? Reference : http://lists.denx.de/pipermail/u-boot/2009-May/053509.html
Regards..
Prafulla . .
Quoted 67 lines
-----Original Message-----
From: Prafulla Wadaskar [mailto:prafulla at marvell.com]
Sent: Saturday, May 30, 2009 1:14 AM
To: u-boot at lists.denx.de
Cc: Nicolas Pitre; Manas Saksena; Lennert Buijtenhek; Prabhanjan Sarnaik; Ronen Shitrit; Ashish Karkare; Prafulla Wadaskar
Subject: [PATCH] arm: genericcache.hfor ARM architecturesThis patch is required for Kirkwood SoC support may be used by other ARM architectures
Signed-off-by Prafulla Wadaskar <[email protected]>--- include/asm-arm/cache.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 files changed, 41 insertions(+), 0 deletions(-) createmode 100644
include/asm-arm/cache.h(quoted diff) +0
-0
b/include/asm-arm/cache.hnew file mode 100644 index 0000000..205b5dainclude/asm-arm/cache.h new file +31
-0@@ -0,0 +1,41 @@ +/* +* (C) Copyright 2009 +* Marvell Semiconductor <www.marvell.com> +* Written-by: Prafulla Wadaskar <[email protected]> +* +* 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., 51 Franklin Street, Fifth Floor, Boston, +* MA 02110-1301 USA +*/ + +#ifndef _ASM_CACHE_H +#define _ASM_CACHE_H + +#include <asm/system.h> + +/* + * Invalidate L2 Cache using co-proc instruction */ staticinline void
include/asm-arm/cache.h new file +8
-1+invalidate_l2_cache (void) { +unsigned int val=0 ; + + asmvolatile ("mcr p15, 1, %0, c15, c11, 0 @ invl l2 cache" + : :"r" (val) :"cc" ); +isb (); +} +#endif /* _ASM_CACHE_H */ --1.5.3.3
Jean-Christophe PLAGNIOL-VILLARD
AppliedPATCH 1/1 arm: generic cache.h for ARM architectures
In reply to Prafulla WadaskarQuoted 5 lines · Prafulla Wadaskar
This patch is required for Kirkwood SoC support
may be used by other ARM architecturesSigned-off-by Prafulla Wadaskar <[email protected]>---
applied to arm/next
Best Regards,
J.
PATCH 1/1 cpu_misc_init support for ARM architectures
In reply to Prafulla WadaskarDear Prafulla Wadaskar,
Quoted 2 lines · In message <[email protected]> you wrote:
This patch is required for Kirkwood support
may be used by other ARM architectures
I see some (8 ?) patches posted as follow-up - are these supposed to be a series, i. e. do they in any way depend on each other, or need to be applied in a specific order? If so, then please post as numbered patches.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de To the systems programmer, users and applications serve only to provide a test load.