Skip to contentSkip to conversation

am33xx: add a pulldown macro to pinmux config

PATCH New Lars Poeschel 2 participants 6 messages Jan 11, 2013 – Jan 25, 2013 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 am33xx: add a pulldown macro to pinmux config

From: Lars Poeschel <[email protected]>

---
 arch/arm/include/asm/arch-am33xx/mux.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/include/asm/arch-am33xx/mux.h +2 -1
index aed6b00..460ac1c 100644
@@ -25,7 +25,8 @@
 /* PAD Control Fields */
 #define SLEWCTRL	(0x1 << 6)
 #define RXACTIVE	(0x1 << 5)
-#define PULLUP_EN	(0x1 << 4) /* Pull UP Selection */
+#define PULLDOWN_EN	(0x0 << 4) /* Pull Down Selection */
+#define PULLUP_EN	(0x1 << 4) /* Pull Up Selection */
 #define PULLUDEN	(0x0 << 3) /* Pull up enabled */
 #define PULLUDDIS	(0x1 << 3) /* Pull up disabled */
 #define MODE(val)	val	/* used for Readability */
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 2/3 pcm051: Add support for Phytec phyCORE-AM335x

From: Lars Poeschel <[email protected]>

The board is named pcm051 and has this hardware:
SOC: TI AM3359
DDR3-RAM: 2x MT41J256M8HX-15EIT:D 512MiB
ETH 1: LAN8710AI
SPI-Flash: W25Q64BVSSIG
RTC: RV-4162-C7
I2C-EEPROM: CAT32WC32
NAND: MT29F4G08_VFPGA63
PMIC: TPS65910A3
LCD

Supported:
UART 1
MMC/SD
ETH 1
USB
I2C
SPI

Not yet supported:
NAND
RTC
LCD

---
 MAINTAINERS                                 |    3 +
 arch/arm/include/asm/arch-am33xx/ddr_defs.h |   18 ++
 board/phytec/pcm051/Makefile                |   46 ++++
 board/phytec/pcm051/board.c                 |  266 ++++++++++++++++++++++++
 board/phytec/pcm051/board.h                 |   33 +++
 board/phytec/pcm051/mux.c                   |  133 ++++++++++++
 boards.cfg                                  |    1 +
 include/configs/pcm051.h                    |  300 +++++++++++++++++++++++++++
 8 files changed, 800 insertions(+)
 create mode 100644 board/phytec/pcm051/Makefile
 create mode 100644 board/phytec/pcm051/board.c
 create mode 100644 board/phytec/pcm051/board.h
 create mode 100644 board/phytec/pcm051/mux.c
 create mode 100644 include/configs/pcm051.h
MAINTAINERS +3 -0
index 28c052d..9718e08 100644
@@ -815,6 +815,9 @@ Dave Peverley <[email protected]>
 
 	omap730p2	ARM926EJS
 
+Lars Poeschel <[email protected]>
+	pcm051  	ARM ARMV7 (AM33xx Soc)
+
 Mathieu Poirier <[email protected]>
 
 	snowball	ARM ARMV7 (u8500 SoC)
arch/arm/include/asm/arch-am33xx/ddr_defs.h +18 -0
index 8e69fb6..f95b332 100644
@@ -65,6 +65,24 @@
 #define MT41J128MJT125_PHY_FIFO_WE		0x100
 #define MT41J128MJT125_IOCTRL_VALUE		0x18B
 
+/* Micron MT41J256M8HX-15E */
+#define MT41J256M8HX15E_EMIF_READ_LATENCY	0x06
+#define MT41J256M8HX15E_EMIF_TIM1		0x0888A39B
+#define MT41J256M8HX15E_EMIF_TIM2		0x26337FDA
+#define MT41J256M8HX15E_EMIF_TIM3		0x501F830F
+#define MT41J256M8HX15E_EMIF_SDCFG		0x61C04B32
+#define MT41J256M8HX15E_EMIF_SDREF		0x0000093B
+#define MT41J256M8HX15E_ZQ_CFG			0x50074BE4
+#define MT41J256M8HX15E_DLL_LOCK_DIFF		0x1
+#define MT41J256M8HX15E_RATIO			0x40
+#define MT41J256M8HX15E_INVERT_CLKOUT		0x1
+#define MT41J256M8HX15E_RD_DQS			0x3B
+#define MT41J256M8HX15E_WR_DQS			0x85
+#define MT41J256M8HX15E_PHY_WR_DATA		0xC1
+#define MT41J256M8HX15E_PHY_FIFO_WE		0x100
+#define MT41J256M8HX15E_IOCTRL_VALUE		0x18B
+
+
 /**
  * Configure SDRAM
  */
board/phytec/pcm051/Makefile new file +46 -0

46 lines not on this page · raw message

board/phytec/pcm051/board.c new file +266 -0

266 lines not on this page · raw message

