Skip to contentSkip to conversation

Initial support for Silica Pengwyn board

PATCH New Lothar Felten 2 participants 3 messages Jan 31, 2014 – Feb 21, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

v4 cover Initial support for Silica Pengwyn board

Initial support for Silica Pengwyn board

 arch/arm/include/asm/arch-am33xx/ddr_defs.h |   16 +++
 board/silica/pengwyn/Makefile               |   13 ++
 board/silica/pengwyn/board.c                |  207 ++++++++++++++++++++++++++
 board/silica/pengwyn/board.h                |   15 ++
 board/silica/pengwyn/mux.c                  |  109 ++++++++++++++
 boards.cfg                                  |    1 +
 include/configs/pengwyn.h                   |  208 +++++++++++++++++++++++++++
 7 files changed, 569 insertions(+)
 create mode 100644 board/silica/pengwyn/Makefile
 create mode 100644 board/silica/pengwyn/board.c
 create mode 100644 board/silica/pengwyn/board.h
 create mode 100644 board/silica/pengwyn/mux.c
 create mode 100644 include/configs/pengwyn.h
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v4 1/1 Initial support for Silica Pengwyn board

This patch add support for the Silica Pengwyn board [1] The board is based on a TI AM3354 CPU [2]
All jumpers removed it will boot from the SDcard, the console is on UART1 accessible via the FDTI -> USB. The on board NAND flash is supported and can act as boot medium, depending on jumper settings. USB Host, USB Device and Ethernet are also provided but untested.

[1]
http://www.silica.com/product/silica-pengwyn-board.html
[2]
http://www.ti.com/product/am3354

---
Changes for v2:
- Changed license type to GPL 2.0+
- Coding style cleanup

Changes for v3:
- added board description
- Fixed more braces, comments and white space

Changed for v4:
- squashed patches
- cleaned up default env settings and indentation
- removed unused NOR flash references
- removed CONFIG_BOARD_LATE_INIT as requested by Tom Rini

---
 arch/arm/include/asm/arch-am33xx/ddr_defs.h |   16 +++
 board/silica/pengwyn/Makefile               |   13 ++
 board/silica/pengwyn/board.c                |  207 ++++++++++++++++++++++++++
 board/silica/pengwyn/board.h                |   15 ++
 board/silica/pengwyn/mux.c                  |  109 ++++++++++++++
 boards.cfg                                  |    1 +
 include/configs/pengwyn.h                   |  208 +++++++++++++++++++++++++++
 7 files changed, 569 insertions(+)
 create mode 100644 board/silica/pengwyn/Makefile
 create mode 100644 board/silica/pengwyn/board.c
 create mode 100644 board/silica/pengwyn/board.h
 create mode 100644 board/silica/pengwyn/mux.c
 create mode 100644 include/configs/pengwyn.h
arch/arm/include/asm/arch-am33xx/ddr_defs.h +16 -0
index c1777df..60cb098 100644
@@ -58,6 +58,22 @@
 #define MT41J128MJT125_PHY_FIFO_WE		0x100
 #define MT41J128MJT125_IOCTRL_VALUE		0x18B
 
+/* Micron MT41K128M16JT-187E */
+#define MT41K128MJT187E_EMIF_READ_LATENCY	0x06
+#define MT41K128MJT187E_EMIF_TIM1		0x0888B3DB
+#define MT41K128MJT187E_EMIF_TIM2		0x36337FDA
+#define MT41K128MJT187E_EMIF_TIM3		0x501F830F
+#define MT41K128MJT187E_EMIF_SDCFG		0x61C04AB2
+#define MT41K128MJT187E_EMIF_SDREF		0x0000093B
+#define MT41K128MJT187E_ZQ_CFG			0x50074BE4
+#define MT41K128MJT187E_RATIO			0x40
+#define MT41K128MJT187E_INVERT_CLKOUT		0x1
+#define MT41K128MJT187E_RD_DQS			0x3B
+#define MT41K128MJT187E_WR_DQS			0x85
+#define MT41K128MJT187E_PHY_WR_DATA		0xC1
+#define MT41K128MJT187E_PHY_FIFO_WE		0x100
+#define MT41K128MJT187E_IOCTRL_VALUE		0x18B
+
 /* Micron MT41J64M16JT-125 */
 #define MT41J64MJT125_EMIF_SDCFG		0x61C04A32
 
board/silica/pengwyn/Makefile new file +13 -0
new file mode 100644
index 0000000..c8b4f9a
@@ -0,0 +1,13 @@
+#
+# Makefile
+#
+# Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_NOR_BOOT),y)
+obj-y	:= mux.o
+endif
+
+obj-y	+= board.o
board/silica/pengwyn/board.c new file +207 -0

207 lines not on this page · raw message

board/silica/pengwyn/board.h new file +15 -0
new file mode 100644
index 0000000..05addf6
@@ -0,0 +1,15 @@
+/*
+ * board.h
+ *
+ * Copyright (C) 2013 Lothar Felten <[email protected]>
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+#ifndef _BOARD_H_
+#define _BOARD_H_
+
+void enable_uart0_pin_mux(void);
+void enable_board_pin_mux(void);
+
+#endif
board/silica/pengwyn/mux.c new file +109 -0

109 lines not on this page · raw message

boards.cfg +1 -0
index 2dfd2b4..808bfa9 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      silica          pengwyn             pengwyn                              -                                                                                                                                 Lothar Felten <[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/pengwyn.h new file +208 -0

208 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#2 lore raw

PATCH v4 1/1 Initial support for Silica Pengwyn board

Quoted 7 lines · Lothar Felten

This patch add support for the Silica Pengwyn board [1] The board is based on a TI AM3354 CPU [2]
All jumpers removed it will boot from the SDcard, the console is on UART1 accessible via the FDTI -> USB. The on board NAND flash is supported and can act as boot medium, depending on jumper settings. USB Host, USB Device and Ethernet are also provided but untested.

Quoted 6 lines

[1]
http://www.silica.com/product/silica-pengwyn-board.html
[2]
http://www.ti.com/product/am3354

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/44ab6506/attachment.pgp>