Skip to contentSkip to conversation

arm, am335x: add support for siemens boards

PATCH New Heiko Schocher 3 participants 14 messages Aug 19, 2013 – Aug 28, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v4 cover arm, am335x: add support for siemens boards

add support for the am335x based boards from siemens:

dxr2:
- DDR3 128MiB
- NAND 256MiB
- Ethernet with external Switch SMSC LAN9303
- no PMIC
- internal Watchdog
- DFU support

pxm2:
- DDR2 512 MiB
- NAND 1024 MiB
- PMIC
- PHY atheros ar803x
- USB Host
- internal Watchdog
- DFU support

rut:
- DDR3 256 MiB
- NAND 256 MiB
- PMIC
- PHY natsemi dp83630
- external Watchdog
- DFU support

- changes for v2:
- add a more detailed comment, from where the files are based
- add missing (C)
- changes for v3:
- rebased against u-boot-ti commit bb2a5d8f87fffb4fadfb205837decbd1b3e75f88
- updated with lokeshs v2 patches
- rebased arm, am33xx: add defines for gmii_sel_register bits patch, and therefore added to this patchserie
- add bd_ram_ofs to cpsw_data in board code

    needed since commit 2bf36ac638ab2db9f0295aa47064976eeebf80c1

- changes for v4:
- rebased against u-boot-ti commit 425faf74cd8189c87919f7e72a0101c684ee3b9f therefore added define CONFIG_OMAP_COMMON
- add video splash screen support
Therefor needed patches (already applied to u-boot-video.git):
[U-Boot,2/7] video, da8xx: move da8xx-fb.h to drivers/video
http://patchwork.ozlabs.org/patch/264387/
applied
[U-Boot,3/7] arm, am33xx: add clk_get prototype
http://patchwork.ozlabs.org/patch/264389/
applied
[U-Boot,4/7] video, da8xx-fb: changes for am335x usage
http://patchwork.ozlabs.org/patch/264388/
applied
[U-Boot,5/7] video, da8xx-fb: show fb addr in bdinfo
http://patchwork.ozlabs.org/patch/264392/
applied
[U-Boot,6/7] tools, bmp_logo: fix index from uint16_t to int to allow bigger logos
http://patchwork.ozlabs.org/patch/264391/
applied
[U-Boot,7/7] video: add an option to skip cfb console init
http://patchwork.ozlabs.org/patch/264390/
applied

for patch
[U-Boot,1/7] arm, am335x: add some missing registers and defines for lcd and epwm support
http://patchwork.ozlabs.org/patch/264386/

are changes requested, so added this updated patch to this patchserie

The bmp in u-boot:/tools/logos/siemens.bmp is used as logo. on the rut board:
get "DISP1.name" from factoryset, and search it in the list of known displays. If found use this display, if not use display "KWH043ST20-F01" as default.

- new patch needed for the rut board splash screen support:
video: add formike lcd panel init

- update list of needed patches

Needed patches:

- [U-Boot] arm, spl: add watchdog library to SPL
http://patchwork.ozlabs.org/patch/248503/
reposted with this patchserie
- [U-Boot] arm, arm335x: add watchdog support
http://patchwork.ozlabs.org/patch/248504/
reposted with this patchserie
- [U-Boot,v2] arm, am33xx: add defines for gmii_sel_register bits
http://patchwork.ozlabs.org/patch/248916/
added in v3 to this patchseries as rebased against u-boot-ti
- [U-Boot,v5] dfu, nand, ubi: add partubi alt settings for updating ubi partition
http://patchwork.ozlabs.org/patch/261583/

Tested patches with this patch:
- [U-Boot] dfu: Implementation of target reset after communication with dfu-util's -R switch
http://patchwork.ozlabs.org/patch/260041/
- [U-Boot] ARM: OMAP: GPIO: Fix valid range and enable usage of all GPIOs on OMAP5
http://patchwork.ozlabs.org/patch/253185/

Heiko Schocher (6):
arm, am33xx: add defines for gmii_sel_register bits
arm, am335x: add some missing registers and defines for lcd and epwm
support
arm, spl: add watchdog library to SPL
arm, am335x: add watchdog support
video: add formike lcd panel init
arm, am335x: add support for 3 siemens boards

 MAINTAINERS                                        |   5 +
 arch/arm/include/asm/arch-am33xx/cpu.h             |  74 ++-
 arch/arm/include/asm/arch-am33xx/hardware_am33xx.h |   7 +
 board/isee/igep0033/board.c                        |   6 +-
 board/phytec/pcm051/board.c                        |   2 -
 board/siemens/common/board.c                       | 171 +++++++
 board/siemens/common/factoryset.c                  | 284 ++++++++++++
 board/siemens/common/factoryset.h                  |  27 ++
 board/siemens/dxr2/Makefile                        |  49 ++
 board/siemens/dxr2/board.c                         | 241 ++++++++++
 board/siemens/dxr2/board.h                         |  69 +++
 board/siemens/dxr2/mux.c                           | 112 +++++
 board/siemens/pxm2/Makefile                        |  49 ++
 board/siemens/pxm2/board.c                         | 429 +++++++++++++++++
 board/siemens/pxm2/board.h                         |  22 +
 board/siemens/pxm2/mux.c                           | 186 ++++++++
 board/siemens/pxm2/pmic.h                          |  71 +++
 board/siemens/rut/Makefile                         |  49 ++
 board/siemens/rut/board.c                          | 432 +++++++++++++++++
 board/siemens/rut/board.h                          |  22 +
 board/siemens/rut/mux.c                            | 347 ++++++++++++++
 board/ti/am335x/board.c                            |   6 +-
 boards.cfg                                         |   3 +
 doc/README.SPL                                     |   2 +-
 drivers/video/Makefile                             |   1 +
 drivers/video/formike.c                            | 511 +++++++++++++++++++++
 drivers/watchdog/Makefile                          |   1 +
 drivers/watchdog/omap_wdt.c                        | 121 +++++
 include/configs/dxr2.h                             |  94 ++++
 include/configs/pxm2.h                             | 153 ++++++
 include/configs/rut.h                              | 156 +++++++
 include/configs/siemens-am33x-common.h             | 463 +++++++++++++++++++
 include/video.h                                    |   4 +
 spl/Makefile                                       |   1 +
 tools/logos/siemens.bmp                            | Bin 0 -> 25766 bytes
 35 Dateien ge?ndert, 4157 Zeilen hinzugef?gt(+), 13 Zeilen entfernt(-)
 create mode 100644 board/siemens/common/board.c
 create mode 100644 board/siemens/common/factoryset.c
 create mode 100644 board/siemens/common/factoryset.h
 create mode 100644 board/siemens/dxr2/Makefile
 create mode 100644 board/siemens/dxr2/board.c
 create mode 100644 board/siemens/dxr2/board.h
 create mode 100644 board/siemens/dxr2/mux.c
 create mode 100644 board/siemens/pxm2/Makefile
 create mode 100644 board/siemens/pxm2/board.c
 create mode 100644 board/siemens/pxm2/board.h
 create mode 100644 board/siemens/pxm2/mux.c
 create mode 100644 board/siemens/pxm2/pmic.h
 create mode 100644 board/siemens/rut/Makefile
 create mode 100644 board/siemens/rut/board.c
 create mode 100644 board/siemens/rut/board.h
 create mode 100644 board/siemens/rut/mux.c
 create mode 100644 drivers/video/formike.c
 create mode 100644 drivers/watchdog/omap_wdt.c
 create mode 100644 include/configs/dxr2.h
 create mode 100644 include/configs/pxm2.h
 create mode 100644 include/configs/rut.h
 create mode 100644 include/configs/siemens-am33x-common.h
 create mode 100644 tools/logos/siemens.bmp
