kirkwood: Rename dns325 to dnskw
PATCH 1/4 kirkwood: Rename dns325 to dnskw
So we can re-use DNS-325 configuration for the DNS-320 without things getting confusing, rename all common parts from dns325 to dnskw, and use a config option to configure DNS-325 specifics.
Signed-off-by Jamie Lentin <[email protected]>
Cc prafulla at marvell.com
Cc albert.u.boot at aribaud.net
--- board/d-link/dns325/Makefile | 13 --- board/d-link/dns325/dns325.c | 132 ----------------------- board/d-link/dns325/dns325.h | 32 ------ board/d-link/dns325/kwbimage.cfg | 192 --------------------------------- board/d-link/dnskw/Makefile | 13 +++ board/d-link/dnskw/dnskw.c | 132 +++++++++++++++++++++++ board/d-link/dnskw/dnskw.h | 36 +++++++ board/d-link/dnskw/kwbimage.dns325.cfg | 192 +++++++++++++++++++++++++++++++++ boards.cfg | 2 +- include/configs/dns325.h | 170 ----------------------------- include/configs/dnskw.h | 175 ++++++++++++++++++++++++++++++ 11 files changed, 549 insertions(+), 540 deletions(-) delete mode 100644 board/d-link/dns325/Makefile delete mode 100644 board/d-link/dns325/dns325.c delete mode 100644 board/d-link/dns325/dns325.h delete mode 100644 board/d-link/dns325/kwbimage.cfg create mode 100644 board/d-link/dnskw/Makefile create mode 100644 board/d-link/dnskw/dnskw.c create mode 100644 board/d-link/dnskw/dnskw.h create mode 100644 board/d-link/dnskw/kwbimage.dns325.cfg delete mode 100644 include/configs/dns325.h create mode 100644 include/configs/dnskw.h
board/d-link/dns325/Makefile deleted +0 -13
@@ -1,13 +0,0 @@ -# -# Copyright (C) 2011 -# Stefan Herbrechtsmeier <[email protected]> -# -# Based on Kirkwood support: -# (C) Copyright 2009 -# Marvell Semiconductor <www.marvell.com> -# Written-by: Prafulla Wadaskar <[email protected]> -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y := dns325.o
board/d-link/dns325/dns325.c deleted +0 -132
132 lines not on this page · raw message
board/d-link/dns325/dns325.h deleted +0 -32
@@ -1,32 +0,0 @@ -/* -* Copyright (C) 2011 -* Stefan Herbrechtsmeier <[email protected]> -* -* Based on Kirkwood support: -* (C) Copyright 2009 -* Marvell Semiconductor <www.marvell.com> -* Written-by: Prafulla Wadaskar <[email protected]> -* -* SPDX-License-Identifier: GPL-2.0+ -*/ - -#ifndef __DNS325_H -#define __DNS325_H - -/* GPIO configuration */ -#define DNS325_OE_LOW 0x00000000 -#define DNS325_OE_HIGH 0x00039604 -#define DNS325_OE_VAL_LOW 0x38000000/* disable leds */ -#define DNS325_OE_VAL_HIGH 0x00000800/* disable leds */ - -#define DNS325_GPIO_LED_POWER 26 -#define DNS325_GPIO_SATA0_EN 39 -#define DNS325_GPIO_SATA1_EN 40 - -/* PHY related */ -#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 /* __DNS325_H */
board/d-link/dns325/kwbimage.cfg deleted +0 -192
192 lines not on this page · raw message
board/d-link/dnskw/Makefile new file +13 -0
@@ -0,0 +1,13 @@ +# +# Copyright (C) 2011 +# Stefan Herbrechtsmeier <[email protected]> +# +# Based on Kirkwood support: +# (C) Copyright 2009 +# Marvell Semiconductor <www.marvell.com> +# Written-by: Prafulla Wadaskar <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := dnskw.o
board/d-link/dnskw/dnskw.c new file +132 -0
132 lines not on this page · raw message
board/d-link/dnskw/dnskw.h new file +36 -0
@@ -0,0 +1,36 @@ +/* +* Copyright (C) 2011 +* Stefan Herbrechtsmeier <[email protected]> +* +* Based on Kirkwood support: +* (C) Copyright 2009 +* Marvell Semiconductor <www.marvell.com> +* Written-by: Prafulla Wadaskar <[email protected]> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#ifndef __DNSKW_H +#define __DNSKW_H + +/* GPIO configuration */ +#define DNSKW_OE_LOW 0x00000000 +#define DNSKW_OE_HIGH 0x00039604 + +#define DNSKW_GPIO_LED_POWER 26 +#define DNSKW_GPIO_SATA0_EN 39 +#define DNSKW_GPIO_SATA1_EN 40 + +/* DNS-325 specific configuration */ +#ifdef CONFIG_BOARD_IS_DNS325 +#define DNSKW_OE_VAL_LOW 0x38000000/* disable leds */ +#define DNSKW_OE_VAL_HIGH 0x00000800/* disable leds */ +#endif /* CONFIG_BOARD_IS_DNS325 */ + +/* PHY related */ +#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 /* __DNSKW_H */
board/d-link/dnskw/kwbimage.dns325.cfg new file +192 -0
192 lines not on this page · raw message
boards.cfg +1 -1
@@ -168,7 +168,7 @@ Active arm arm926ejs davinci omicron calimain Active arm arm926ejs kirkwood buffalo lsxl lschlv2 lsxl:LSCHLV2 Michael Walle <[email protected]> Active arm arm926ejs kirkwood buffalo lsxl lsxhl lsxl:LSXHL Michael Walle <[email protected]> Active arm arm926ejs kirkwood cloudengines - pogo_e02 - Dave Purdy <[email protected]> -Active arm arm926ejs kirkwood d-link - dns325 - Stefan Herbrechtsmeier <[email protected]> +Active arm arm926ejs kirkwood d-link dnskw dns325 dnskw:BOARD_IS_DNS325 Stefan Herbrechtsmeier <[email protected]> Active arm arm926ejs kirkwood iomega - iconnect - Luka Perkov <[email protected]> Active arm arm926ejs kirkwood karo tk71 tk71 - - Active arm arm926ejs kirkwood keymile km_arm km_kirkwood km_kirkwood:KM_KIRKWOOD Valentin Longchamp <[email protected]>
include/configs/dns325.h deleted +0 -170
170 lines not on this page · raw message
include/configs/dnskw.h new file +175 -0
175 lines not on this page · raw message
Signature · 7 lines
2.0.0.rc0 --nextPart4865267.uKsPz0LYNz Content-Disposition: attachment; filename="0002-kirkwood-Add-support-for-the-D-Link-DNS-320.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-diff; charset="utf-8"; name="0002-kirkwood-Add-support-for-the-D-Link-DNS-320.patch"