Skip to contentSkip to conversation

initial support for pengwyn board

PATCH Superseded Lothar Felten 2 participants 2 messages Jan 29, 2014 Arm (32-bit)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 initial support for pengwyn board

---
 arch/arm/include/asm/arch-am33xx/ddr_defs.h |   16 ++
 board/silica/pengwyn/Makefile               |   13 ++
 board/silica/pengwyn/board.c                |  216 +++++++++++++++++++++
 board/silica/pengwyn/board.h                |   15 ++
 board/silica/pengwyn/mux.c                  |  107 +++++++++++
 boards.cfg                                  |    1 +
 include/configs/pengwyn.h                   |  274 +++++++++++++++++++++++++++
 7 files changed, 642 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 +216 -0

216 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 +107 -0

107 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 +274 -0

274 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 initial support for pengwyn board

Dear Lothar Felten,

Quoted 1 line · In message <[email protected]> you wrote:

First, you do not provide a commit message. When adding support for a new board, it makes sense to give some description what this boar dis, who manufactures it, which peripherals of it are supported by his port, etc.

Second, it appears this is actually version 2 of you patch. But you fail to mark this in the Subject, and there is no change log included. Please see [1] for detailed instructions what is needed.

[1]
http://www.denx.de/wiki/view/U-Boot/Patches#Sending_updated_patch_versions

board/silica/pengwyn/board.c line 84

Quoted 7 lines
board/silica/pengwyn/board.c new file +7 -0
+void am33xx_spl_board_init(void)
+{
+	/* the pengwyn board uses the TPS650250 PMIC  without I2C */
+	/* interface and will output the following fixed voltages: */
+	/* DCDC1=3V3 (IO) DCDC2=1V5 (DDR) DCDC3=1V26 (Vmpu) */
+	/* VLDO1=1V8 (IO) VLDO2=1V8(IO) */
+	/* Vcore=1V1 is fixed, generated by TPS62231 */

Please use

/*
* this style
* for all your
* multi-line
* comments only
*/

Quoted 3 lines
include/configs/pengwyn.h new file +0 -0
new file mode 100644
index 0000000..7a41151

...

Quoted 1 line

+#define V_SCLK (V_OSCK)

...

Quoted 1 line

+#define CONFIG_ENV_SIZE (0x4000)

There is no need for braces around simple values.

include/configs/pengwyn.h line 183

Quoted 6 lines
include/configs/pengwyn.h new file +6 -0
+/* SPL */
+#define CONFIG_SPL_POWER_SUPPORT
+#define CONFIG_SPL_YMODEM_SUPPORT
+
+
+

A single blank line should be sufficient.

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
Defaults are wonderful, just like fire.
                  - Larry Wall in <[email protected]>