kirkwood: add NAS62x0 board support
PATCH v6 1/1 kirkwood: add NAS62x0 board support
Add support for new boards RaidSonic ICY BOX NAS6210 and NAS6220.
Only difference between boards is number of SATA ports.
More information about the boards can be found here:
http://www.raidsonic.de/en/products/nas-systems.php?we_objectID=7036
http://www.raidsonic.de/en/products/nas-systems.php?we_objectID=7515
---
Changes from version v1:
* use tools/checkpatch.pl to locate patch errors and fix them
* add two entries in boards.cfg, one for each board
* fixed CONFIG_RESET_PHY_R
* don't define values for macros that enable features only
* remove static RAM configuration
* fix comments
* use only CONFIG_ENV_OFFSET and remove CONFIG_ENV_ADDR
* clean coding style
* add entry in MAINTAINERS file
Changes from version v2:
* use defined() in macros for board selection for robustness
Changes from version v3:
* don't use utf8 for Geralds name
* don't mix upper/lower case in kwbimage.cfg
* fix prompt
Changes from version v4:
* fix board Makefile (clean and distclean)
* use generic way to handle arch number of the board
* fix MAINTAINERS file
* move code from Marvell to raidsonic folder
* use CONFIG_MACH_TYPE
* set only necessary GPIOs
* use link instead of address for license
* add few links about board being supported for quick reference
* add previous change logs
* multiple updates to kwbimage.cfg, thank you Simon
Changes from version v5:
* remove typo from kwbimage.cfg (duplicated lines), thank you David
* clean up comments in kwbimage.cfg
MAINTAINERS | 5 + board/raidsonic/ib62x0/Makefile | 43 +++++++++ board/raidsonic/ib62x0/ib62x0.c | 79 ++++++++++++++++ board/raidsonic/ib62x0/ib62x0.h | 40 ++++++++ board/raidsonic/ib62x0/kwbimage.cfg | 169 ++++++++++++++++++++++++++++++++++ boards.cfg | 2 + include/configs/ib62x0.h | 172 +++++++++++++++++++++++++++++++++++ 7 files changed, 510 insertions(+)
MAINTAINERS +5 -0
@@ -781,6 +781,11 @@ Linus Walleij <[email protected]> integratorap various integratorcp various +Luka Perkov <[email protected]> + + ib6210 ARM926EJS + ib6220 ARM926EJS + Dave Peverley <[email protected]> omap730p2 ARM926EJS
board/raidsonic/ib62x0/Makefile new file +43 -0
43 lines not on this page · raw message
board/raidsonic/ib62x0/ib62x0.c new file +79 -0
79 lines not on this page · raw message
board/raidsonic/ib62x0/ib62x0.h new file +40 -0
@@ -0,0 +1,40 @@ +/* +* Copyright (C) 2011-2012 +* Gerald Kerma <[email protected]> +* Simon Baatz <[email protected]> +* Luka Perkov <[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, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __IB62x0_H +#define __IB62x0_H + +#define IB62x0_OE_LOW (~(1 << 22 | 1 << 24 | 1 << 25 | 1 << 27)) +#define IB62x0_OE_HIGH (~(0)) +#define IB62x0_OE_VAL_LOW 0 +#define IB62x0_OE_VAL_HIGH 0 + +/* 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 /* __IB62x0_H */
board/raidsonic/ib62x0/kwbimage.cfg new file +169 -0
169 lines not on this page · raw message
boards.cfg +2 -0
@@ -153,6 +153,8 @@ openrd_client arm arm926ejs openrd Marvell openrd_ultimate arm arm926ejs openrd Marvell kirkwood openrd:BOARD_IS_OPENRD_ULTIMATE rd6281a arm arm926ejs - Marvell kirkwood sheevaplug arm arm926ejs - Marvell kirkwood +ib_nas6210 arm arm926ejs ib62x0 raidsonic kirkwood ib62x0:BOARD_IS_IB_NAS6210 +ib_nas6220 arm arm926ejs ib62x0 raidsonic kirkwood ib62x0:BOARD_IS_IB_NAS6220 dockstar arm arm926ejs - Seagate kirkwood jadecpu arm arm926ejs jadecpu syteco mb86r0x mx25pdk arm arm926ejs mx25pdk freescale mx25 mx25pdk:IMX_CONFIG=board/freescale/mx25pdk/imximage.cfg
include/configs/ib62x0.h new file +172 -0
172 lines not on this page · raw message
PATCH v6 1/1 kirkwood: add NAS62x0 board support
Hi Luka,
Am 01.04.2012 01:17, schrieb Luka Perkov:
Quoted 4 lines
Add support for new boards RaidSonic ICY BOX NAS6210 and NAS6220.
Only difference between boards is number of SATA ports.
just realizing that you make a difference in the number of SATA ports between 6210 and 6220 here. However, the 6210 has two SATA ports as well. The second one is just realized as an eSATA port, since there is only one drive bay.
- Simon