Signature · 1 line
1.7.11.7
#1 lore raw

PATCH v4 1/6 arm, am33xx: add defines for gmii_sel_register bits

---
- changes for v2:
defined all bits used in the gmii_sel register as
Tom Rini suggested
- changes for v3:
rebased against u-boot-ti commit bb2a5d8f87fffb4fadfb205837decbd1b3e75f88
- changes for v4:
- rebased against u-boot-ti commit 425faf74cd8189c87919f7e72a0101c684ee3b9f
- add changes requested from Tom Rini:
- use <space> after "#define" instead <tab>
- rename struct name "reserved" to "resv1"
- remove GMII1_SEL_NOTUSED and GMII2_SEL_NOTUSED defines, also the GMII2_SEL_NOTUSED usage on the igep0033 board
- add "Acked-by: Mugunthan V N <[email protected]>"

---
 arch/arm/include/asm/arch-am33xx/cpu.h | 19 +++++++++++++++++++
 board/isee/igep0033/board.c            |  6 ++----
 board/phytec/pcm051/board.c            |  2 --
 board/ti/am335x/board.c                |  6 +-----

4 Dateien ge?ndert, 22 Zeilen hinzugef?gt(+), 11 Zeilen entfernt(-)

arch/arm/include/asm/arch-am33xx/cpu.h +19 -0
index 10b56e0..f77ac1e 100644
@@ -486,6 +486,25 @@ struct ctrl_dev {
 	unsigned int resv4[4];
 	unsigned int miisel;		/* offset 0x50 */
 };
+
+/* gmii_sel register defines */
+#define GMII1_SEL_MII		0x0
+#define GMII1_SEL_RMII		0x1
+#define GMII1_SEL_RGMII		0x2
+#define GMII2_SEL_MII		0x0
+#define GMII2_SEL_RMII		0x4
+#define GMII2_SEL_RGMII		0x8
+#define RGMII1_IDMODE		BIT(4)
+#define RGMII2_IDMODE		BIT(5)
+#define RMII1_IO_CLK_EN		BIT(6)
+#define RMII2_IO_CLK_EN		BIT(7)
+
+#define MII_MODE_ENABLE		(GMII1_SEL_MII | GMII2_SEL_MII)
+#define RMII_MODE_ENABLE        (GMII1_SEL_RMII | GMII2_SEL_RMII)
+#define RGMII_MODE_ENABLE	(GMII1_SEL_RGMII | GMII2_SEL_RGMII)
+#define RGMII_INT_DELAY		(RGMII1_IDMODE | RGMII2_IDMODE)
+#define RMII_CHIPCKL_ENABLE     (RMII1_IO_CLK_EN | RMII2_IO_CLK_EN)
+
 #endif /* __ASSEMBLY__ */
 #endif /* __KERNEL_STRICT_NAMES */
 
board/isee/igep0033/board.c +2 -4
index a24c22b..9e91f68 100644
@@ -27,9 +27,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-/* MII mode defines */
-#define RMII_MODE_ENABLE	0x4D
-
 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;
 
 #ifdef CONFIG_SPL_BUILD
@@ -158,7 +155,8 @@ int board_eth_init(bd_t *bis)
 			eth_setenv_enetaddr("ethaddr", mac_addr);
 	}
 
-	writel(RMII_MODE_ENABLE, &cdev->miisel);
+	writel((GMII1_SEL_RMII | RMII1_IO_CLK_EN),
+	       &cdev->miisel);
 
 	rv = cpsw_register(&cpsw_data);
 	if (rv < 0)
board/phytec/pcm051/board.c +0 -2
index f53c5bb..e40b0bd 100644
@@ -31,8 +31,6 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 /* MII mode defines */
-#define MII_MODE_ENABLE		0x0
-#define RGMII_MODE_ENABLE	0xA
 #define RMII_RGMII2_MODE_ENABLE	0x49
 
 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;
board/ti/am335x/board.c +1 -5
index 04c37e2..cc04426 100644
@@ -30,10 +30,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-/* MII mode defines */
-#define MII_MODE_ENABLE		0x0
-#define RGMII_MODE_ENABLE	0x3A
-
 /* GPIO that controls power to DDR on EVM-SK */
 #define GPIO_DDR_VTT_EN		7
 
@@ -460,7 +456,7 @@ int board_eth_init(bd_t *bis)
 		cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if =
 				PHY_INTERFACE_MODE_MII;
 	} else {
-		writel(RGMII_MODE_ENABLE, &cdev->miisel);
+		writel((RGMII_MODE_ENABLE | RGMII_INT_DELAY), &cdev->miisel);
 		cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if =
 				PHY_INTERFACE_MODE_RGMII;
 	}
Signature · 1 line
1.7.11.7
#2 lore raw

PATCH v4 1/6 arm, am33xx: add defines for gmii_sel_register bits

Quoted 2 lines · Heiko Schocher

Looks fine, but can we get this tested on the isee board too? It's a functional change there (since it was setting the NOTUSED bit that HW folks say really should not be set and will be marked as reserved in the next TRM respin). Thanks!

Quoted 120 lines

---
- changes for v2:
defined all bits used in the gmii_sel register as
Tom Rini suggested
- changes for v3:
rebased against u-boot-ti commit bb2a5d8f87fffb4fadfb205837decbd1b3e75f88
- changes for v4:
- rebased against u-boot-ti commit 425faf74cd8189c87919f7e72a0101c684ee3b9f
- add changes requested from Tom Rini:
- use <space> after "#define" instead <tab>
- rename struct name "reserved" to "resv1"
- remove GMII1_SEL_NOTUSED and GMII2_SEL_NOTUSED defines, also the GMII2_SEL_NOTUSED usage on the igep0033 board
- add "Acked-by: Mugunthan V N <[email protected]>"

---
 arch/arm/include/asm/arch-am33xx/cpu.h | 19 +++++++++++++++++++
 board/isee/igep0033/board.c            |  6 ++----
 board/phytec/pcm051/board.c            |  2 --
 board/ti/am335x/board.c                |  6 +-----

4 Dateien ge??ndert, 22 Zeilen hinzugef??gt(+), 11 Zeilen entfernt(-)

arch/arm/include/asm/arch-am33xx/cpu.h +19 -0
index 10b56e0..f77ac1e 100644
@@ -486,6 +486,25 @@ struct ctrl_dev {
 	unsigned int resv4[4];
 	unsigned int miisel;		/* offset 0x50 */
 };
+
+/* gmii_sel register defines */
+#define GMII1_SEL_MII		0x0
+#define GMII1_SEL_RMII		0x1
+#define GMII1_SEL_RGMII		0x2
+#define GMII2_SEL_MII		0x0
+#define GMII2_SEL_RMII		0x4
+#define GMII2_SEL_RGMII		0x8
+#define RGMII1_IDMODE		BIT(4)
+#define RGMII2_IDMODE		BIT(5)
+#define RMII1_IO_CLK_EN		BIT(6)
+#define RMII2_IO_CLK_EN		BIT(7)
+
+#define MII_MODE_ENABLE		(GMII1_SEL_MII | GMII2_SEL_MII)
+#define RMII_MODE_ENABLE        (GMII1_SEL_RMII | GMII2_SEL_RMII)
+#define RGMII_MODE_ENABLE	(GMII1_SEL_RGMII | GMII2_SEL_RGMII)
+#define RGMII_INT_DELAY		(RGMII1_IDMODE | RGMII2_IDMODE)
+#define RMII_CHIPCKL_ENABLE     (RMII1_IO_CLK_EN | RMII2_IO_CLK_EN)
+
 #endif /* __ASSEMBLY__ */
 #endif /* __KERNEL_STRICT_NAMES */
 
