Skip to contentSkip to conversation

board: Add support for B&R KWB Motherboard

PATCH Superseded Hannes Petermaier 3 participants 5 messages Feb 5, 2014 – Feb 21, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 board: Add support for B&R KWB Motherboard

Adds support for Bernecker & Rainer Industrieelektronik GmbH KWB Motherboard, using TI's AM3352 SoC.

Most of code is derived from TI's AM335x_EVM

Cc trini at ti.com
---
 board/BuR/bur_kwb/Makefile       |   16 ++
 board/BuR/bur_kwb/am335xScreen.c |  548 ++++++++++++++++++++++++++++++++++++++
 board/BuR/bur_kwb/am335xScreen.h |   45 ++++
 board/BuR/bur_kwb/board.c        |  522 ++++++++++++++++++++++++++++++++++++
 board/BuR/bur_kwb/board.h        |   18 ++
 board/BuR/bur_kwb/mux.c          |  213 +++++++++++++++
 board/BuR/bur_kwb/u-boot.lds     |  101 +++++++
 boards.cfg                       |    1 +
 include/configs/bur_kwb.h        |  352 ++++++++++++++++++++++++
 9 files changed, 1816 insertions(+)
 create mode 100644 board/BuR/bur_kwb/Makefile
 create mode 100644 board/BuR/bur_kwb/am335xScreen.c
 create mode 100644 board/BuR/bur_kwb/am335xScreen.h
 create mode 100644 board/BuR/bur_kwb/board.c
 create mode 100644 board/BuR/bur_kwb/board.h
 create mode 100644 board/BuR/bur_kwb/mux.c
 create mode 100644 board/BuR/bur_kwb/u-boot.lds
 create mode 100644 include/configs/bur_kwb.h
board/BuR/bur_kwb/Makefile new file +16 -0
new file mode 100644
index 0000000..143708d
@@ -0,0 +1,16 @@
+#
+# Makefile
+#
+# Copyright (C) 2014 Hannes Petermaier <[email protected]> -
+# Bernecker & Rainer Industrielektronik GmbH - http://www.br-automation.com/
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+ifeq ($(CONFIG_SPL_BUILD),y)
+obj-y	:= mux.o
+endif
+ifeq ($(CONFIG_SYS_SCREEN),y)
+obj-y   += am335xScreen.o
+endif
+obj-y	+= board.o
board/BuR/bur_kwb/am335xScreen.c new file +548 -0

548 lines not on this page · raw message

board/BuR/bur_kwb/am335xScreen.h new file +45 -0

45 lines not on this page · raw message

board/BuR/bur_kwb/board.c new file +522 -0

522 lines not on this page · raw message

