Skip to contentSkip to conversation

Add Nanobone board support

PATCH Superseded Mark Jackson 2 participants 2 messages Aug 13, 2013

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 Add Nanobone board support

NanoBone Specification:
-----------------------
CPU:
TI AM335x

Memory:
256MB DDR3
64MB NOR flash
256MB NAND flash
128KB FRAM

Ethernet:
2 x 10/100 connected to SMSC LAN8710 PHY

USB:
1 x USB2.0 Type A

I2C:
2Kbit EEPROM (Microchip 24AA02)
RTC (Maxim DS1338)
GPIO Expander (Microchip MCP23017)

Expansion connector:
6 x UART
1 x MMC/SD
1 x USB2.0

---
Changes in v3:
- Rebased on TI U-Boot

Changes in v2:
- Tweaked after comments from Tom Rini

 MAINTAINERS                       |    4 +
 board/newflow/nanobone/Makefile   |   38 +++++
 board/newflow/nanobone/board.c    |  296 +++++++++++++++++++++++++++++++++++
 board/newflow/nanobone/mux.c      |  195 +++++++++++++++++++++++
 board/newflow/nanobone/u-boot.lds |   98 ++++++++++++
 boards.cfg                        |    2 +
 include/configs/nanobone.h        |  307 +++++++++++++++++++++++++++++++++++++
 7 files changed, 940 insertions(+)
 create mode 100644 board/newflow/nanobone/Makefile
 create mode 100644 board/newflow/nanobone/board.c
 create mode 100644 board/newflow/nanobone/mux.c
 create mode 100644 board/newflow/nanobone/u-boot.lds
 create mode 100644 include/configs/nanobone.h
MAINTAINERS +4 -0
index 081cf96..4f44e8f 100644
@@ -717,6 +717,10 @@ Ilko Iliev <[email protected]>
 	PM9263		AT91SAM9263
 	PM9G45		ARM926EJS (AT91SAM9G45 SoC)
 
+Mark Jackson <[email protected]>
+
+	NANOBONE	ARM ARMV7 (AM33xx Soc)
+
 Michael Jones <[email protected]>
 
 	omap3_mvblx	ARM ARMV7 (OMAP3xx SoC)
board/newflow/nanobone/Makefile new file +38 -0
new file mode 100644
index 0000000..3dbeeda
@@ -0,0 +1,38 @@
+#
+# Makefile
+#
+# Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+include $(TOPDIR)/config.mk
+
+LIB	= $(obj)lib$(BOARD).o
+
+ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_NOR_BOOT),y)
+COBJS	:= mux.o
+endif
+
+COBJS	+= board.o
+SRCS	:= $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS	:= $(addprefix $(obj),$(COBJS))
+SOBJS	:= $(addprefix $(obj),$(SOBJS))
+
+$(LIB):	$(obj).depend $(OBJS) $(SOBJS)
+	$(call cmd_link_o_target, $(OBJS) $(SOBJS))
+
+clean:
+	rm -f $(SOBJS) $(OBJS)
+
+distclean:	clean
+	rm -f $(LIB) core *.bak $(obj).depend
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#########################################################################
board/newflow/nanobone/board.c new file +296 -0

296 lines not on this page · raw message

board/newflow/nanobone/mux.c new file +195 -0

195 lines not on this page · raw message

board/newflow/nanobone/u-boot.lds new file +98 -0

98 lines not on this page · raw message

boards.cfg +2 -0
index 211ed58..1e5ca5d 100644
@@ -252,6 +252,8 @@ am335x_evm_uart4             arm         armv7       am335x              ti
 am335x_evm_uart5             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL6,CONS_INDEX=1,NAND
 am335x_evm_usbspl            arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL1,CONS_INDEX=1,NAND,SPL_USBETH_SUPPORT
 am335x_boneblack             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL1,CONS_INDEX=1,EMMC_BOOT
+nanobone                     arm         armv7       nanobone            newflow        am33xx      nanobone:NOR_BOOT
+nanobone_sdboot              arm         armv7       nanobone            newflow        am33xx      nanobone:SD_BOOT
 ti814x_evm                   arm         armv7       ti814x              ti             am33xx
 pcm051                       arm         armv7       pcm051              phytec         am33xx      pcm051
 sama5d3xek_mmc               arm         armv7       sama5d3xek          atmel          at91        sama5d3xek:SAMA5D3,SYS_USE_MMC
include/configs/nanobone.h new file +307 -0

307 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v3 1/1 Add Nanobone board support

Quoted 1 line · Mark Jackson

+++ b/board/newflow/nanobone/board.c

[snip]

board/newflow/nanobone/board.c line 64

Quoted 3 lines
board/newflow/nanobone/board.c new file +3 -0
+#if defined(CONFIG_SPL_BUILD) || (CONFIG_NOR_BOOT)
+//static struct uart_sys *uart_base = (struct uart_sys *)DEFAULT_UART_BASE;
+#endif

Here and elsewhere, remove commented out code.

Quoted 1 line

+++ b/include/configs/nanobone.h

[snip]

Quoted 2 lines
include/configs/nanobone.h new file +2 -0
+#define CONFIG_DMA_COHERENT
+#define CONFIG_DMA_COHERENT_SIZE	(1 << 20)

[snip]

Quoted 1 line

+#define CONFIG_STACKSIZE (128 * 1024)

Unused

[snip]

include/configs/nanobone.h line 130

Quoted 3 lines
include/configs/nanobone.h new file +3 -0
+#define CONFIG_CMD_FAT
+#define CONFIG_CMD_EXT2
+#define CONFIG_CMD_EXT4

But no CONFIG_CMD_FS_GENERIC ?

include/configs/nanobone.h line 135

Quoted 4 lines

+ /* Physical Memory Map */

include/configs/nanobone.h new file +3 -0
+#define CONFIG_NR_DRAM_BANKS		1		/* 1 bank of DRAM */
+#define PHYS_DRAM_1			0x80000000	/* DRAM Bank #1 */
+#define CONFIG_MAX_RAM_BANK_SIZE	(1024 << 20)	/* 1GB */

Please just use 0x80000000 directly in later defines, or CONFIG_SYS_SDRAM_BASE in code.

[snip]

Quoted 1 line

+#define CONFIG_SPL_NET_VCI_STRING "AM335x U-Boot SPL"

I would strongly encourage "nanobone" somewhere in this string, so that you don't feed the binary for an am335x_evm.h-based board to this board. Or drop if you aren't really supporting SPL via USB or ethernet.

Quoted 2 lines
include/configs/nanobone.h new file +2 -0
+/* Unsupported features */
+#undef CONFIG_USE_IRQ

[snip]

Quoted 1 line

+#define CONFIG_BOOTP_DEFAULT

Unused.

And I realize everything but the VCI string and lack of CONFIG_CMD_FS_GENERIC is inherited from am335x_evm.h, I'm working on a series to fix that now.

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/20130813/8a4051b4/attachment.pgp>