board/isee/igep0033/board.c +2 -4
index a24c22b..9e91f68 100644
@@ -27,9 +27,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-/* MII mode defines */
-#define RMII_MODE_ENABLE	0x4D
-
 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;
 
 #ifdef CONFIG_SPL_BUILD
@@ -158,7 +155,8 @@ int board_eth_init(bd_t *bis)
 			eth_setenv_enetaddr("ethaddr", mac_addr);
 	}
 
-	writel(RMII_MODE_ENABLE, &cdev->miisel);
+	writel((GMII1_SEL_RMII | RMII1_IO_CLK_EN),
+	       &cdev->miisel);
 
 	rv = cpsw_register(&cpsw_data);
 	if (rv < 0)
board/phytec/pcm051/board.c +0 -2
index f53c5bb..e40b0bd 100644
@@ -31,8 +31,6 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 /* MII mode defines */
-#define MII_MODE_ENABLE		0x0
-#define RGMII_MODE_ENABLE	0xA
 #define RMII_RGMII2_MODE_ENABLE	0x49
 
 static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;
board/ti/am335x/board.c +1 -5
index 04c37e2..cc04426 100644
@@ -30,10 +30,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-/* MII mode defines */
-#define MII_MODE_ENABLE		0x0
-#define RGMII_MODE_ENABLE	0x3A
-
 /* GPIO that controls power to DDR on EVM-SK */
 #define GPIO_DDR_VTT_EN		7
 
@@ -460,7 +456,7 @@ int board_eth_init(bd_t *bis)
 		cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if =
 				PHY_INTERFACE_MODE_MII;
 	} else {
-		writel(RGMII_MODE_ENABLE, &cdev->miisel);
+		writel((RGMII_MODE_ENABLE | RGMII_INT_DELAY), &cdev->miisel);
 		cpsw_slaves[0].phy_if = cpsw_slaves[1].phy_if =
 				PHY_INTERFACE_MODE_RGMII;
 	}
Signature · 6 lines
1.7.11.7

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
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/20130819/ed92ac39/attachment.pgp>
#3 lore raw

PATCH v4 2/6 arm, am335x: add some missing registers and defines for lcd and epwm support

In reply to Heiko Schocher

- add missing register defines in struct cm_perpl
epwmss0clkctrl
epwmss2clkctrl
lcdcclkstctrl
- add missing register defines in struct cm_dpll
clklcdcpixelclk
- add struct pwmss_regs
- add struct pwmss_ecap_regs
- add LCD Controller base LCD_CNTL_BASE
- add PWM0 controller base PWMSS0_BASE

---
- changes for v4:
add comment from Tom Rini:
- rename "reserved" into "resv1" in struct pwmss_ecap_regs
- use <space> not <tab> after "#define"
add this patch to patchserie "arm, am335x: add support for siemens boards" -> patch marked as v4

---
 arch/arm/include/asm/arch-am33xx/cpu.h             | 35 +++++++++++++++++++++-
 arch/arm/include/asm/arch-am33xx/hardware_am33xx.h |  7 +++++

2 Dateien ge?ndert, 41 Zeilen hinzugef?gt(+), 1 Zeile entfernt(-)