board/phytec/pcm051/board.h new file +33 -0
new file mode 100644
index 0000000..c2630d7
@@ -0,0 +1,33 @@
+/*
+ * board.h
+ *
+ * Phytec phyCORE-AM335x (pcm051) boards information header
+ *
+ * Copyright (C) 2013, Lemonage Software GmbH
+ * Author Lars Poeschel <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR /PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _BOARD_H_
+#define _BOARD_H_
+
+/*
+ * We have three pin mux functions that must exist.  We must be able to enable
+ * uart0, for initial output and i2c0 to read the main EEPROM.  We then have a
+ * main pinmux function that can be overridden to enable all other pinmux that
+ * is required on the board.
+ */
+void enable_uart0_pin_mux(void);
+void enable_i2c0_pin_mux(void);
+void enable_board_pin_mux(void);
+void enable_cbmux_pin_mux(void);
+#endif
board/phytec/pcm051/mux.c new file +133 -0

133 lines not on this page · raw message

boards.cfg +1 -0
index 91504c0..f471556 100644
@@ -234,6 +234,7 @@ am335x_evm_uart2             arm         armv7       am335x              ti
 am335x_evm_uart3             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL4,CONS_INDEX=4
 am335x_evm_uart4             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL5,CONS_INDEX=5
 am335x_evm_uart5             arm         armv7       am335x              ti             am33xx      am335x_evm:SERIAL6,CONS_INDEX=6
+pcm051                       arm         armv7       pcm051              phytec         am33xx      pcm051
 highbank                     arm         armv7       highbank            -              highbank
 mx51_efikamx                 arm         armv7       mx51_efikamx        genesi         mx5		mx51_efikamx:MACH_TYPE=MACH_TYPE_MX51_EFIKAMX,IMX_CONFIG=board/genesi/mx51_efikamx/imximage_mx.cfg
 mx51_efikasb                 arm         armv7       mx51_efikamx        genesi         mx5		mx51_efikamx:MACH_TYPE=MACH_TYPE_MX51_EFIKASB,IMX_CONFIG=board/genesi/mx51_efikamx/imximage_sb.cfg
include/configs/pcm051.h new file +300 -0

300 lines not on this page · raw message

Signature · 1 line
1.7.10.4
#2 lore raw

PATCH v2 2/3 pcm051: Add support for Phytec phyCORE-AM335x

Quoted 21 lines · Lars Poeschel

From: Lars Poeschel <[email protected]>

The board is named pcm051 and has this hardware:
SOC: TI AM3359
DDR3-RAM: 2x MT41J256M8HX-15EIT:D 512MiB
ETH 1: LAN8710AI
SPI-Flash: W25Q64BVSSIG
RTC: RV-4162-C7
I2C-EEPROM: CAT32WC32
NAND: MT29F4G08_VFPGA63
PMIC: TPS65910A3
LCD

Supported:
UART 1
MMC/SD
ETH 1
USB
I2C
SPI

Quoted 6 lines

Not yet supported:
NAND
RTC
LCD

With the following added (due to another patch I pulled in)

include/configs/pcm051.h +1 -0
index 2096fcf..aa90ba9 100644
@@ -295,6 +295,7 @@
 #define CONFIG_NET_MULTI
 #define CONFIG_PHY_GIGE
 #define CONFIG_PHYLIB
+#define CONFIG_PHY_ADDR			0
 #define CONFIG_PHY_SMSC
 
 #endif	/* ! __CONFIG_PCM051_H */

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/20130125/13c9af9e/attachment.pgp>
#3 lore raw

PATCH v2 3/3 am335x: display msg when reading MAC from efuse

In reply to Lars Poeschel

From: Lars Poeschel <[email protected]>

When ethaddr is not set in environment the MAC address is read from efuse. The message was only printed in debug case, but this message could be of interest for the ordinary user, so printf it.

---
 board/ti/am335x/board.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/ti/am335x/board.c +1 -1
index f0eca54..ac3c999 100644
@@ -391,7 +391,7 @@ int board_eth_init(bd_t *bis)
 	uint32_t mac_hi, mac_lo;
 
 	if (!eth_getenv_enetaddr("ethaddr", mac_addr)) {
-		debug("<ethaddr> not set. Reading from E-fuse\n");
+		printf("<ethaddr> not set. Reading from E-fuse\n");
 		/* try reading mac address from efuse */
 		mac_lo = readl(&cdev->macid0l);
 		mac_hi = readl(&cdev->macid0h);
Signature · 1 line
1.7.10.4
#4 lore raw

PATCH v2 3/3 am335x: display msg when reading MAC from efuse

Quoted 7 lines · Lars Poeschel

From: Lars Poeschel <[email protected]>

When ethaddr is not set in environment the MAC address is read from efuse. The message was only printed in debug case, but this message could be of interest for the ordinary user, so printf it.

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/20130125/048475a9/attachment.pgp>
#5 lore raw

PATCH v2 1/3 am33xx: add a pulldown macro to pinmux config

In reply to Lars Poeschel
Quoted 3 lines · Lars Poeschel

From: Lars Poeschel <[email protected]>

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/20130125/ce40d06d/attachment.pgp>