Add support for LaCie NAS Network Space v2
Subsystems (3)
v2 cover Add support for LaCie NAS Network Space v2
This patch series adds support for Network Space v2 board and parents.
Please note that the patch "sf: disable write protection for Macronix flash" is probably not correct. I have no idea how to handle properly the SPI flash protection and any hints are welcome.
Changes since v1:
- netconsole: restore NetOurIP check
- add entries to MAINTAINERS file
- move boards from root Makefile to boards.cfg
- move MACH_TYPE definition into netspace_v2.h
- remove CONFIG_SYS_HZ redefinition
- turn PHY initialization message into debug()
Simon Guinot (6):
sf: add support for Macronix MX25L4005A
sf: disable write protection for Macronix flash
Kirkwood: allow to override CONFIG_SYS_TCLK
mv-common.h: fix DRAM banks configuration
netconsole: remove `serverip' check
Add support for Network Space v2
PATCH v2 1/6 sf: add support for Macronix MX25L4005A
--- drivers/mtd/spi/macronix.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
drivers/mtd/spi/macronix.c +8 -0
@@ -71,6 +71,14 @@ static inline struct macronix_spi_flash *to_macronix_spi_flash(struct spi_flashstatic const struct macronix_spi_flash_params macronix_spi_flash_table[] = { { + .idcode =0x2013 , + .page_size =256 , + .pages_per_sector =16 , + .sectors_per_block =16 , + .nr_blocks =8 , + .name ="MX25L4005A" , + }, + { .idcode =0x2015 , .page_size =256 , .pages_per_sector =16 ,
Signature · 1 line
1.6.3.1
PATCH v2 1/6 sf: add support for Macronix MX25L4005A
support for this part has already been merged into my sf branch. please drop this patch from your series.
-mike
PATCH v2 2/6 sf: disable write protection for Macronix flash
In reply to Simon Guinot--- drivers/mtd/spi/macronix.c | 87 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 87 insertions(+), 0 deletions(-)
drivers/mtd/spi/macronix.c +87 -0
@@ -49,6 +49,10 @@#define CMD_MX25XX_DP 0xb9/* Deep Power-down */ #define CMD_MX25XX_RES 0xab/* Release from DP, and Read Signature */ +/* Status registers */ +#define MX25XX_SR_BP (0xF << 2)/* Block Protect */ +#define MX25XX_SR_SRWP (1 << 7)/* Write Protect */ +struct macronix_spi_flash_params {u16 idcode;u16 page_size;
@@ -120,6 +124,86 @@ static const struct macronix_spi_flash_params macronix_spi_flash_table[] = { }, }; +static int macronix_write_status (struct spi_flash *flash,u8 sr) +{ +u8 cmd[2 ]; +int ret; + + ret =spi_flash_cmd (flash->spi,CMD_MX25XX_WREN ,NULL ,0 ); +if (ret <0 ) { +debug ("SF: Enabling Write failed\n" ); +return ret; + } + + cmd[0 ] =CMD_MX25XX_WRSR ; + cmd[1 ] = sr; + ret =spi_xfer (flash->spi,16 , cmd,NULL ,SPI_XFER_BEGIN ); +if (ret) { +debug ("SF: fail to write status register\n" ); +return ret; + } + +spi_xfer (flash->spi,0 ,NULL ,NULL ,SPI_XFER_END ); + + ret =spi_flash_cmd_wait_ready (flash,SPI_FLASH_PROG_TIMEOUT ); +if (ret <0 ) { +debug ("SF: write status register timed out\n" ); +return ret; + } + +return 0 ; +} + +static int macronix_read_status (struct spi_flash *flash,u8 *sr) +{ +u8 cmd =CMD_MX25XX_RDSR ; +int ret; + + ret =spi_xfer (flash->spi,8 , &cmd,NULL ,SPI_XFER_BEGIN ); +if (ret) { +debug ("SF: Failed to send command %02x: %d\n" , cmd, ret); +return ret; + } + ret =spi_xfer (flash->spi,8 ,NULL , sr,0 ); +if (ret) { +debug ("SF: fail to read status register: %d\n" , ret); +return ret; + } + +spi_xfer (flash->spi,0 ,NULL ,NULL ,SPI_XFER_END ); + +return 0 ; +} + +static int macronix_disable_protect (struct spi_flash *flash) +{ +int ret; +u8 sr; + + ret =macronix_read_status (flash, &sr); +if (ret) +return ret; + +if ((sr &MX25XX_SR_BP ) ==0 ) +return ret; + +/* Disable status register write protection. */ + sr &= ~MX25XX_SR_SRWP ; + ret =macronix_write_status (flash, sr); +if (ret) +return ret; + +/* Disable block protection. */ + sr &= ~MX25XX_SR_BP ; + ret =macronix_write_status (flash, sr); +if (ret) +return ret; + +printf ("SF: disable write protection\n" ); + +return 0 ; +} +static int macronix_write (struct spi_flash *flash,u32 offset,size_t len,const void *buf) {
@@ -223,5 +307,8 @@ struct spi_flash *spi_flash_probe_macronix(struct spi_slave *spi, u8 *idcode) * params->sectors_per_block; mcx->flash.size = mcx->flash.sector_size * params->nr_blocks; +if (macronix_disable_protect (&mcx->flash)) +printf ("SF: disable write protection failed\n" ); +return &mcx->flash; }
Signature · 1 line
1.6.3.1
PATCH v2 2/6 sf: disable write protection for Macronix flash
this needs to be rewritten to use the common spi flash code. please see the sst_unlock func for an example of how to do this. -mike
PATCH v2 2/6 sf: disable write protection for Macronix flash
In reply to Simon GuinotQuoted 120 lines
-----Original Message-----
From: Simon Guinot [mailto:sguinot at lacie.com]
Sent: Monday, May 02, 2011 2:40 AM
To: Prafulla Wadaskar; Albert ARIBAUD; Wolfgang Denk
Cc: u-boot at lists.denx.de; Simon Guinot
Subject: [PATCH v2 2/6] sf: disable write protection for Macronix flashSigned-off-by Simon Guinot <[email protected]>--- drivers/mtd/spi/macronix.c | 87 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 87 insertions(+), 0 deletions(-)drivers/mtd/spi/macronix.c +4
-0@@ -49,6 +49,10 @@#define CMD_MX25XX_DP 0xb9/* Deep Power-down */ #define CMD_MX25XX_RES 0xab/* Release from DP, and Read Signature */ +/* Status registers */ +#define MX25XX_SR_BP (0xF << 2)/* Block Protect */ +#define MX25XX_SR_SRWP (1 << 7)/* Write Protect */ +struct macronix_spi_flash_params {u16 idcode;drivers/mtd/spi/macronix.c +80
-0u16 page_size;@@ -120,6 +124,86 @@ static const struct macronix_spi_flash_params macronix_spi_flash_table[] = { }, }; +static int macronix_write_status (struct spi_flash *flash,u8 sr) +{ +u8 cmd[2 ]; +int ret; + + ret =spi_flash_cmd (flash->spi,CMD_MX25XX_WREN ,NULL ,0 ); +if (ret <0 ) { +debug ("SF: Enabling Write failed\n" ); +return ret; + } + + cmd[0 ] =CMD_MX25XX_WRSR ; + cmd[1 ] = sr; + ret =spi_xfer (flash->spi,16 , cmd,NULL ,SPI_XFER_BEGIN ); +if (ret) { +debug ("SF: fail to write status register\n" ); +return ret; + } + +spi_xfer (flash->spi,0 ,NULL ,NULL ,SPI_XFER_END ); + + ret =spi_flash_cmd_wait_ready (flash,SPI_FLASH_PROG_TIMEOUT ); +if (ret <0 ) { +debug ("SF: write status register timed out\n" ); +return ret; + } + +return 0 ; +} + +static int macronix_read_status (struct spi_flash *flash,u8 *sr) +{ +u8 cmd =CMD_MX25XX_RDSR ; +int ret; + + ret =spi_xfer (flash->spi,8 , &cmd,NULL ,SPI_XFER_BEGIN ); +if (ret) { +debug ("SF: Failed to send command %02x: %d\n" , cmd, ret); +return ret; + } + ret =spi_xfer (flash->spi,8 ,NULL , sr,0 ); +if (ret) { +debug ("SF: fail to read status register: %d\n" , ret); +return ret; + } + +spi_xfer (flash->spi,0 ,NULL ,NULL ,SPI_XFER_END ); + +return 0 ; +} + +static int macronix_disable_protect (struct spi_flash *flash) +{ +int ret; +u8 sr; + + ret =macronix_read_status (flash, &sr); +if (ret) +return ret; + +if ((sr &MX25XX_SR_BP ) ==0 ) +return ret; + +/* Disable status register write protection. */ + sr &= ~MX25XX_SR_SRWP ; + ret =macronix_write_status (flash, sr); +if (ret) +return ret; + +/* Disable block protection. */ + sr &= ~MX25XX_SR_BP ; + ret =macronix_write_status (flash, sr); +if (ret) +return ret; + +printf ("SF: disable write protection\n" ); + +return 0 ; +} +static int macronix_write (struct spi_flash *flash,u32 offset,size_t len,const void *buf){
drivers/mtd/spi/macronix.c struct spi_flash *spi_flash_probe_macronix(struct · line 313
Quoted 7 lines
drivers/mtd/spi/macronix.c +3
-0@@ -223,5 +307,8 @@ struct spi_flash *spi_flash_probe_macronix(struct spi_slave *spi, u8 *idcode) * params->sectors_per_block; mcx->flash.size = mcx->flash.sector_size * params->nr_blocks; +if (macronix_disable_protect (&mcx->flash)) +printf ("SF: disable write protection failed\n" ); +
This will forced disable the flash being written. What if some one has purposely protected certain flash sectors?
This feature should be addressed through protect CLI
Regards..
Prafulla . .
Quoted 4 lines
drivers/mtd/spi/macronix.c +0
-0return &mcx->flash;}
--
1.6.3.1
PATCH v2 2/6 sf: disable write protection for Macronix flash
Hi Prafulla,
Quoted 8 lines · Prafulla Wadaskar
Quoted 8 lines
static int macronix_write(struct
spi_flash*flash,drivers/mtd/spi/macronix.c +0
-0u32 offset, size_t len, const void *buf) {@@ -223,5 +307,8 @@ struct spi_flash *spi_flash_probe_macronix(struct spi_slave *spi, u8 *idcode) * params->sectors_per_block; mcx->flash.size = mcx->flash.sector_size * params->nr_blocks;
Quoted 5 lines
drivers/mtd/spi/macronix.c struct spi_flash *spi_flash_probe_macronix(struct spi_slave *spi, u8 *idcode) · line 312
Quoted 3 lines
drivers/mtd/spi/macronix.c +3
-0+if (macronix_disable_protect (&mcx->flash)) +printf ("SF: disable write protection failed\n" ); +This will forced disable the flash being written.
Yes, as the SST driver do. Maybe it is good enough for the Macronix driver too ?
Quoted 1 line
What if some one has purposely protected certain flash sectors?
Honestly, I don't know. Block protection for SPI flashes is not supported either by u-boot (except for SST which only disable it) nor by Linux. So, I am not sure this feature is really used.
Quoted 2 lines
This feature should be addressed through protect CLI
I could add an unlock method to the SPI flash operation structure. And then, I could bind this method to a CLI command "sf unlock"...
Do you want me to do that ?
Regards,
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110502/32c2ee99/attachment.pgp
PATCH v2 2/6 sf: disable write protection for Macronix flash
Quoted 39 lines
-----Original Message-----
From: Simon Guinot [mailto:simon.guinot at sequanux.org]
Sent: Monday, May 02, 2011 3:28 PM
To: Prafulla Wadaskar
Cc: Simon Guinot; Albert ARIBAUD; Wolfgang Denk; u-boot at lists.denx.de; Prabhanjan Sarnaik; Ashish Karkare; Mike Frysinger
Subject: Re: [U-Boot] [PATCH v2 2/6] sf: disable write protection for Macronix flashHi Prafulla,
Quoted 4 lines · Prafulla Wadaskar
drivers/mtd/spi/macronix.c struct spi_flash
Quoted 4 lines
static int macronix_write(struct
spi_flash*flash,drivers/mtd/spi/macronix.c +0
-0u32 offset, size_t len, const void *buf) {@@ -223,5 +307,8 @@ struct spi_flash*spi_flash_probe_macronix(struct
Quoted 9 lines
drivers/mtd/spi/macronix.c struct spi_flash *spi_flash_probe_macronix(struct spi_slave *spi, u8 *idcode) · line 312
Quoted 7 lines
drivers/mtd/spi/macronix.c +3
-0spi_slave *spi, u8 *idcode) * params->sectors_per_block; mcx->flash.size = mcx->flash.sector_size * params->nr_blocks; +if (macronix_disable_protect (&mcx->flash)) +printf ("SF: disable write protection failed\n" ); +This will forced disable the flash being written.
Yes, as the SST driver do. Maybe it is good enough for the Macronix driver too ?
Quoted 1 line
What if some one has purposely protected certain flash sectors?
Honestly, I don't know. Block protection for SPI flashes is not supported either by u-boot (except for SST which only disable it) nor by Linux. So, I am not sure this feature is really used.
Quoted 1 line
Quoted 6 lines
Quoted 1 line
This feature should be addressed through protect CLI
I could add an unlock method to the SPI flash operation structure. And then, I could bind this method to a CLI command "sf unlock"...
Do you want me to do that ?
Let's get Mike's opinion on this.
Regards..
Prafulla . .
PATCH v2 2/6 sf: disable write protection for Macronix flash
In reply to Prafulla WadaskarQuoted 10 lines · Prafulla Wadaskar
From: Simon Guinot [mailto:sguinot at lacie.com]
drivers/mtd/spi/macronix.c
Quoted 4 lines
drivers/mtd/spi/macronix.c +2
-0+ ? ? if (macronix_disable_protect(&mcx->flash)) + ? ? ? ? ? ? printf("SF: disable write protection failed\n");This will forced disable the flash being written. What if some one has purposely protected certain flash sectors?
This feature should be addressed through protect CLI
there is no spi flash protect api today, so until that happens, what Simon is proposing is correct
-mike
PATCH v2 3/6 Kirkwood: allow to override CONFIG_SYS_TCLK
In reply to Simon GuinotThis patch allow to override CONFIG_SYS_TCLK from board configuration files. This is needed for the Network Space v2 which use a non standard core clock frequency (166MHz instead of 200MHz for a 6281 SoC).
As a possible enhancement for 6281 and 6282 devices, TCLK could be dynamically detected by checking the Sample at Reset register bit 21.
Additionally this patch fix a typo.
--- arch/arm/include/asm/arch-kirkwood/kw88f6281.h | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)
arch/arm/include/asm/arch-kirkwood/kw88f6281.h +5 -3
@@ -27,11 +27,13 @@#ifndef _ASM_ARCH_KW88F6281_H#define _ASM_ARCH_KW88F6281_H -/* SOC specific definations */ +/* SOC specific definitions */ #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 */ +/* TCLK Core Clock definition */ +#ifndef CONFIG_SYS_TCLK +#define CONFIG_SYS_TCLK 200000000/* 200MHz */ +#endif #endif /* _ASM_ARCH_KW88F6281_H */
Signature · 1 line
1.6.3.1
PATCH v2 3/6 Kirkwood: allow to override CONFIG_SYS_TCLK
Quoted 35 lines
-----Original Message-----
From: Simon Guinot [mailto:sguinot at lacie.com]
Sent: Monday, May 02, 2011 2:40 AM
To: Prafulla Wadaskar; Albert ARIBAUD; Wolfgang Denk
Cc: u-boot at lists.denx.de; Simon Guinot
Subject: [PATCH v2 3/6] Kirkwood: allow to overrideCONFIG_SYS_TCLKThis patch allow to override
CONFIG_SYS_TCLKfrom board configuration files. This is needed for the Network Space v2 which use a non standard core clock frequency (166MHz instead of 200MHz for a 6281 SoC).As a possible enhancement for 6281 and 6282 devices, TCLK could be dynamically detected by checking the Sample at Reset register bit 21.
Additionally this patch fix a typo.
Signed-off-by Simon Guinot <[email protected]>--- arch/arm/include/asm/arch-kirkwood/kw88f6281.h | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-)arch/arm/include/asm/arch-kirkwood/kw88f6281.h +1
-1@@ -27,11 +27,13 @@#ifndef _ASM_ARCH_KW88F6281_H#define _ASM_ARCH_KW88F6281_H -/* SOC specific definations */ +/* SOC specific definitions */ #define KW88F6281_REGS_PHYS_BASE 0xf1000000
arch/arm/include/asm/arch-kirkwood/kw88f6281.h line 39
Quoted 10 lines
arch/arm/include/asm/arch-kirkwood/kw88f6281.h +4
-2#define KW_REGS_PHY_BASE KW88F6281_REGS_PHYS_BASE -/* TCLK Core Clock defination*/ -#define CONFIG_SYS_TCLK 200000000/* 200MHz */ +/* TCLK Core Clock definition */ +#ifndef CONFIG_SYS_TCLK +#define CONFIG_SYS_TCLK 200000000/* 200MHz */ +#endif #endif /* _ASM_ARCH_KW88F6281_H */
Regards..
Prafulla . .
Quoted 2 lines
--
1.6.3.1
PATCH v2 4/6 mv-common.h: fix DRAM banks configuration
In reply to Simon GuinotThe asm/arch/config.h header define CONFIG_NR_DRAM_BANKS_MAX, which is needed to configure DRAM banks.
This patch move the asm/arch/config.h header inclusion above the DRAM banks configuration.
--- include/configs/mv-common.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
include/configs/mv-common.h +3 -3
@@ -113,6 +113,9 @@#define CONFIG_SYS_RESET_ADDRESS 0xffff0000/* Rst Vector Adr */ #define CONFIG_SYS_MAXARGS 16/* max number of command args */ +/* ====> Include platform Common Definations */ +#include <asm/arch/config.h> +/* * DRAM Banks configuration, Custom config can be done in <board>.h */
@@ -124,9 +127,6 @@#endif #endif /* CONFIG_NR_DRAM_BANKS */ -/* ====> Include platform Common Definations */ -#include <asm/arch/config.h> -/* ====> Include driver Common Definations */ /* * Common NAND configuration
Signature · 1 line
1.6.3.1
PATCH v2 4/6 mv-common.h: fix DRAM banks configuration
Dear Simon Guinot,
Quoted 10 lines · In message <[email protected]> you wrote:
The
asm/arch/config.hheader defineCONFIG_NR_DRAM_BANKS_MAX, which is needed to configure DRAM banks.This patch move the
asm/arch/config.hheader inclusion above the DRAM banks configuration.Signed-off-by Simon Guinot <[email protected]>--- include/configs/mv-common.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
...
Quoted 1 line
+/* ====> Include platform Common Definations */
"Definitions", please.
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 Military secrets are the most fleeting of all. -- Spock, "The Enterprise Incident", stardate 5027.4
PATCH v2 5/6 netconsole: remove `serverip' check
In reply to Simon GuinotNetconsole use the environment variable ncip' to configure the destination IP. serverip' don't need to be defined.
--- net/net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/net.c +1 -1
@@ -1718,7 +1718,6 @@ static int net_check_prereq (proto_t protocol)#if defined(CONFIG_CMD_NFS )case NFS :#endif -case NETCONS :case TFTP :if (NetServerIP ==0 ) {puts ("*** ERROR: `serverip' not set\n" );
@@ -1729,6 +1728,7 @@ static int net_check_prereq (proto_t protocol) common:#endif +case NETCONS :if (NetOurIP ==0 ) {puts ("*** ERROR: `ipaddr' not set\n" );return (1 );
Signature · 1 line
1.6.3.1
PATCH v2 5/6 netconsole: remove `serverip' check
Dear Simon Guinot,
Quoted 21 lines · In message <[email protected]> you wrote:
Netconsole use the environment variable
ncip' to configure the destination IP.serverip' don't need to be defined.Signed-off-by Simon Guinot <[email protected]>--- net/net.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)net/net.c +0
-1@@ -1718,7 +1718,6 @@ static int net_check_prereq (proto_t protocol)#if defined(CONFIG_CMD_NFS )case NFS :#endif -case NETCONS :case TFTP :if (NetServerIP ==0 ) {puts ("*** ERROR: `serverip' not set\n" );
net/net.c static int net_check_prereq (proto_t protocol) · line 1731
Quoted 4 lines
net/net.c +1
-0@@ -1729,6 +1728,7 @@ static int net_check_prereq (proto_t protocol) common:#endif +case NETCONS :
Please add a "/* fall through */" comment before the case label, so it is clear to the reader that this is intended behaviour.
Best regards,
Wolfgang Denk
Signature · 6 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 They're usually so busy thinking about what happens next that the only time they ever find out what is happening now is when they come to look back on it. - Terry Pratchett, _Wyrd Sisters_
PATCH v2 6/6 Add support for Network Space v2
In reply to Simon GuinotThis patch add support for the Network Space v2 board and parents. This include Network Space (Max) v2 and Internet Space v2.
--- MAINTAINERS | 6 + board/LaCie/netspace_v2/Makefile | 49 ++++++++++ board/LaCie/netspace_v2/kwbimage.cfg | 162 +++++++++++++++++++++++++++++++++ board/LaCie/netspace_v2/netspace_v2.c | 144 +++++++++++++++++++++++++++++ board/LaCie/netspace_v2/netspace_v2.h | 39 ++++++++ boards.cfg | 3 + include/configs/netspace_v2.h | 149 ++++++++++++++++++++++++++++++ 7 files changed, 552 insertions(+), 0 deletions(-) create mode 100644 board/LaCie/netspace_v2/Makefile create mode 100644 board/LaCie/netspace_v2/kwbimage.cfg create mode 100644 board/LaCie/netspace_v2/netspace_v2.c create mode 100644 board/LaCie/netspace_v2/netspace_v2.h create mode 100644 include/configs/netspace_v2.h
MAINTAINERS +6 -0
@@ -645,6 +645,12 @@ Sedji Gaouaou<[email protected]> at91sam9g10ek ARM926EJS (AT91SAM9G10 SoC) at91sam9m10g45ek ARM926EJS (AT91SAM9G45 SoC) +Simon Guinot <[email protected]> + + inetspace_v2 ARM926EJS (Kirkwood SoC) + netspace_v2 ARM926EJS (Kirkwood SoC) + netspace_max_v2 ARM926EJS (Kirkwood SoC) + Marius Gr?ger <[email protected]> impa7 ARM720T (EP7211)
board/LaCie/netspace_v2/Makefile new file +49 -0
49 lines not on this page · raw message
board/LaCie/netspace_v2/kwbimage.cfg new file +162 -0
162 lines not on this page · raw message
board/LaCie/netspace_v2/netspace_v2.c new file +144 -0
144 lines not on this page · raw message
board/LaCie/netspace_v2/netspace_v2.h new file +39 -0
@@ -0,0 +1,39 @@ +/* +* Copyright (C) 2011 Simon Guinot <[email protected]> +* +* Based on Kirkwood support: +* (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. +*/ + +#ifndef NETSPACE_V2_H +#define NETSPACE_V2_H + +#define NETSPACE_V2_OE_LOW 0x06004000 +#define NETSPACE_V2_OE_HIGH 0x00000031 +#define NETSPACE_V2_OE_VAL_LOW 0x10030000 +#define NETSPACE_V2_OE_VAL_HIGH 0x00000000 + +/* PHY related */ +#define MV88E1116_LED_FCTRL_REG 10 +#define MV88E1116_CPRSP_CR3_REG 21 +#define MV88E1116_MAC_CTRL_REG 21 +#define MV88E1116_PGADR_REG 22 +#define MV88E1116_RGMII_TXTM_CTRL (1 << 4) +#define MV88E1116_RGMII_RXTM_CTRL (1 << 5) + +#endif /* NETSPACE_V2_H */
boards.cfg +3 -0
@@ -104,6 +104,9 @@ davinci_schmoogie arm arm926ejs schmoogie davinci davinci_sffsdr arm arm926ejs sffsdr davinci davinci davinci_sonata arm arm926ejs sonata davinci davinci suen3 arm arm926ejs km_arm keymile kirkwood +inetspace_v2 arm arm926ejs netspace_v2 LaCie kirkwood netspace_v2:INETSPACE_V2 +netspace_v2 arm arm926ejs netspace_v2 LaCie kirkwood netspace_v2:NETSPACE_V2 +netspace_max_v2 arm arm926ejs netspace_v2 LaCie kirkwood netspace_v2:NETSPACE_MAX_V2 guruplug arm arm926ejs - Marvell kirkwood mv88f6281gtw_ge arm arm926ejs - Marvell kirkwood openrd_base arm arm926ejs - Marvell kirkwood
include/configs/netspace_v2.h new file +149 -0
149 lines not on this page · raw message
Signature · 1 line
1.6.3.1