Skip to contentSkip to conversation

Resubmitting support for Lairds WB boards

PATCH New Ben Whitten 2 participants 5 messages Nov 23, 2017 – Nov 30, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v2 cover Resubmitting support for Lairds WB boards

Hi,

Resubmitting the board patches based off current master branch at 16fa2eb with updates to configs.

Ben Whitten (2):
board: laird: add WB45N CPU module
board: laird: add WB50N CPU module

 arch/arm/mach-at91/Kconfig             |  14 +++
 arch/arm/mach-at91/include/mach/gpio.h |   2 +
 board/laird/wb45n/Kconfig              |  12 ++
 board/laird/wb45n/MAINTAINERS          |   6 +
 board/laird/wb45n/Makefile             |   6 +
 board/laird/wb45n/wb45n.c              | 199 +++++++++++++++++++++++++++++++
 board/laird/wb50n/Kconfig              |  12 ++
 board/laird/wb50n/MAINTAINERS          |   6 +
 board/laird/wb50n/Makefile             |   6 +
 board/laird/wb50n/wb50n.c              | 206 +++++++++++++++++++++++++++++++++
 configs/wb45n_defconfig                |  27 +++++
 configs/wb50n_defconfig                |  30 +++++
 include/configs/wb45n.h                | 161 ++++++++++++++++++++++++++
 include/configs/wb50n.h                | 139 ++++++++++++++++++++++
 14 files changed, 826 insertions(+)
 create mode 100644 board/laird/wb45n/Kconfig
 create mode 100644 board/laird/wb45n/MAINTAINERS
 create mode 100644 board/laird/wb45n/Makefile
 create mode 100644 board/laird/wb45n/wb45n.c
 create mode 100644 board/laird/wb50n/Kconfig
 create mode 100644 board/laird/wb50n/MAINTAINERS
 create mode 100644 board/laird/wb50n/Makefile
 create mode 100644 board/laird/wb50n/wb50n.c
 create mode 100644 configs/wb45n_defconfig
 create mode 100644 configs/wb50n_defconfig
 create mode 100644 include/configs/wb45n.h
 create mode 100644 include/configs/wb50n.h
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/2 board: laird: add WB45N CPU module

From: Ben Whitten <[email protected]>

This board is based on the Atmel 9x5 eval board.
Supporting the following features:
- Boot from NAND Flash
- Ethernet
- FIT
- SPL

---
Changes for v2:
- Updated to current master
- Moved some configs to kconfig

 arch/arm/mach-at91/Kconfig             |   6 +
 arch/arm/mach-at91/include/mach/gpio.h |   2 +
 board/laird/wb45n/Kconfig              |  12 ++
 board/laird/wb45n/MAINTAINERS          |   6 +
 board/laird/wb45n/Makefile             |   6 +
 board/laird/wb45n/wb45n.c              | 199 +++++++++++++++++++++++++++++++++
 configs/wb45n_defconfig                |  27 +++++
 include/configs/wb45n.h                | 161 ++++++++++++++++++++++++++
 8 files changed, 419 insertions(+)
 create mode 100644 board/laird/wb45n/Kconfig
 create mode 100644 board/laird/wb45n/MAINTAINERS
 create mode 100644 board/laird/wb45n/Makefile
 create mode 100644 board/laird/wb45n/wb45n.c
 create mode 100644 configs/wb45n_defconfig
 create mode 100644 include/configs/wb45n.h
arch/arm/mach-at91/Kconfig +6 -0
index 7e85b69..414b01b 100644
@@ -237,6 +237,11 @@ config TARGET_VINCO
 	select SAMA5D4
 	select SUPPORT_SPL
 
+config TARGET_WB45N
+	bool "Support Laird WB45N"
+	select CPU_ARM926EJS
+	select SUPPORT_SPL
+
 endchoice
 
 config SYS_SOC
@@ -271,6 +276,7 @@ source "board/ronetix/pm9g45/Kconfig"
 source "board/siemens/corvus/Kconfig"
 source "board/siemens/taurus/Kconfig"
 source "board/siemens/smartweb/Kconfig"
+source "board/laird/wb45n/Kconfig"
 
 config SPL_LDSCRIPT
 	default "arch/arm/mach-at91/arm926ejs/u-boot-spl.lds" if CPU_ARM926EJS
