Skip to contentSkip to conversation

board: add support for Vision System's Baltos Industrial PC

PATCH In review Felipe Balbi 3 participants 3 messages May 12, 2015 – May 28, 2015 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: add support for Vision System's Baltos Industrial PC

From: Yegor Yefremov <[email protected]>

Vision Systems's Baltos is based on AM335x SoC
from Texas Instruments. This patch adds support
such Industrial PCs in mainline u-boot.

[ balbi at ti.com: updated original patch to current u-boot ]

---

This is a respin of patch available from [1]

[1] https://github.com/visionsystemsgmbh/onrisc_br_bsp/blob/master/board/vscom/u-boot-patches/2014.07/uboot-0001-Add-support-for-Baltos-system.patch

 arch/arm/Kconfig                |   6 +
 board/vscom/baltos/Kconfig      |  33 +++
 board/vscom/baltos/Makefile     |  13 ++
 board/vscom/baltos/README       |   1 +
 board/vscom/baltos/board.c      | 474 ++++++++++++++++++++++++++++++++++++++++
 board/vscom/baltos/board.h      |  90 ++++++++
 board/vscom/baltos/mux.c        | 194 ++++++++++++++++
 board/vscom/baltos/u-boot.lds   | 128 +++++++++++
 configs/am335x_baltos_defconfig |   7 +
 include/configs/baltos.h        | 346 +++++++++++++++++++++++++++++
 10 files changed, 1292 insertions(+)
 create mode 100644 board/vscom/baltos/Kconfig
 create mode 100644 board/vscom/baltos/Makefile
 create mode 100644 board/vscom/baltos/README
 create mode 100644 board/vscom/baltos/board.c
 create mode 100644 board/vscom/baltos/board.h
 create mode 100644 board/vscom/baltos/mux.c
 create mode 100644 board/vscom/baltos/u-boot.lds
 create mode 100644 configs/am335x_baltos_defconfig
 create mode 100644 include/configs/baltos.h
arch/arm/Kconfig +6 -0
index 7ed0e2052107..608c39f91843 100644
@@ -376,6 +376,11 @@ config TARGET_AM335X_EVM
 	select CPU_V7
 	select SUPPORT_SPL
 
+config TARGET_AM335X_BALTOS
+	bool "Support am335x_baltos"
+	select CPU_V7
+	select SUPPORT_SPL
+
 config TARGET_AM43XX_EVM
 	bool "Support am43xx_evm"
 	select CPU_V7
@@ -868,6 +873,7 @@ source "board/st/stv0991/Kconfig"
 source "board/sunxi/Kconfig"
 source "board/syteco/zmx25/Kconfig"
 source "board/tbs/tbs2910/Kconfig"
+source "board/vscom/baltos/Kconfig"
 source "board/ti/am335x/Kconfig"
 source "board/ti/am43xx/Kconfig"
 source "board/birdland/bav335x/Kconfig"
board/vscom/baltos/Kconfig new file +33 -0
new file mode 100644
index 000000000000..880b6f2ee5f3
@@ -0,0 +1,33 @@
+if TARGET_AM335X_BALTOS
+
+config SYS_BOARD
+	default "baltos"
+
+config SYS_VENDOR
+	default "vscom"
+
+config SYS_SOC
+	default "am33xx"
+
+config SYS_CONFIG_NAME
+	default "baltos"
+
+config CONS_INDEX
+	int "UART used for console"
+	range 1 6
+	default 1
+	help
+	  The AM335x SoC has a total of 6 UARTs (UART0 to UART5 as referenced
+	  in documentation, etc) available to it.  Depending on your specific
+	  board you may want something other than UART0.
+
+config DM
+	default y
+
+config DM_GPIO
+	default y if DM
+
+config DM_SERIAL
+	default y if DM
+
+endif
board/vscom/baltos/Makefile new file +13 -0
new file mode 100644
index 000000000000..804ac379dbd4
@@ -0,0 +1,13 @@
+#
+# Makefile
+#
+# Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+ifeq ($(CONFIG_SKIP_LOWLEVEL_INIT),)
+obj-y	:= mux.o
+endif
+
+obj-y	+= board.o
board/vscom/baltos/README new file +1 -0
new file mode 100644
index 000000000000..f744ace9972f
@@ -0,0 +1 @@
+BSP for VScom OnRISC Balios family devices, like Balios iR 5221.
board/vscom/baltos/board.c new file +474 -0

474 lines not on this page · raw message

board/vscom/baltos/board.h new file +90 -0

90 lines not on this page · raw message

board/vscom/baltos/mux.c new file +194 -0

194 lines not on this page · raw message

board/vscom/baltos/u-boot.lds new file +128 -0

128 lines not on this page · raw message

configs/am335x_baltos_defconfig new file +7 -0
new file mode 100644
index 000000000000..679b04f1984c
@@ -0,0 +1,7 @@
+CONFIG_SPL=y
+CONFIG_SPL_STACK_R=y
+CONFIG_SPL_STACK_R_ADDR=0x82000000
+CONFIG_SYS_EXTRA_OPTIONS="NAND"
+CONFIG_CONS_INDEX=1
+CONFIG_ARM=y
+CONFIG_TARGET_AM335X_BALTOS=y
include/configs/baltos.h new file +346 -0

346 lines not on this page · raw message

Signature · 1 line
2.4.0.rc3
#1 lore raw
Quoted 10 lines · Felipe Balbi

From: Yegor Yefremov <[email protected]>

Vision Systems's Baltos is based on AM335x SoC from Texas Instruments. This patch adds support such Industrial PCs in mainline u-boot.

[ balbi at ti.com: updated original patch to current u-boot ]

This needs a rebase to fix problems like:
#error "Serial is required before relocation - define CONFIG_SYS_MALLOC_F_LEN to make this work" And:
warning: implicit declaration of function 'is_valid_ether_addr' [-Wimplicit-function-declaration] (and the resulting link failure).

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150527/67a84a02/attachment.sig>
#2 lore raw
Quoted 10 lines · Tom Rini
Quoted 8 lines · Felipe Balbi

From: Yegor Yefremov <[email protected]>

Vision Systems's Baltos is based on AM335x SoC from Texas Instruments. This patch adds support such Industrial PCs in mainline u-boot.

[ balbi at ti.com: updated original patch to current u-boot ]

Quoted 8 lines
Quoted 2 lines

This needs a rebase to fix problems like:
#error "Serial is required before relocation - define CONFIG_SYS_MALLOC_F_LEN to make this work" And:
warning: implicit declaration of function 'is_valid_ether_addr' [-Wimplicit-function-declaration] (and the resulting link failure).

Will do.

Yegor