board/BuR/bur_kwb/board.h new file +18 -0
new file mode 100644
index 0000000..def41aa
@@ -0,0 +1,18 @@
+/*
+ * board.h
+ *
+ * BUR-KWB boards information header
+ *
+ * Copyright (C) 2013, Bernecker & Rainer Industrieelektronik GmbH -
+ * http://www.br-automation.com
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+#ifndef _BOARD_H_
+#define _BOARD_H_
+
+void enable_uart0_pin_mux(void);
+void enable_i2c0_pin_mux(void);
+void enable_board_pin_mux(void);
+#endif
board/BuR/bur_kwb/mux.c new file +213 -0

213 lines not on this page · raw message

board/BuR/bur_kwb/u-boot.lds new file +101 -0

101 lines not on this page · raw message

boards.cfg +1 -0
index 2dfd2b4..45e83ef 100644
@@ -255,6 +255,7 @@ Active  arm         armv7          am33xx      phytec          pcm051
 Active  arm         armv7          am33xx      siemens         dxr2                dxr2                                 -                                                                                                                                 Roger Meier <[email protected]>
 Active  arm         armv7          am33xx      siemens         pxm2                pxm2                                 -                                                                                                                                 Roger Meier <[email protected]>
 Active  arm         armv7          am33xx      siemens         rut                 rut                                  -                                                                                                                                 Roger Meier <[email protected]>
+Active  arm         armv7          am33xx      BuR             bur_kwb             bur_kwb                              bur_kwb:SERIAL1,CONS_INDEX=1,EMMC_BOOT                                                                                            Hannes Petermaier <[email protected]>
 Active  arm         armv7          am33xx      ti              am335x              am335x_boneblack                     am335x_evm:SERIAL1,CONS_INDEX=1,EMMC_BOOT                                                                                         Tom Rini <[email protected]>
 Active  arm         armv7          am33xx      ti              am335x              am335x_evm                           am335x_evm:SERIAL1,CONS_INDEX=1,NAND                                                                                              Tom Rini <[email protected]>
 Active  arm         armv7          am33xx      ti              am335x              am335x_evm_nor                       am335x_evm:SERIAL1,CONS_INDEX=1,NAND,NOR                                                                                          Tom Rini <[email protected]>
include/configs/bur_kwb.h new file +352 -0

352 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 board: Add support for B&R KWB Motherboard

Quoted 11 lines · Hannes Petermaier

Adds support for Bernecker & Rainer Industrieelektronik GmbH KWB Motherboard, using TI's AM3352 SoC.

Most of code is derived from TI's AM335x_EVM

Cc trini at ti.com
---
 board/BuR/bur_kwb/Makefile       |   16 ++
 board/BuR/bur_kwb/am335xScreen.c |  548 ++++++++++++++++++++++++++++++++++++++
 board/BuR/bur_kwb/am335xScreen.h |   45 ++++

Minor nit, this should be am335x_screen.[ch]

board/BuR/bur_kwb/Makefile line 16

Quoted 7 lines
board/BuR/bur_kwb/Makefile new file +7 -0
+ifeq ($(CONFIG_SPL_BUILD),y)
+obj-y	:= mux.o
+endif
+ifeq ($(CONFIG_SYS_SCREEN),y)
+obj-y   += am335xScreen.o
+endif
+obj-y	+= board.o

obj-$(CONFIG_SPL_BUILD) +=
obj-$(CONFIG_SYS_SCREEN) +=

Quoted 1 line
board/BuR/bur_kwb/am335xScreen.c +0 -0

[snip]

Quoted 1 line

+#if defined(CONFIG_SYS_SCREEN) && !defined(CONFIG_SPL_BUILD)

You shouldn't need this. It'll be discarded if unused.

board/BuR/bur_kwb/am335xScreen.c line 43

Quoted 7 lines
board/BuR/bur_kwb/am335xScreen.c +7 -0
+
+#define DEBUG
+#ifdef DEBUG
+#define DBG(...)		printf(__VA_ARGS__)
+#else
+#define DBG(...)
+#endif /* DEBUG */

We provide debug(...) already.

board/BuR/bur_kwb/am335xScreen.c line 46

Quoted 2 lines
board/BuR/bur_kwb/am335xScreen.c +2 -0
+#define		SCREEN_HMAX		1366
+#define		SCREEN_VMAX		768

For consistency, please '#define<space>' globally, thanks.

Quoted 1 line