arch/arm/mach-at91/include/mach/gpio.h +2 -0
index df0f719..e206316 100644
@@ -219,6 +219,8 @@ static inline unsigned pin_to_mask(unsigned pin)
 	at91_set_a_periph((x - PIN_BASE) / 32,(x % 32), y)
 #define at91_set_B_periph(x, y) \
 	at91_set_b_periph((x - PIN_BASE) / 32,(x % 32), y)
+#define at91_set_gpio_deglitch(x, y) \
+	at91_set_pio_deglitch((x - PIN_BASE) / 32,(x % 32), y)
 #define at91_set_gpio_output(x, y) \
 	at91_set_pio_output((x - PIN_BASE) / 32,(x % 32), y)
 #define at91_set_gpio_input(x, y) \
board/laird/wb45n/Kconfig new file +12 -0
new file mode 100644
index 0000000..2a67337
@@ -0,0 +1,12 @@
+if TARGET_WB45N
+
+config SYS_BOARD
+	default "wb45n"
+
+config SYS_VENDOR
+	default "laird"
+
+config SYS_CONFIG_NAME
+	default "wb45n"
+
+endif
board/laird/wb45n/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..60bb563
@@ -0,0 +1,6 @@
+WB45N CPU MODULE
+M:	Ben Whitten <[email protected]>
+S:	Maintained
+F:	board/laird/wb45n/
+F:	include/configs/wb45n.h
+F:	configs/wb45n_defconfig
board/laird/wb45n/Makefile new file +6 -0
new file mode 100644
index 0000000..fc645dd
@@ -0,0 +1,6 @@
+#
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y += wb45n.o
board/laird/wb45n/wb45n.c new file +199 -0

199 lines not on this page · raw message

configs/wb45n_defconfig new file +27 -0
new file mode 100644
index 0000000..6cf41df
@@ -0,0 +1,27 @@
+CONFIG_ARM=y
+CONFIG_ARCH_AT91=y
+CONFIG_TARGET_WB45N=y
+CONFIG_SPL_GPIO_SUPPORT=y
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SPL_SERIAL_SUPPORT=y
+CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_FIT=y
+CONFIG_SYS_EXTRA_OPTIONS="AT91SAM9X5,SYS_USE_NANDFLASH"
+CONFIG_BOOTDELAY=3
+CONFIG_BOARD_EARLY_INIT_F=y
+CONFIG_SPL=y
+CONFIG_HUSH_PARSER=y
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_MEMTEST=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_FPGA is not set
+# CONFIG_CMD_LOADS is not set
+CONFIG_CMD_NAND=y
+CONFIG_CMD_NAND_TRIMFFS=y
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
+CONFIG_ENV_IS_IN_NAND=y
+CONFIG_LZMA=y
+CONFIG_OF_LIBFDT=y
include/configs/wb45n.h new file +161 -0

161 lines not on this page · raw message

Signature · 1 line
2.7.4
#2 lore raw

PATCH v2 1/2 board: laird: add WB45N CPU module

Quoted 11 lines · Ben Whitten

From: Ben Whitten <[email protected]>

This board is based on the Atmel 9x5 eval board.
Supporting the following features:
- Boot from NAND Flash
- Ethernet
- FIT
- SPL

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171130/774cc5b4/attachment.sig>
#3 lore raw

PATCH v2 2/2 board: laird: add WB50N CPU module

In reply to Ben Whitten

From: Ben Whitten <[email protected]>

This board is based on the Atmel sama5d3 eval boards. Supporting the following features:
- Boot from NAND Flash
- Ethernet
- FIT
- SPL

---
Changes for v2:
- Updated to current master
- Moved some configs to kconfig
- Removed PHY and selected in config

 arch/arm/mach-at91/Kconfig    |   8 ++
 board/laird/wb50n/Kconfig     |  12 +++
 board/laird/wb50n/MAINTAINERS |   6 ++
 board/laird/wb50n/Makefile    |   6 ++
 board/laird/wb50n/wb50n.c     | 206 ++++++++++++++++++++++++++++++++++++++++++
 configs/wb50n_defconfig       |  30 ++++++
 include/configs/wb50n.h       | 139 ++++++++++++++++++++++++++++
 7 files changed, 407 insertions(+)
 create mode 100644 board/laird/wb50n/Kconfig
 create mode 100644 board/laird/wb50n/MAINTAINERS
 create mode 100644 board/laird/wb50n/Makefile
 create mode 100644 board/laird/wb50n/wb50n.c
 create mode 100644 configs/wb50n_defconfig
 create mode 100644 include/configs/wb50n.h