arch/arm/include/asm/arch-am33xx/cpu.h +34 -1
index f77ac1e..1835c89 100644
@@ -193,7 +193,8 @@ struct cm_perpll {
 	unsigned int dcan1clkctrl;	/* offset 0xC4 */
 	unsigned int resv6[2];
 	unsigned int emiffwclkctrl;	/* offset 0xD0 */
-	unsigned int resv7[2];
+	unsigned int epwmss0clkctrl;	/* offset 0xD4 */
+	unsigned int epwmss2clkctrl;	/* offset 0xD8 */
 	unsigned int l3instrclkctrl;	/* offset 0xDC */
 	unsigned int l3clkctrl;		/* Offset 0xE0 */
 	unsigned int resv8[4];
@@ -204,6 +205,7 @@ struct cm_perpll {
 	unsigned int l4hsclkctrl;	/* offset 0x120 */
 	unsigned int resv10[8];
 	unsigned int cpswclkstctrl;	/* offset 0x144 */
+	unsigned int lcdcclkstctrl;	/* offset 0x148 */
 };
 #else
 /* Encapsulating core pll registers */
@@ -366,6 +368,8 @@ struct cm_perpll {
 struct cm_dpll {
 	unsigned int resv1[2];
 	unsigned int clktimer2clk;	/* offset 0x08 */
+	unsigned int resv2[10];
+	unsigned int clklcdcpixelclk;	/* offset 0x34 */
 };
 
 /* Control Module RTC registers */
@@ -505,6 +509,35 @@ struct ctrl_dev {
 #define RGMII_INT_DELAY		(RGMII1_IDMODE | RGMII2_IDMODE)
 #define RMII_CHIPCKL_ENABLE     (RMII1_IO_CLK_EN | RMII2_IO_CLK_EN)
 
+/* PWMSS */
+struct pwmss_regs {
+	unsigned int idver;
+	unsigned int sysconfig;
+	unsigned int clkconfig;
+	unsigned int clkstatus;
+};
+#define ECAP_CLK_EN		BIT(0)
+#define ECAP_CLK_STOP_REQ	BIT(1)
+
+struct pwmss_ecap_regs {
+	unsigned int tsctr;
+	unsigned int ctrphs;
+	unsigned int cap1;
+	unsigned int cap2;
+	unsigned int cap3;
+	unsigned int cap4;
+	unsigned int resv1[4];
+	unsigned short ecctl1;
+	unsigned short ecctl2;
+};
+
+/* Capture Control register 2 */
+#define ECTRL2_SYNCOSEL_MASK	(0x03 << 6)
+#define ECTRL2_MDSL_ECAP	BIT(9)
+#define ECTRL2_CTRSTP_FREERUN	BIT(4)
+#define ECTRL2_PLSL_LOW		BIT(10)
+#define ECTRL2_SYNC_EN		BIT(5)
+
 #endif /* __ASSEMBLY__ */
 #endif /* __KERNEL_STRICT_NAMES */
 
arch/arm/include/asm/arch-am33xx/hardware_am33xx.h +7 -0
index 8973fd8..e4231c8 100644
@@ -58,4 +58,11 @@
 #define USB0_OTG_BASE			0x47401000
 #define USB1_OTG_BASE			0x47401800
 
+/* LCD Controller */
+#define LCD_CNTL_BASE			0x4830E000
+
+/* PWMSS */
+#define PWMSS0_BASE			0x48300000
+#define AM33XX_ECAP0_BASE		0x48300100
+
 #endif /* __AM33XX_HARDWARE_AM33XX_H */
Signature · 1 line
1.7.11.7
#4 lore raw

PATCH v4 3/6 arm, spl: add watchdog library to SPL

In reply to Heiko Schocher

---
- changes for v2:
none
- changes for v3:
rebased against u-boot-ti commit bb2a5d8f87fffb4fadfb205837decbd1b3e75f88
- changes for v4:
rebased against u-boot-ti commit 425faf74cd8189c87919f7e72a0101c684ee3b9f

---
 doc/README.SPL | 2 +-
 spl/Makefile   | 1 +

2 Dateien ge?ndert, 2 Zeilen hinzugef?gt(+), 1 Zeile entfernt(-)

doc/README.SPL +1 -1
index ac9a213..312a6a6 100644
@@ -67,7 +67,7 @@ CONFIG_SPL_POST_MEM_SUPPORT (post/drivers/memory.o)
 CONFIG_SPL_NAND_LOAD (drivers/mtd/nand/nand_spl_load.o)
 CONFIG_SPL_SPI_LOAD (drivers/mtd/spi/spi_spl_load.o)
 CONFIG_SPL_RAM_DEVICE (common/spl/spl.c)
-
+CONFIG_SPL_WATCHDOG_SUPPORT (drivers/watchdog/libwatchdog.o)
 
 Normally CPU is assumed to be the same between the SPL and normal
 u-boot build.  However it is possible to specify a different CPU for
spl/Makefile +1 -0
index 28ebc96..003558c 100644
@@ -82,6 +82,7 @@ LIBS-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/libnet.o
 LIBS-$(CONFIG_SPL_ETH_SUPPORT) += drivers/net/phy/libphy.o
 LIBS-$(CONFIG_SPL_MUSB_NEW_SUPPORT) += drivers/usb/musb-new/libusb_musb-new.o
 LIBS-$(CONFIG_SPL_USBETH_SUPPORT) += drivers/usb/gadget/libusb_gadget.o
+LIBS-$(CONFIG_SPL_WATCHDOG_SUPPORT) += drivers/watchdog/libwatchdog.o
 
 ifneq ($(CONFIG_OMAP_COMMON),)
 LIBS-y += $(CPUDIR)/omap-common/libomap-common.o
Signature · 1 line
1.7.11.7
#5 lore raw

PATCH v4 4/6 arm, am335x: add watchdog support

In reply to Heiko Schocher

Add TI OMAP 16xx & 24xx/34xx 32KHz (non-secure) watchdog support.

---
- changes for v2:
- add Reviedwed-by from Tom Rini
- fixed subject
- add SPDX-License-Identifier
- changes for v3:
- add a more detailed comment, from where this file is based
- fixed SPDX-License-Identifier to GPL-2.0
- changes for v4:
rebased against u-boot-ti commit 425faf74cd8189c87919f7e72a0101c684ee3b9f

---
 arch/arm/include/asm/arch-am33xx/cpu.h |  20 ++++++
 drivers/watchdog/Makefile              |   1 +
 drivers/watchdog/omap_wdt.c            | 121 +++++++++++++++++++++++++++++++++
 3 Dateien ge?ndert, 142 Zeilen hinzugef?gt(+)
 create mode 100644 drivers/watchdog/omap_wdt.c
arch/arm/include/asm/arch-am33xx/cpu.h +20 -0
index 1835c89..73e6db8 100644
@@ -46,6 +46,26 @@
 #define PRM_RSTCTRL_RESET		0x01
 #define PRM_RSTST_WARM_RESET_MASK	0x232
 
+/*
+ * Watchdog:
+ * Using the prescaler, the OMAP watchdog could go for many
+ * months before firing.  These limits work without scaling,
+ * with the 60 second default assumed by most tools and docs.
+ */
+#define TIMER_MARGIN_MAX	(24 * 60 * 60)	/* 1 day */
+#define TIMER_MARGIN_DEFAULT	60	/* 60 secs */
+#define TIMER_MARGIN_MIN	1
+
+#define PTV			0	/* prescale */
+#define GET_WLDR_VAL(secs)	(0xffffffff - ((secs) * (32768/(1<<PTV))) + 1)
+#define WDT_WWPS_PEND_WCLR	BIT(0)
+#define WDT_WWPS_PEND_WLDR	BIT(2)
+#define WDT_WWPS_PEND_WTGR	BIT(3)
+#define WDT_WWPS_PEND_WSPR	BIT(4)
+
+#define WDT_WCLR_PRE		BIT(5)
+#define WDT_WCLR_PTV_OFF	2
+
 #ifndef __KERNEL_STRICT_NAMES
 #ifndef __ASSEMBLY__
 struct gpmc_cs {
drivers/watchdog/Makefile +1 -0
index 7e255ce..3ade624 100644
@@ -18,6 +18,7 @@ COBJS-$(CONFIG_TNETV107X_WATCHDOG) += tnetv107x_wdt.o
 COBJS-$(CONFIG_S5P)               += s5p_wdt.o
 COBJS-$(CONFIG_XILINX_TB_WATCHDOG) += xilinx_tb_wdt.o
 COBJS-$(CONFIG_BFIN_WATCHDOG)  += bfin_wdt.o
+COBJS-$(CONFIG_OMAP_WATCHDOG) += omap_wdt.o
 
 COBJS	:= $(COBJS-y)
 SRCS	:= $(COBJS:.o=.c)
drivers/watchdog/omap_wdt.c new file +121 -0

121 lines not on this page · raw message

Signature · 1 line
1.7.11.7
#6 lore raw

PATCH v4 5/6 video: add formike lcd panel init

In reply to Heiko Schocher
Cc Anatolij Gustschin <[email protected]>
Cc Tom Rini <[email protected]>

---
- changes for v4:
new patch in this patchserie, as video support added

 drivers/video/Makefile  |   1 +
 drivers/video/formike.c | 511 ++++++++++++++++++++++++++++++++++++++++++++++++
 include/video.h         |   4 +
 3 Dateien ge?ndert, 516 Zeilen hinzugef?gt(+)
 create mode 100644 drivers/video/formike.c
drivers/video/Makefile +1 -0
index f1fb26c..ede1d1a 100644
@@ -40,6 +40,7 @@ COBJS-$(CONFIG_VIDEO_SM501) += sm501.o
 COBJS-$(CONFIG_VIDEO_SMI_LYNXEM) += smiLynxEM.o videomodes.o
 COBJS-$(CONFIG_VIDEO_TEGRA) += tegra.o
 COBJS-$(CONFIG_VIDEO_VCXK) += bus_vcxk.o
+COBJS-$(CONFIG_FORMIKE) += formike.o
 
 COBJS	:= $(sort $(COBJS-y))
 SRCS	:= $(COBJS:.o=.c)
drivers/video/formike.c new file +511 -0

511 lines not on this page · raw message

include/video.h +4 -0
index f7e27f8..0ff857b 100644
@@ -63,4 +63,8 @@ void video_position_cursor(unsigned col, unsigned row);
 /* Clear the display */
 void video_clear(void);
 
+#if defined(CONFIG_FORMIKE)
+int kwh043st20_f01_spi_startup(unsigned int bus, unsigned int cs,
+	unsigned int max_hz, unsigned int spi_mode);
+#endif
 #endif
Signature · 1 line
1.7.11.7
#7 lore raw

PATCH v4 5/6 video: add formike lcd panel init

Quoted 7 lines · On Mon, 19 Aug 2013 16:39:00 +0200 Heiko Schocher <[email protected]> wrote:
Cc Anatolij Gustschin <[email protected]>
Cc Tom Rini <[email protected]>

---
- changes for v4:
new patch in this patchserie, as video support added

Quoted 5 lines
 drivers/video/Makefile  |   1 +
 drivers/video/formike.c | 511 ++++++++++++++++++++++++++++++++++++++++++++++++
 include/video.h         |   4 +
 3 Dateien ge?ndert, 516 Zeilen hinzugef?gt(+)
 create mode 100644 drivers/video/formike.c
#8 lore raw

PATCH v4 6/6 arm, am335x: add support for 3 siemens boards

In reply to Heiko Schocher

add support for the am335x based boards from siemens:

dxr2:
- DDR3 128MiB
- NAND 256MiB
- Ethernet with external Switch SMSC LAN9303
- no PMIC
- internal Watchdog
- DFU support

pxm2:
- DDR2 512 MiB
- NAND 1024 MiB
- PMIC
- PHY atheros ar803x
- USB Host
- internal Watchdog
- DFU support

rut:
- DDR3 256 MiB
- NAND 256 MiB
- PMIC
- PHY natsemi dp83630
- external Watchdog
- DFU support

---

- changes for v2:
- add a more detailed comment, from where the files are based
- add missing (C)
- changes for v3:
- rebased against u-boot-ti commit bb2a5d8f87fffb4fadfb205837decbd1b3e75f88
- updated with lokeshs v2 patches
- rebased arm, am33xx: add defines for gmii_sel_register bits patch, and therefore added to this patchserie
- add bd_ram_ofs to cpsw_data in board code

    needed since commit 2bf36ac638ab2db9f0295aa47064976eeebf80c1

- changes for v4:
- rebased against u-boot-ti commit 425faf74cd8189c87919f7e72a0101c684ee3b9f therefore added define CONFIG_OMAP_COMMON
- add video splash screen support
Therefor needed patches (already applied to u-boot-video.git):
[U-Boot,2/7] video, da8xx: move da8xx-fb.h to drivers/video
http://patchwork.ozlabs.org/patch/264387/
applied
[U-Boot,3/7] arm, am33xx: add clk_get prototype
http://patchwork.ozlabs.org/patch/264389/
applied
[U-Boot,4/7] video, da8xx-fb: changes for am335x usage
http://patchwork.ozlabs.org/patch/264388/
applied
[U-Boot,5/7] video, da8xx-fb: show fb addr in bdinfo
http://patchwork.ozlabs.org/patch/264392/
applied
[U-Boot,6/7] tools, bmp_logo: fix index from uint16_t to int to allow bigger logos
http://patchwork.ozlabs.org/patch/264391/
applied
[U-Boot,7/7] video: add an option to skip cfb console init
http://patchwork.ozlabs.org/patch/264390/
applied

for patch
[U-Boot,1/7] arm, am335x: add some missing registers and defines for lcd and epwm support
http://patchwork.ozlabs.org/patch/264386/

are changes requested, so added this updated patch to this patchserie

The bmp in u-boot:/tools/logos/siemens.bmp is used as logo. on the rut board:
get "DISP1.name" from factoryset, and search it in the list of known displays. If found use this display, if not use display "KWH043ST20-F01" as default.

- new patch needed for the rut board splash screen support:
video: add formike lcd panel init

- update list of needed patches

Needed patches:

- [U-Boot] arm, spl: add watchdog library to SPL
http://patchwork.ozlabs.org/patch/248503/
reposted with this patchserie
- [U-Boot] arm, arm335x: add watchdog support
http://patchwork.ozlabs.org/patch/248504/
reposted with this patchserie
- [U-Boot,v2] arm, am33xx: add defines for gmii_sel_register bits
http://patchwork.ozlabs.org/patch/248916/
added in v3 to this patchseries as rebased against u-boot-ti
- [U-Boot,v5] dfu, nand, ubi: add partubi alt settings for updating ubi partition
http://patchwork.ozlabs.org/patch/261583/

Tested patches with this patch:
- [U-Boot] dfu: Implementation of target reset after communication with dfu-util's -R switch
http://patchwork.ozlabs.org/patch/260041/
- [U-Boot] ARM: OMAP: GPIO: Fix valid range and enable usage of all GPIOs on OMAP5
http://patchwork.ozlabs.org/patch/253185/

---
 MAINTAINERS                            |   5 +
 board/siemens/common/board.c           | 171 ++++++++++++
 board/siemens/common/factoryset.c      | 284 ++++++++++++++++++++
 board/siemens/common/factoryset.h      |  27 ++
 board/siemens/dxr2/Makefile            |  49 ++++
 board/siemens/dxr2/board.c             | 241 +++++++++++++++++
 board/siemens/dxr2/board.h             |  69 +++++
 board/siemens/dxr2/mux.c               | 112 ++++++++
 board/siemens/pxm2/Makefile            |  49 ++++
 board/siemens/pxm2/board.c             | 429 ++++++++++++++++++++++++++++++
 board/siemens/pxm2/board.h             |  22 ++
 board/siemens/pxm2/mux.c               | 186 +++++++++++++
 board/siemens/pxm2/pmic.h              |  71 +++++
 board/siemens/rut/Makefile             |  49 ++++
 board/siemens/rut/board.c              | 432 ++++++++++++++++++++++++++++++
 board/siemens/rut/board.h              |  22 ++
 board/siemens/rut/mux.c                | 347 ++++++++++++++++++++++++
 boards.cfg                             |   3 +
 include/configs/dxr2.h                 |  94 +++++++
 include/configs/pxm2.h                 | 153 +++++++++++
 include/configs/rut.h                  | 156 +++++++++++
 include/configs/siemens-am33x-common.h | 463 +++++++++++++++++++++++++++++++++
 tools/logos/siemens.bmp                | Bin 0 -> 25766 bytes
 23 Dateien ge?ndert, 3434 Zeilen hinzugef?gt(+)
 create mode 100644 board/siemens/common/board.c
 create mode 100644 board/siemens/common/factoryset.c
 create mode 100644 board/siemens/common/factoryset.h
 create mode 100644 board/siemens/dxr2/Makefile
 create mode 100644 board/siemens/dxr2/board.c
 create mode 100644 board/siemens/dxr2/board.h
 create mode 100644 board/siemens/dxr2/mux.c
 create mode 100644 board/siemens/pxm2/Makefile
 create mode 100644 board/siemens/pxm2/board.c
 create mode 100644 board/siemens/pxm2/board.h
 create mode 100644 board/siemens/pxm2/mux.c
 create mode 100644 board/siemens/pxm2/pmic.h
 create mode 100644 board/siemens/rut/Makefile
 create mode 100644 board/siemens/rut/board.c
 create mode 100644 board/siemens/rut/board.h
 create mode 100644 board/siemens/rut/mux.c
 create mode 100644 include/configs/dxr2.h
 create mode 100644 include/configs/pxm2.h
 create mode 100644 include/configs/rut.h
 create mode 100644 include/configs/siemens-am33x-common.h
 create mode 100644 tools/logos/siemens.bmp
MAINTAINERS +5 -0
index 4033b88..8f2e9df 100644
@@ -1087,6 +1087,11 @@ Sergey Yanovich <[email protected]>
 
 	lp8x4x		xscale/pxa
 
+Roger Meier <[email protected]>
+	dxr2			ARM ARMV7 (AM335x SoC)
+	pxm2			ARM ARMV7 (AM335x SoC)
+	rut			ARM ARMV7 (AM335x SoC)
+
 -------------------------------------------------------------------------
 
 Unknown / orphaned boards:
board/siemens/common/board.c new file +171 -0

171 lines not on this page · raw message

board/siemens/common/factoryset.c new file +284 -0

284 lines not on this page · raw message

board/siemens/common/factoryset.h new file +27 -0
new file mode 100644
index 0000000..445f384
@@ -0,0 +1,27 @@
+/*
+ * Common board functions for siemens AM335X based boards
+ * (C) Copyright 2013 Siemens Schweiz AG
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+#ifndef __FACTORYSET_H
+#define __FACTORYSET_H
+
+#define MAX_STRING_LENGTH	32
+
+struct factorysetcontainer {
+	uchar mac[6];
+	int usb_vendor_id;
+	int usb_product_id;
+	int pxm50;
+#if defined(CONFIG_VIDEO)
+	unsigned char disp_name[MAX_STRING_LENGTH];
+#endif
+};
+
+int factoryset_read_eeprom(int i2c_addr);
+int factoryset_setenv(void);
+extern struct factorysetcontainer factory_dat;
+
+#endif /* __FACTORYSET_H */
board/siemens/dxr2/Makefile new file +49 -0

49 lines not on this page · raw message

board/siemens/dxr2/board.c new file +241 -0

241 lines not on this page · raw message

board/siemens/dxr2/board.h new file +69 -0

69 lines not on this page · raw message

board/siemens/dxr2/mux.c new file +112 -0

112 lines not on this page · raw message

board/siemens/pxm2/Makefile new file +49 -0

49 lines not on this page · raw message

board/siemens/pxm2/board.c new file +429 -0

429 lines not on this page · raw message

board/siemens/pxm2/board.h new file +22 -0
new file mode 100644
index 0000000..0362612
@@ -0,0 +1,22 @@
+/*
+ * board.h
+ *
+ * (C) Copyright 2013 Siemens Schweiz AG
+ * (C) Heiko Schocher, DENX Software Engineering, hs at denx.de.
+ *
+ * Based on:
+ * TI AM335x boards information header
+ * u-boot:/board/ti/am335x/board.h
+ *
+ * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.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/siemens/pxm2/mux.c new file +186 -0

186 lines not on this page · raw message

board/siemens/pxm2/pmic.h new file +71 -0

71 lines not on this page · raw message

board/siemens/rut/Makefile new file +49 -0

49 lines not on this page · raw message

board/siemens/rut/board.c new file +432 -0

432 lines not on this page · raw message

board/siemens/rut/board.h new file +22 -0
new file mode 100644
index 0000000..0362612
@@ -0,0 +1,22 @@
+/*
+ * board.h
+ *
+ * (C) Copyright 2013 Siemens Schweiz AG
+ * (C) Heiko Schocher, DENX Software Engineering, hs at denx.de.
+ *
+ * Based on:
+ * TI AM335x boards information header
+ * u-boot:/board/ti/am335x/board.h
+ *
+ * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.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/siemens/rut/mux.c new file +347 -0

347 lines not on this page · raw message

boards.cfg +3 -0
index 15ff800..1215790 100644
@@ -254,6 +254,9 @@ am335x_evm_uart5             arm         armv7       am335x              ti
 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
 am43xx_evm                   arm         armv7       am43xx              ti             am33xx      am43xx_evm:SERIAL1,CONS_INDEX=1
+dxr2                         arm         armv7       dxr2                siemens        am33xx
+pxm2                         arm         armv7       pxm2                siemens        am33xx
+rut                          arm         armv7       rut                 siemens        am33xx
 ti814x_evm                   arm         armv7       ti814x              ti             am33xx
 ti816x_evm                   arm         armv7       ti816x              ti             am33xx
 pcm051                       arm         armv7       pcm051              phytec         am33xx      pcm051
include/configs/dxr2.h new file +94 -0

94 lines not on this page · raw message

include/configs/pxm2.h new file +153 -0

153 lines not on this page · raw message

include/configs/rut.h new file +156 -0

156 lines not on this page · raw message

include/configs/siemens-am33x-common.h new file +463 -0

17 lines not on this page · raw message

tools/logos/siemens.bmp new file binary +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..bff2b190e0c88ece91484ca82f0705ff28ed9b2c
GIT binary patch

The rest of this diff is not shown. View the raw message.

zcmeI4X>b(B6 at Z^-bRj^Sszr)9Bvq71iUi&i0%@_TC>0V)kifeYWMtwEF+0S@|Fvb zHbPfTe&nj;N1RY at 7wWh<J$(~8+-r;433TQ0X{f=0yZ|b$y1Cj|ar@2r1#s$gEv zbWgv2U!SjgRe!;)Jz!on3c#;*>GE>>h$|LkYhey(*^Kcp7rmKV-^dzpu!I|6Dl% zuDE(KTzSpU;Hqo=aP at TsaLx5o;o2Lf!*w?n!u2;5!won80&cwJmvGaqrEv3q%i)&W zD&W at JE8(^~X2I=u2H=jnegk*jGaK%@w+imQZ!X-kp&IVJKM413_$}Ob|L<VK1B>AP z2b<u5hnnHRhnK)Zk6ZuKN^BZ9}B}{kN+MX-?$VuZfb#z8!vUn=gb-n>yi%CoX}_ zo0r3rPj$mnPxrvn&#ZuFo?QvgKDP><dww-++0qMJxAwu7=lfynmH~KSYZP95;SccA zi-Yj;OY33V%R{hz+c50dJ_<Xw{Rwt%|1<2@fX<r%3tBtoqvNpyZ;Wa?EWY0ef1x( zbI;|lYwy2c*Q-~+?mbt+p1oJW-q)^%*IvH{{bap@cO>%;f*(MfPMRKgnj#Nhd1}% z0sG&&6W)INE_mmiyW!n;?|}mc?t=sGJ^}|1Zh(Ua9)<S~J_hf<_c(m;{zf?T!6rET z;S+G=&}KM#<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=ClEc!+;uNz+D! zpVWEBLuGf#<vj377*n-2nKkJ%e#MD5acL|q+EPK!!Wqxgzytl(gKF05*q;|t-ah71 zEey$p$3jl80?uJ)eHNviS+{QdzvY;TDeK3HoCT at TtA%J#AKf|j~VT4ZWrEO!Tv<H zBpH73fO@mH-AsuEI~Xowl}>C at 1VsWE9H8r$OtE<Dz99S{_8=?M4<$|J2$hCOj zlT2oQN?~(^EC|P<z00bnT1OqeCl979Yykgd7<V3J$Vf;$pZyjM#cLllrXZnJH{)+- zB67{cjfc=-!Gu6ZlsHR<)?LzAIoVui**v(vVq|8Sk(XaqSv|9?z?VyxWa;MN((&Sh zCXBsO%wq!MN^@@?8r~Kl3g-F>%c|y<75nq3gVN at qT|YzqD${-=0Sf-iW-L at 3Wo)4 z?NiL7j#I<6eTXg)sd-6%C2r)%qkrG=!{w{S<AnMvq5Q-iZhy2QwLFC8;m#xGFAb?# zNc+%+5~Rg!BTqLhx;$(MRvUUGdcNV69=)4VUp;f79(c=fL)LcxXcj0bw;rdVYno z=Hx$M+IpP;@xEilu{mkan|b2L+cWpikt<EAmyQrR3|Woq?d=wXl~G1N5@25%#w2 zELMvcJhZ;}eFN%(6o+xewvJnX3A;h;U^PB(GG4SdMbHLAqxVePAneUr5eXqfz_N zzdF3g7l%k%d2q%>X3)hBspeb~VZT<WaP&dk^#^xI$y6sM4^6vtuDlsLxw1U;pHzg4 zh3!ZZS;_L1vzuDpjvwx$xnYVCv@Jz6PU(0qoqNaOp=p=Zdx>GjO^lCu?rXoRruLI zGp;Dv6cIvxj=YRps2}oZ~bri>A%z-p2 at HKWV!(-hBIF1N5O(NZpQKo&{<YynET zOcF)9hcO35baCR2_SEZtot<gTiked}tG*?I&oQCg^+Ow-p@v|!{zv#Lg2Be{@y-{ eiT+a{Nehfb+M8;FvvdQ4AwS<dj?o{;r{_Ck%Ptn

literal 0
HcmV?d00001

Signature · 1 line
1.7.11.7

Part of the diff is not shown here. View the raw message.

#9 lore raw

v4 cover arm, am335x: add support for siemens boards

In reply to Heiko Schocher

On Mon, Aug 19, 2013 at 04:38:55PM +0200, Heiko Schocher wrote:

[snip]

Quoted 15 lines

- changes for v4:
- rebased against u-boot-ti commit 425faf74cd8189c87919f7e72a0101c684ee3b9f therefore added define CONFIG_OMAP_COMMON
- add video splash screen support
Therefor needed patches (already applied to u-boot-video.git):
[U-Boot,2/7] video, da8xx: move da8xx-fb.h to drivers/video
http://patchwork.ozlabs.org/patch/264387/
applied
[U-Boot,3/7] arm, am33xx: add clk_get prototype
http://patchwork.ozlabs.org/patch/264389/
applied
[U-Boot,4/7] video, da8xx-fb: changes for am335x usage
http://patchwork.ozlabs.org/patch/264388/
applied
[U-Boot,5/7] video, da8xx-fb: show fb addr in bdinfo

Quoted 8 lines

http://patchwork.ozlabs.org/patch/264392/
applied
[U-Boot,6/7] tools, bmp_logo: fix index from uint16_t to int to allow bigger logos
http://patchwork.ozlabs.org/patch/264391/
applied
[U-Boot,7/7] video: add an option to skip cfb console init
http://patchwork.ozlabs.org/patch/264390/
applied

Can I get a u-boot-video PR please? I plan to snap -rc1 later this afternoon, 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/20130819/fe735ea5/attachment.pgp>
#10 lore raw

v4 cover arm, am335x: add support for siemens boards

Hi Tom,

Quoted 27 lines · On Mon, 19 Aug 2013 11:35:26 -0400 Tom Rini <[email protected]> wrote:

On Mon, Aug 19, 2013 at 04:38:55PM +0200, Heiko Schocher wrote:

[snip]

Quoted 15 lines

- changes for v4:
- rebased against u-boot-ti commit 425faf74cd8189c87919f7e72a0101c684ee3b9f therefore added define CONFIG_OMAP_COMMON
- add video splash screen support
Therefor needed patches (already applied to u-boot-video.git):
[U-Boot,2/7] video, da8xx: move da8xx-fb.h to drivers/video
http://patchwork.ozlabs.org/patch/264387/
applied
[U-Boot,3/7] arm, am33xx: add clk_get prototype
http://patchwork.ozlabs.org/patch/264389/
applied
[U-Boot,4/7] video, da8xx-fb: changes for am335x usage
http://patchwork.ozlabs.org/patch/264388/
applied
[U-Boot,5/7] video, da8xx-fb: show fb addr in bdinfo

Quoted 8 lines

http://patchwork.ozlabs.org/patch/264392/
applied
[U-Boot,6/7] tools, bmp_logo: fix index from uint16_t to int to allow bigger logos
http://patchwork.ozlabs.org/patch/264391/
applied
[U-Boot,7/7] video: add an option to skip cfb console init
http://patchwork.ozlabs.org/patch/264390/
applied

Quoted 2 lines

Can I get a u-boot-video PR please? I plan to snap -rc1 later this afternoon, thanks!

These patches were part of the previous u-boot-video PR and are already in u-boot/master.

Thanks,
Anatolij

#11 lore raw

v4 cover arm, am335x: add support for siemens boards

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 24 lines · Anatolij Gustschin

Hi Tom,

Quoted 20 lines · On Mon, 19 Aug 2013 11:35:26 -0400 Tom Rini <[email protected]> wrote:

On Mon, Aug 19, 2013 at 04:38:55PM +0200, Heiko Schocher wrote:

[snip]

Quoted 16 lines

- changes for v4: - rebased against u-boot-ti commit 425faf74cd8189c87919f7e72a0101c684ee3b9f therefore added define CONFIG_OMAP_COMMON - add video splash screen support Therefor needed patches (already applied to u-boot-video.git):
[U-Boot,2/7] video, da8xx: move da8xx-fb.h to drivers/video
http://patchwork.ozlabs.org/patch/264387/ applied [U-Boot,3/7] arm, am33xx: add clk_get prototype
http://patchwork.ozlabs.org/patch/264389/ applied [U-Boot,4/7] video, da8xx-fb: changes for am335x usage
http://patchwork.ozlabs.org/patch/264388/ applied [U-Boot,5/7] video, da8xx-fb: show fb addr in bdinfo
http://patchwork.ozlabs.org/patch/264392/ applied [U-Boot,6/7] tools, bmp_logo: fix index from uint16_t to int to allow bigger logos http://patchwork.ozlabs.org/patch/264391/ applied [U-Boot,7/7] video: add an option to skip cfb console init
http://patchwork.ozlabs.org/patch/264390/ applied

Quoted 5 lines
Quoted 2 lines

Can I get a u-boot-video PR please? I plan to snap -rc1 later this afternoon, thanks!

These patches were part of the previous u-boot-video PR and are already in u-boot/master.

OK good, thanks!

- --
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSEl58AAoJENk4IS6UOR1WRaYP/iV6HFCJx+GaTUZLNzWHMUs3 AE+trZY4A1cD8teC+x3hZMyGO4aO3xDJ8cGVvHzXcPu4qX6KV4I5j2sAKWnuV7hP vKSIWOXu8fEMOZUTLQo1m+SdVb1Y1CF1LujiqrZ2RkVS1koXmdJTevwBX0314gE+ c6p1q4tUmn0I/kM3FYsnmVYmu04NtSthgw/KVhYT6rBuPxmfmMBw/QrsI7bV1b3+ zT1LHRQqHCsvhxxGfBIVFHJnzjc7WY7LwZyz5upVhhFPVbmtarvJgtpAR2vpm+Tx +GAqtvilAZfI9O6cKbdYmNC3NH+J/vntJuuzaT+nOm1naSoN5NQtFAd6zPeoUVYZ fMczgOs6tWeVQ6xW1ZsvaXGgp/6lQpSlmj0WN1g3mhK9O9Rn5t843+Xtx2V/Kj3a ZPP/3Y/9WZnktfu+ZlrG0GVtxlaVZwK14sE0f6Mlv5QcBqAsUjS2x5ZRopwUH1F0 VKBcy4aiFzM/eeL2ERtPrRNZE1zkakOR6XRSTH7KiNf3P4rs4Vd7CB5p25UlpbfN MMl0YjAvVkNKXeCTMleVSj7fITcBFi2zUUvNy6Uw+riCZHeZ2hqE6USD3qTkjevy E8E9PXnUD5ZU6haY8NI226METcnYgzDDajJPukG7dnFGrlYI5ChrRB7jEBjjbeZE +76BMpnpe2GX8+vkx5ou
=G9WL
-----END PGP SIGNATURE-----

#12 lore raw

PATCH 1/1 siemens-am33x-common.h: Always build CONFIG_OMAP_GPIO support

In reply to Heiko Schocher

The MMC driver relies on this block now.

---
 include/configs/siemens-am33x-common.h |    2 --
 1 file changed, 2 deletions(-)
include/configs/siemens-am33x-common.h +0 -2
index f0bac97..5426ee8 100644
@@ -447,9 +447,7 @@
 #endif
 #endif
 
-#ifndef CONFIG_SPL_BUILD
 #define CONFIG_OMAP_GPIO
-#endif
 
 /* Watchdog */
 #define CONFIG_HW_WATCHDOG
Signature · 1 line
1.7.9.5
#13 lore raw

v4 cover arm, am335x: add support for siemens boards

In reply to Heiko Schocher
Quoted 165 lines · Heiko Schocher

add support for the am335x based boards from siemens:

dxr2:
- DDR3 128MiB
- NAND 256MiB
- Ethernet with external Switch SMSC LAN9303
- no PMIC
- internal Watchdog
- DFU support

pxm2:
- DDR2 512 MiB
- NAND 1024 MiB
- PMIC
- PHY atheros ar803x
- USB Host
- internal Watchdog
- DFU support

rut:
- DDR3 256 MiB
- NAND 256 MiB
- PMIC
- PHY natsemi dp83630
- external Watchdog
- DFU support

- changes for v2:
- add a more detailed comment, from where the files are based
- add missing (C)
- changes for v3:
- rebased against u-boot-ti commit bb2a5d8f87fffb4fadfb205837decbd1b3e75f88
- updated with lokeshs v2 patches
- rebased arm, am33xx: add defines for gmii_sel_register bits patch, and therefore added to this patchserie
- add bd_ram_ofs to cpsw_data in board code

    needed since commit 2bf36ac638ab2db9f0295aa47064976eeebf80c1

- changes for v4:
- rebased against u-boot-ti commit 425faf74cd8189c87919f7e72a0101c684ee3b9f therefore added define CONFIG_OMAP_COMMON
- add video splash screen support
Therefor needed patches (already applied to u-boot-video.git):
[U-Boot,2/7] video, da8xx: move da8xx-fb.h to drivers/video
http://patchwork.ozlabs.org/patch/264387/
applied
[U-Boot,3/7] arm, am33xx: add clk_get prototype
http://patchwork.ozlabs.org/patch/264389/
applied
[U-Boot,4/7] video, da8xx-fb: changes for am335x usage
http://patchwork.ozlabs.org/patch/264388/
applied
[U-Boot,5/7] video, da8xx-fb: show fb addr in bdinfo
http://patchwork.ozlabs.org/patch/264392/
applied
[U-Boot,6/7] tools, bmp_logo: fix index from uint16_t to int to allow bigger logos
http://patchwork.ozlabs.org/patch/264391/
applied
[U-Boot,7/7] video: add an option to skip cfb console init
http://patchwork.ozlabs.org/patch/264390/
applied

for patch
[U-Boot,1/7] arm, am335x: add some missing registers and defines for lcd and epwm support
http://patchwork.ozlabs.org/patch/264386/

are changes requested, so added this updated patch to this patchserie

The bmp in u-boot:/tools/logos/siemens.bmp is used as logo. on the rut board:
get "DISP1.name" from factoryset, and search it in the list of known displays. If found use this display, if not use display "KWH043ST20-F01" as default.

- new patch needed for the rut board splash screen support:
video: add formike lcd panel init

- update list of needed patches

Needed patches:

- [U-Boot] arm, spl: add watchdog library to SPL
http://patchwork.ozlabs.org/patch/248503/
reposted with this patchserie
- [U-Boot] arm, arm335x: add watchdog support
http://patchwork.ozlabs.org/patch/248504/
reposted with this patchserie
- [U-Boot,v2] arm, am33xx: add defines for gmii_sel_register bits
http://patchwork.ozlabs.org/patch/248916/
added in v3 to this patchseries as rebased against u-boot-ti
- [U-Boot,v5] dfu, nand, ubi: add partubi alt settings for updating ubi partition
http://patchwork.ozlabs.org/patch/261583/

Tested patches with this patch:
- [U-Boot] dfu: Implementation of target reset after communication with dfu-util's -R switch
http://patchwork.ozlabs.org/patch/260041/
- [U-Boot] ARM: OMAP: GPIO: Fix valid range and enable usage of all GPIOs on OMAP5
http://patchwork.ozlabs.org/patch/253185/

Heiko Schocher (6):
arm, am33xx: add defines for gmii_sel_register bits
arm, am335x: add some missing registers and defines for lcd and epwm
support
arm, spl: add watchdog library to SPL
arm, am335x: add watchdog support
video: add formike lcd panel init
arm, am335x: add support for 3 siemens boards

 MAINTAINERS                                        |   5 +
 arch/arm/include/asm/arch-am33xx/cpu.h             |  74 ++-
 arch/arm/include/asm/arch-am33xx/hardware_am33xx.h |   7 +
 board/isee/igep0033/board.c                        |   6 +-
 board/phytec/pcm051/board.c                        |   2 -
 board/siemens/common/board.c                       | 171 +++++++
 board/siemens/common/factoryset.c                  | 284 ++++++++++++
 board/siemens/common/factoryset.h                  |  27 ++
 board/siemens/dxr2/Makefile                        |  49 ++
 board/siemens/dxr2/board.c                         | 241 ++++++++++
 board/siemens/dxr2/board.h                         |  69 +++
 board/siemens/dxr2/mux.c                           | 112 +++++
 board/siemens/pxm2/Makefile                        |  49 ++
 board/siemens/pxm2/board.c                         | 429 +++++++++++++++++
 board/siemens/pxm2/board.h                         |  22 +
 board/siemens/pxm2/mux.c                           | 186 ++++++++
 board/siemens/pxm2/pmic.h                          |  71 +++
 board/siemens/rut/Makefile                         |  49 ++
 board/siemens/rut/board.c                          | 432 +++++++++++++++++
 board/siemens/rut/board.h                          |  22 +
 board/siemens/rut/mux.c                            | 347 ++++++++++++++
 board/ti/am335x/board.c                            |   6 +-
 boards.cfg                                         |   3 +
 doc/README.SPL                                     |   2 +-
 drivers/video/Makefile                             |   1 +
 drivers/video/formike.c                            | 511 +++++++++++++++++++++
 drivers/watchdog/Makefile                          |   1 +
 drivers/watchdog/omap_wdt.c                        | 121 +++++
 include/configs/dxr2.h                             |  94 ++++
 include/configs/pxm2.h                             | 153 ++++++
 include/configs/rut.h                              | 156 +++++++
 include/configs/siemens-am33x-common.h             | 463 +++++++++++++++++++
 include/video.h                                    |   4 +
 spl/Makefile                                       |   1 +
 tools/logos/siemens.bmp                            | Bin 0 -> 25766 bytes
 35 Dateien ge??ndert, 4157 Zeilen hinzugef??gt(+), 13 Zeilen entfernt(-)
 create mode 100644 board/siemens/common/board.c
 create mode 100644 board/siemens/common/factoryset.c
 create mode 100644 board/siemens/common/factoryset.h
 create mode 100644 board/siemens/dxr2/Makefile
 create mode 100644 board/siemens/dxr2/board.c
 create mode 100644 board/siemens/dxr2/board.h
 create mode 100644 board/siemens/dxr2/mux.c
 create mode 100644 board/siemens/pxm2/Makefile
 create mode 100644 board/siemens/pxm2/board.c
 create mode 100644 board/siemens/pxm2/board.h
 create mode 100644 board/siemens/pxm2/mux.c
 create mode 100644 board/siemens/pxm2/pmic.h
 create mode 100644 board/siemens/rut/Makefile
 create mode 100644 board/siemens/rut/board.c
 create mode 100644 board/siemens/rut/board.h
Quoted 8 lines
 create mode 100644 board/siemens/rut/mux.c
 create mode 100644 drivers/video/formike.c
 create mode 100644 drivers/watchdog/omap_wdt.c
 create mode 100644 include/configs/dxr2.h
 create mode 100644 include/configs/pxm2.h
 create mode 100644 include/configs/rut.h
 create mode 100644 include/configs/siemens-am33x-common.h
 create mode 100644 tools/logos/siemens.bmp

With the patch I sent to always build with CONFIG_OMAP_GPIO set (needed for changes in master), this is 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/20130828/aa506887/attachment.pgp>