+static const unsigned char char_tab2[257*8] = {

A comment about what this is please.

board/BuR/bur_kwb/am335xScreen.c line 371

Quoted 10 lines
board/BuR/bur_kwb/am335xScreen.c +10 -0
+static void setPix(struct screen_typ *pscr,
+		    unsigned int x, unsigned int y, unsigned int color)
+{
+	unsigned int addroffset = 0;
+
+	/* braces not for function, only for better reading by human :-) */
+	addroffset = y * (pscr->resx*4) + (x*4);
+	*(unsigned int *)(pscr->pfb+addroffset) = (color & 0x00FFFFFF);
+}
+static void outch(struct screen_typ *pscr,

Newline after functions, fix globally. Also set_pix(), etc, also fix globally.

Quoted 1 line

+++ b/board/BuR/bur_kwb/board.c

[snip]

board/BuR/bur_kwb/am335xScreen.c

Quoted 3 lines
board/BuR/bur_kwb/am335xScreen.c +3 -0
+	if (i2c_probe(TPS65217_CHIP_PM)) {
+		printf("PMIC (0x%02x) not found! skip further initalization.\n",
+		       TPS65217_CHIP_PM);

You should be able to do this with puts() since it's all constants.

board/BuR/bur_kwb/am335xScreen.c

Quoted 11 lines
board/BuR/bur_kwb/am335xScreen.c +11 -0
+	/*
+	 * Increase USB current limit to 1300mA or 1800mA and set
+	 * the MPU voltage controller as needed.
+	 */
+	if (dpll_mpu_opp100.m == MPUPLL_M_1000) {
+		usb_cur_lim = TPS65217_USB_INPUT_CUR_LIMIT_1800MA;
+		mpu_vdd = TPS65217_DCDC_VOLT_SEL_1325MV;
+	} else {
+		usb_cur_lim = TPS65217_USB_INPUT_CUR_LIMIT_1300MA;
+		mpu_vdd = TPS65217_DCDC_VOLT_SEL_1275MV;
+	}

Since you've got a tps65217 (like beaglebone) you can drop the tps65250 include earlier in the file.

Quoted 1 line

+++ b/board/BuR/bur_kwb/u-boot.lds

Since you don't support NOR, you should be able to use the generic linker script.

Quoted 1 line

+++ b/include/configs/bur_kwb.h

[snip]

board/BuR/bur_kwb/am335xScreen.c

Quoted 10 lines
board/BuR/bur_kwb/am335xScreen.c +10 -0
+#include <config_cmd_default.h>
+/* -------------------------------------------------------------------------*/
+/* -- undefinig unused features --                                          */
+/* prior defined from config_defaults.h */
+#undef	CONFIG_BOOTM_LINUX
+#undef	CONFIG_BOOTM_NETBSD
+#undef	CONFIG_BOOTM_PLAN9
+#undef	CONFIG_BOOTM_RTEMS
+#undef	CONFIG_GZIP
+#undef	CONFIG_ZLIB

Space not tab please.

Quoted 1 line

+#define CONFIG_SYS_NO_FLASH

Duplicate.

board/BuR/bur_kwb/am335xScreen.c

Quoted 2 lines
board/BuR/bur_kwb/am335xScreen.c +2 -0
+/* MMC/SD IP block */
+#if defined(CONFIG_EMMC_BOOT)

So, CONFIG_EMMC_BOOT is used in am335x_evm.h since we have to support building for a few different variants. In this case it looks like you can just drop setting EMMC_BOOT in boards.cfg and then simplify a lot of the logic in the config file too.

Quoted 5 lines

+ #define CONFIG_MMC
+ #define CONFIG_GENERIC_MMC
+ #define CONFIG_OMAP_HSMMC
+ #define CONFIG_CMD_MMC
+ #define CONFIG_SUPPORT_EMMC_BOOT

So, are you making use of 'mmc open' / 'mmc close' on this platform to work with the eMMC boot partitions today?

board/BuR/bur_kwb/am335xScreen.c

Quoted 11 lines
board/BuR/bur_kwb/am335xScreen.c +11 -0
+/*
+ * Our platforms make use of SPL to initalize the hardware (primarily
+ * memory) enough for full U-Boot to be loaded.  We also support Falcon
+ * Mode so that the Linux kernel can be booted directly from SPL
+ * instead, if desired.  We make use of the general SPL framework found
+ * under common/spl/.  Given our generally common memory map, we set a
+ * number of related defaults and sizes here.
+ */
+#define CONFIG_SPL
+#define CONFIG_SPL_FRAMEWORK
+#undef CONFIG_SPL_OS_BOOT

Just don't set CONFIG_SPL_OS_BOOT, and drop the function from board.c that you've got too.

board/BuR/bur_kwb/am335xScreen.c

Quoted 6 lines
board/BuR/bur_kwb/am335xScreen.c +6 -0
+#define CONFIG_SYS_NS16550_COM1		0x44e09000	/* Base EVM has UART0 */
+#define CONFIG_SYS_NS16550_COM2		0x48022000	/* UART1 */
+#define CONFIG_SYS_NS16550_COM3		0x48024000	/* UART2 */
+#define CONFIG_SYS_NS16550_COM4		0x481a6000	/* UART3 */
+#define CONFIG_SYS_NS16550_COM5		0x481a8000	/* UART4 */
+#define CONFIG_SYS_NS16550_COM6		0x481aa000	/* UART5 */

Do you use / care about all uarts?

And it looks like there's other parts of the config file that could be cleaned up a bit too. Perhaps you can leverage include/configs/ti_armv7_common.h ? If not, I'd really like to hear about the shortcomings there as one of the goals with it is to make adding new boards easier and have a smaller code footprint.

Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140205/5e53f258/attachment.pgp>
#2 lore raw

PATCH 1/1 board: Add support for B&R KWB Motherboard

In reply to Hannes Petermaier

Dear Hannes,

Quoted 7 lines · In message <[email protected]> you wrote:

Adds support for Bernecker & Rainer Industrieelektronik GmbH KWB Motherboard, using TI's AM3352 SoC.

Most of code is derived from TI's AM335x_EVM

Cc trini at ti.com
Quoted 8 lines
---
 board/BuR/bur_kwb/Makefile       |   16 ++
 board/BuR/bur_kwb/am335xScreen.c |  548 ++++++++++++++++++++++++++++++++++++++
 board/BuR/bur_kwb/am335xScreen.h |   45 ++++
 board/BuR/bur_kwb/board.c        |  522 ++++++++++++++++++++++++++++++++++++
 board/BuR/bur_kwb/board.h        |   18 ++
 board/BuR/bur_kwb/mux.c          |  213 +++++++++++++++
 board/BuR/bur_kwb/u-boot.lds     |  101 +++++++

See previous comments. Repeating the "bur_" part in the board directory name is redundant; I recommend to drop that.

Quoted 3 lines

+ * History
+ * =======
+ * 17.12.2013 hpm created

Please drop this. Please fix globally.

board/BuR/bur_kwb/am335xScreen.c line 43

Quoted 6 lines
board/BuR/bur_kwb/am335xScreen.c new file +6 -0
+#define DEBUG
+#ifdef DEBUG
+#define DBG(...)		printf(__VA_ARGS__)
+#else
+#define DBG(...)
+#endif /* DEBUG */

We already have debug(); please use existing standard facilities.

Quoted 1 line
board/BuR/bur_kwb/am335xScreen.c new file +1 -0
+			if ('\r' == *str) {

...

board/BuR/bur_kwb/am335xScreen.c line 395

Quoted 1 line
board/BuR/bur_kwb/am335xScreen.c new file +1 -0
+			} else if ('\n' == *str) {

Please avoid this reversed notation style. Please fix globally.

...

board/BuR/bur_kwb/am335xScreen.c line 462

Quoted 4 lines
board/BuR/bur_kwb/am335xScreen.c new file +4 -0
+}
+int drawrecticle(unsigned int x, unsigned int y,
+		 unsigned int w, unsigned int h, unsigned int color)
+{

CodingStyle says: "In source files, separate functions with one blank line." Please fix globally.

board/BuR/bur_kwb/am335xScreen.c line 467

Quoted 1 line
board/BuR/bur_kwb/am335xScreen.c new file +1 -0
+			setPix(&screen, j, i, color);

We do not allow CamelCase identifiers. Please fix globally.

Quoted 1 line

+int prints(const char *fmt, ...)

...

Quoted 1 line

+int printsxy(unsigned int x, unsigned int y, const char *fmt, ...)

etc.

BTW - are you not reinventing the wheel here? What about functions like video_drawstring(), video_putchar(), ... ?

board/BuR/bur_kwb/board.c

Quoted 4 lines

index 0000000..5a1b15f

board/BuR/bur_kwb/board.c new file +0 -0
@@ -0,0 +1,522 @@

Pretty significant parts of this file appear to be identical to code in board/BuR/bur_tseries/board.c as added by your earlier patch. Please factor out such common code into a common/ directory so it can be shared across boards.

Quoted 5 lines
board/BuR/bur_kwb/board.c new file +5 -0
+ * History
+ * =======
+ * xx.10.2013	hpm	- created, adopted from ti_am335x_evm
+ * 06.12.2013	hpm	- setting MPU_PLL to 600 MHz (as required for
+ *			  industrial)

board/BuR/bur_kwb/board.c line 29

Quoted 10 lines
board/BuR/bur_kwb/board.c new file +10 -0
+ *			- implemented simple boot-mode detection
+ *			- reduced resetpulse for USB2SD controller
+ *			  from 5ms to 1ms
+ * 10.12.2013	hpm	- switch OFF LCD-Screen within SPL-Stage
+ *			  (due to invalid 3V3 pullup resistor)
+ *			- powerUP 3V3 via I2C-Resetcontroller within SPL-Stage
+ * 16.12.2013	hpm	- V1.10: changed bootaddr of VxWorks from
+ *			  0x82000000 to 0x80100000
+ * 24.12.2013	hpm	- V1.11: added LCD-support
+ * 30.01.2014	hpm	- V2.00: ported to new U-Boot (2014) sources

As mentioned before: please drop globally!

board/BuR/bur_kwb/board.c line 421

Quoted 10 lines
board/BuR/bur_kwb/board.c new file +10 -0
+		printf("echo setting PMIC Register in the RTC.\n");
+		*(unsigned int *)0x44e3e098 = 0x1f010;
+		printf("read back PMIC Register: 0x%08x\n",
+		       *(unsigned int *)0x44e3e098);
+
+		year = *(unsigned int *)0x44e3e014;
+		mon = *(unsigned int *)0x44e3e010;
+		d   = *(unsigned int *)0x44e3e00C;
+		h   = *(unsigned int *)0x44e3e008;
+		min = *(unsigned int *)0x44e3e004;

Please use proper I/O accessors to access hardware registers, and declare a proper C struct to describe the register layout. Please fix globally.

Quoted 4 lines
board/BuR/bur_kwb/board.c new file +4 -0
+static struct cpsw_slave_data cpsw_slaves[] = {
+	{
+		.slave_reg_ofs	= 0x208,
+		.sliver_reg_ofs	= 0xd80,

...

board/BuR/bur_kwb/board.c line 455

Quoted 2 lines
board/BuR/bur_kwb/board.c new file +2 -0
+		.slave_reg_ofs	= 0x308,
+		.sliver_reg_ofs	= 0xdc0,

Would it make sense to provide symboolic names for such magic numbers?

And how about some comments to explain the actual settings?

Quoted 13 lines
board/BuR/bur_kwb/board.h new file +7 -0
new file mode 100644
index 0000000..def41aa
@@ -0,0 +1,18 @@
+/*
+ * board.h
+ *
+ * BUR-KWB boards information header
+ *
+ * Copyright (C) 2013, Bernecker & Rainer Industrieelektronik GmbH -
+ * http://www.br-automation.com

board/BuR/bur_kwb/board.h line 17

Quoted 10 lines
board/BuR/bur_kwb/board.h new file +10 -0
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+#ifndef _BOARD_H_
+#define _BOARD_H_
+
+void enable_uart0_pin_mux(void);
+void enable_i2c0_pin_mux(void);
+void enable_board_pin_mux(void);

This file appears to be identical to board/BuR/bur_tseries/board.h as added by your earlier patch. Please use a common header file instead.

Quoted 6 lines
board/BuR/bur_kwb/mux.c new file +0 -0
new file mode 100644
index 0000000..da4b9f3

board/BuR/bur_kwb/mux.c line 110

Quoted 10 lines
board/BuR/bur_kwb/mux.c new file +9 -0
@@ -0,0 +1,213 @@
 
+static struct module_pin_mux uart0_pin_mux[] = {
+	/* UART0_CTS */
+	{OFFSET(uart0_ctsn), (MODE(7) | PULLUDEN | PULLUP_EN | RXACTIVE)},
+	/* UART0_RXD */
+	{OFFSET(uart0_rxd), (MODE(0) | PULLUDEN | PULLUP_EN | RXACTIVE)},
+	/* UART0_TXD */
+	{OFFSET(uart0_txd), (MODE(0) | PULLUDEN)},
+	{-1},
+};

Again, there is lots of duplicated code. Please factor out common parts. Please fix globally.

board/BuR/bur_kwb/u-boot.lds

Quoted 5 lines
board/BuR/bur_kwb/u-boot.lds new file +0 -0
new file mode 100644
index 0000000..021f869

Not needed? Drop??

include/configs/bur_kwb.h

Quoted 5 lines
include/configs/bur_kwb.h new file +0 -0
new file mode 100644
index 0000000..66048dd

Large duplicated sections again...

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
If the facts don't fit the theory, change the facts.
                                                   -- Albert Einstein
#3 lore raw

PATCH v2 1/1 Add support for B&R KWB Motherboard

In reply to Hannes Petermaier

Adds support for Bernecker & Rainer Industrieelektronik GmbH KWB Motherboard, using TI's AM3352 SoC.

Most of code is derived from TI's AM335x_EVM

Cc trini at ti.com

---
---
Changes for v2:
- Coding Style cleanup
- using common/shared code sections of other B&R Motherboards
- common files are also included in tsereies board

 arch/arm/include/asm/arch-am33xx/cpu.h |    6 +-
 board/BuR/common/bur_common.h          |   22 +++
 board/BuR/common/common.c              |  216 ++++++++++++++++++++++++++++
 board/BuR/kwb/Makefile                 |   12 ++
 board/BuR/kwb/board.c                  |  240 ++++++++++++++++++++++++++++++++
 board/BuR/kwb/mux.c                    |  195 ++++++++++++++++++++++++++
 boards.cfg                             |    1 +
 include/configs/bur_am335x_common.h    |  197 ++++++++++++++++++++++++++
 include/configs/kwb.h                  |  128 +++++++++++++++++
 9 files changed, 1015 insertions(+), 2 deletions(-)
 create mode 100644 board/BuR/common/bur_common.h
 create mode 100644 board/BuR/common/common.c
 create mode 100644 board/BuR/kwb/Makefile
 create mode 100644 board/BuR/kwb/board.c
 create mode 100644 board/BuR/kwb/mux.c
 create mode 100644 include/configs/bur_am335x_common.h
 create mode 100644 include/configs/kwb.h
arch/arm/include/asm/arch-am33xx/cpu.h +4 -2
index 9febfa2..248dc4d 100644
@@ -171,7 +171,8 @@ struct cm_wkuppll {
 	unsigned int resv11[1];
 	unsigned int wkup_uart0ctrl;	/* offset 0xB4 */
 	unsigned int wkup_i2c0ctrl;	/* offset 0xB8 */
-	unsigned int resv12[7];
+	unsigned int wkup_adctscctrl;	/* offset 0xBC */
+	unsigned int resv12[6];
 	unsigned int divm6dpllcore;	/* offset 0xD8 */
 };
 
@@ -221,7 +222,8 @@ struct cm_perpll {
 	unsigned int tpccclkctrl;	/* offset 0xBC */
 	unsigned int dcan0clkctrl;	/* offset 0xC0 */
 	unsigned int dcan1clkctrl;	/* offset 0xC4 */
-	unsigned int resv6[2];
+	unsigned int resv6;
+	unsigned int epwmss1clkctrl;	/* offset 0xCC */
 	unsigned int emiffwclkctrl;	/* offset 0xD0 */
 	unsigned int epwmss0clkctrl;	/* offset 0xD4 */
 	unsigned int epwmss2clkctrl;	/* offset 0xD8 */
board/BuR/common/bur_common.h new file +22 -0
new file mode 100644
index 0000000..15225b0
@@ -0,0 +1,22 @@
+/*
+ * bur_comon.h
+ *
+ * common board information header for B&R boards
+ *
+ * Copyright (C) 2013 Hannes Petermaier <[email protected]>
+ * Bernecker & Rainer Industrieelektronik GmbH - http://www.br-automation.com
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+#ifndef _BUR_COMMON_H_
+#define _BUR_COMMON_H_
+
+void blink(u32 blinks, u32 intervall, u32 pin);
+void pmicsetup(u32 mpupll);
+void enable_uart0_pin_mux(void);
+void enable_i2c0_pin_mux(void);
+void enable_board_pin_mux(void);
+int board_eth_init(bd_t *bis);
+
+#endif
board/BuR/common/common.c new file +216 -0

216 lines not on this page · raw message

board/BuR/kwb/Makefile new file +12 -0
new file mode 100644
index 0000000..7b04b26
@@ -0,0 +1,12 @@
+#
+# Makefile
+#
+# Copyright (C) 2014 Hannes Petermaier <[email protected]> -
+# Bernecker & Rainer Industrielektronik GmbH - http://www.br-automation.com/
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-$(CONFIG_SPL_BUILD) += mux.o
+obj-y	+= ../common/common.o
+obj-y	+= board.o
board/BuR/kwb/board.c new file +240 -0

240 lines not on this page · raw message

board/BuR/kwb/mux.c new file +195 -0

195 lines not on this page · raw message

boards.cfg +1 -0
index 706ec96..016a94e 100644
@@ -255,6 +255,7 @@ Active  arm         armv7          am33xx      phytec          pcm051
 Active  arm         armv7          am33xx      siemens         dxr2                dxr2                                 -                                                                                                                                 Roger Meier <[email protected]>
 Active  arm         armv7          am33xx      siemens         pxm2                pxm2                                 -                                                                                                                                 Roger Meier <[email protected]>
 Active  arm         armv7          am33xx      siemens         rut                 rut                                  -                                                                                                                                 Roger Meier <[email protected]>
+Active  arm         armv7          am33xx      BuR             kwb                 kwb                                  kwb:SERIAL1,CONS_INDEX=1                                                                                                          Hannes Petermaier <[email protected]>
 Active  arm         armv7          am33xx      ti              am335x              am335x_boneblack                     am335x_evm:SERIAL1,CONS_INDEX=1,EMMC_BOOT                                                                                         Tom Rini <[email protected]>
 Active  arm         armv7          am33xx      ti              am335x              am335x_evm                           am335x_evm:SERIAL1,CONS_INDEX=1,NAND                                                                                              Tom Rini <[email protected]>
 Active  arm         armv7          am33xx      ti              am335x              am335x_evm_nor                       am335x_evm:SERIAL1,CONS_INDEX=1,NAND,NOR                                                                                          Tom Rini <[email protected]>
include/configs/bur_am335x_common.h new file +197 -0

197 lines not on this page · raw message

include/configs/kwb.h new file +128 -0

128 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#4 lore raw

PATCH v2 1/1 Add support for B&R KWB Motherboard

Quoted 7 lines · Hannes Petermaier

Adds support for Bernecker & Rainer Industrieelektronik GmbH KWB Motherboard, using TI's AM3352 SoC.

Most of code is derived from TI's AM335x_EVM

Cc trini at ti.com

Applied to u-boot-ti/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140221/2a9a0b11/attachment.pgp>