arch/arm/mach-at91/Kconfig +8 -0
index 414b01b..c429648 100644
@@ -242,6 +242,13 @@ config TARGET_WB45N
 	select CPU_ARM926EJS
 	select SUPPORT_SPL
 
+config TARGET_WB50N
+	bool "Support Laird WB50N"
+	select BOARD_LATE_INIT
+	select CPU_V7
+	select SUPPORT_SPL
+	select BOARD_EARLY_INIT_F
+
 endchoice
 
 config SYS_SOC
@@ -277,6 +284,7 @@ source "board/siemens/corvus/Kconfig"
 source "board/siemens/taurus/Kconfig"
 source "board/siemens/smartweb/Kconfig"
 source "board/laird/wb45n/Kconfig"
+source "board/laird/wb50n/Kconfig"
 
 config SPL_LDSCRIPT
 	default "arch/arm/mach-at91/arm926ejs/u-boot-spl.lds" if CPU_ARM926EJS
board/laird/wb50n/Kconfig new file +12 -0
new file mode 100644
index 0000000..2e7090e
@@ -0,0 +1,12 @@
+if TARGET_WB50N
+
+config SYS_BOARD
+	default "wb50n"
+
+config SYS_VENDOR
+	default "laird"
+
+config SYS_CONFIG_NAME
+	default "wb50n"
+
+endif
board/laird/wb50n/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..3d38fc4
@@ -0,0 +1,6 @@
+WB50N CPU MODULE
+M:	Ben Whitten <[email protected]>
+S:	Maintained
+F:	board/laird/wb50n/
+F:	include/configs/wb50n.h
+F:	configs/wb50n_defconfig
board/laird/wb50n/Makefile new file +6 -0
new file mode 100644
index 0000000..d1b6cfa
@@ -0,0 +1,6 @@
+#
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y += wb50n.o
board/laird/wb50n/wb50n.c new file +206 -0

206 lines not on this page · raw message

configs/wb50n_defconfig new file +30 -0
new file mode 100644
index 0000000..1f3e41e
@@ -0,0 +1,30 @@
+CONFIG_ARM=y
+CONFIG_ARCH_AT91=y
+CONFIG_TARGET_WB50N=y
+CONFIG_SPL_GPIO_SUPPORT=y
+CONFIG_SPL_LIBCOMMON_SUPPORT=y
+CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_SPL_SERIAL_SUPPORT=y
+CONFIG_SPL_NAND_SUPPORT=y
+CONFIG_FIT=y
+CONFIG_SYS_EXTRA_OPTIONS="SAMA5D3,SYS_USE_NANDFLASH"
+CONFIG_BOOTDELAY=3
+CONFIG_SPL=y
+CONFIG_HUSH_PARSER=y
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_MEMTEST=y
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_FPGA is not set
+# CONFIG_CMD_LOADS is not set
+CONFIG_CMD_NAND=y
+CONFIG_CMD_NAND_TRIMFFS=y
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
+CONFIG_ENV_IS_IN_NAND=y
+CONFIG_PHYLIB=y
+CONFIG_PHY_MICREL=y
+CONFIG_PHY_MICREL_KSZ90X1=y
+CONFIG_NETDEVICES=y
+CONFIG_LZMA=y
+CONFIG_OF_LIBFDT=y
include/configs/wb50n.h new file +139 -0

139 lines not on this page · raw message

Signature · 1 line
2.7.4
#4 lore raw

PATCH v2 2/2 board: laird: add WB50N CPU module

Quoted 11 lines · Ben Whitten

From: Ben Whitten <[email protected]>

This board is based on the Atmel sama5d3 eval boards. Supporting the following features:
- Boot from NAND Flash
- Ethernet
- FIT
- SPL

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171130/d3da7de6/attachment.sig>