This series extends OMAP3 support for AM/DM37xx and
Subsystems (2)
cover This series extends OMAP3 support for AM/DM37xx and
introduces the AM3703-based Quipos Cairo board.
NOTES:
Two checkpatch diagnostics are left uncorrected:
1. "warning: arch/arm/cpu/armv7/omap3/Kconfig,94: please write a paragraph that describes the config symbol fully"
No other symbol of the same nature has such a paragraph, so I left it out.
2. "check: board/quipos/cairo/cairo.c,87: Avoid CamelCase:
<SDP_3430_SDRC_RFR_CTRL_165MHz>"
Symbol was not defined in this patch. If requested, I will post a separate change to fix the symbol.
Albert ARIBAUD (3ADEV) (6):
omap3: enable GP9 timer and UART2
omap3: make SDRC SHARING setting configurable
omap3: add SDRC settings for Samsung K4X51163PG
omap3: mmc: add 1.8v bias setting for MMC1
omap3: add some MUX definitions for upcoming cairo
omap3: add support for QUIPOS Cairo board.
arch/arm/cpu/armv7/omap3/Kconfig | 5 + arch/arm/cpu/armv7/omap3/clock.c | 9 + arch/arm/cpu/armv7/omap3/sdrc.c | 6 +- arch/arm/include/asm/arch-omap3/mem.h | 43 +++ arch/arm/include/asm/arch-omap3/mmc_host_def.h | 1 + arch/arm/include/asm/arch-omap3/mux.h | 51 ++- arch/arm/include/asm/arch-omap3/sys_proto.h | 1 + board/quipos/cairo/Kconfig | 12 + board/quipos/cairo/Makefile | 8 + board/quipos/cairo/cairo.c | 90 +++++ board/quipos/cairo/cairo.h | 321 ++++++++++++++++++ configs/cairo_defconfig | 4 + drivers/mmc/omap_hsmmc.c | 4 + include/configs/omap3_cairo.h | 437 +++++++++++++++++++++++++ 14 files changed, 989 insertions(+), 3 deletions(-) create mode 100644 board/quipos/cairo/Kconfig create mode 100644 board/quipos/cairo/Makefile create mode 100644 board/quipos/cairo/cairo.c create mode 100644 board/quipos/cairo/cairo.h create mode 100644 configs/cairo_defconfig create mode 100644 include/configs/omap3_cairo.h
Signature · 1 line
2.1.0
PATCH 1/6 omap3: enable GP9 timer and UART2
These are needed for the upcoming Cairo board support.
---
arch/arm/cpu/armv7/omap3/clock.c | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/cpu/armv7/omap3/clock.c +9 -0
@@ -732,11 +732,20 @@ void per_clocks_enable(void)setbits_le32 (&prcm_base->iclken_per,0x08 );/* ICKen GPT2 */ setbits_le32 (&prcm_base->fclken_per,0x08 );/* FCKen GPT2 */ +/* Enable GP9 timer. */ +setbits_le32 (&prcm_base->clksel_per,0x80 );/* GPT9 = 32kHz clk */ +setbits_le32 (&prcm_base->iclken_per,0x400 );/* ICKen GPT9 */ +setbits_le32 (&prcm_base->fclken_per,0x400 );/* FCKen GPT9 */ +#ifdef CONFIG_SYS_NS16550 /* Enable UART1 clocks */ setbits_le32 (&prcm_base->fclken1_core,0x00002000 );setbits_le32 (&prcm_base->iclken1_core,0x00002000 ); +/* Enable UART2 clocks */ +setbits_le32 (&prcm_base->fclken1_core,0x00004000 ); +setbits_le32 (&prcm_base->iclken1_core,0x00004000 ); +/* UART 3 Clocks */ setbits_le32 (&prcm_base->fclken_per,0x00000800 );setbits_le32 (&prcm_base->iclken_per,0x00000800 );
Signature · 1 line
2.1.0
PATCH 2/6 omap3: make SDRC SHARING setting configurable
---
arch/arm/cpu/armv7/omap3/sdrc.c | 6 +++++- arch/arm/include/asm/arch-omap3/sys_proto.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-)
arch/arm/cpu/armv7/omap3/sdrc.c +5 -1
@@ -135,6 +135,9 @@ void do_sdrc_init(u32 cs, u32 early) sdrc_actim_base0 = (struct sdrc_actim *)SDRC_ACTIM_CTRL0_BASE ; sdrc_actim_base1 = (struct sdrc_actim *)SDRC_ACTIM_CTRL1_BASE ; +/* set some default timings */ + timings.sharing =SDRC_SHARING ; +/* * When called in the early context this may be SPL and we will * need to set all of the timings. This ends up being board
@@ -145,6 +148,7 @@ void do_sdrc_init(u32 cs, u32 early)* setup CS1. */ #ifdef CONFIG_SPL_BUILD +/* set/modify board-specific timings */ get_board_mem_timings (&timings);#endif if (early) {
@@ -155,7 +159,7 @@ void do_sdrc_init(u32 cs, u32 early)writel (0 , &sdrc_base->sysconfig);/* setup sdrc to ball mux */ -writel (SDRC_SHARING , &sdrc_base->sharing); +writel (timings.sharing, &sdrc_base->sharing);/* Disable Power Down of CKE because of 1 CKE on combo part */ writel(WAKEUPPROC | SRFRONRESET | PAGEPOLICY_HIGH,
arch/arm/include/asm/arch-omap3/sys_proto.h +1 -0
@@ -23,6 +23,7 @@ struct emu_hal_params {/* Board SDRC timing values */ struct board_sdrc_timings { +u32 sharing;u32 mcfg;u32 ctrla;u32 ctrlb;
Signature · 1 line
2.1.0
PATCH 3/6 omap3: add SDRC settings for Samsung K4X51163PG
---
arch/arm/include/asm/arch-omap3/mem.h | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)
arch/arm/include/asm/arch-omap3/mem.h +43 -0
@@ -249,6 +249,49 @@ enum {#define MICRON_RASWIDTH_200 14#define MICRON_V_MCFG_200 (size) MCFG((size), MICRON_RASWIDTH_200) +/* Samsung K4X51163PG - FGC6 (165MHz optimized) 6.06ns - from 2010.90 src */ +#define SAMSUNG_TDAL_165 5 +#define SAMSUNG_TDPL_165 2 +#define SAMSUNG_TRRD_165 2 +#define SAMSUNG_TRCD_165 3 +#define SAMSUNG_TRP_165 3 +#define SAMSUNG_TRAS_165 7 +#define SAMSUNG_TRC_165 10 +#define SAMSUNG_TRFC_165 12 + +#define SAMSUNG_V_ACTIMA_165 \ + ACTIM_CTRLA(SAMSUNG_TRFC_165, SAMSUNG_TRC_165, \ + SAMSUNG_TRAS_165, SAMSUNG_TRP_165, \ + SAMSUNG_TRCD_165, SAMSUNG_TRRD_165, \ + SAMSUNG_TDPL_165, SAMSUNG_TDAL_165) + +#define SAMSUNG_TWTR_165 1 +#define SAMSUNG_TCKE_165 2 +#define SAMSUNG_XSR_165 20 +#define SAMSUNG_TXP_165 5 + +#define SAMSUNG_V_ACTIMB_165 \ + ACTIM_CTRLB(SAMSUNG_TWTR_165, SAMSUNG_TCKE_165, \ + SAMSUNG_TXP_165, SAMSUNG_XSR_165) + +#define SAMSUNG_RASWIDTH_165 14 +#define SAMSUNG_V_MCFG_165 (size) \ + V_MCFG_RASWIDTH(SAMSUNG_RASWIDTH_165) | V_MCFG_CASWIDTH_10B | \ + V_MCFG_ADDRMUXLEGACY_FLEX | V_MCFG_RAMSIZE(size) | \ + V_MCFG_BANKALLOCATION_RBC | V_MCFG_RAMTYPE_DDR + +/* TODO: find which register these were taken from */ + +#define SAMSUNG_BL_165 0x2 +#define SAMSUNG_SIL_165 0x0 +#define SAMSUNG_CASL_165 0x3 +#define SAMSUNG_WBST_165 0x0 +#define SAMSUNG_V_MR_165 ((SAMSUNG_WBST_165 << 9) | \ + (SAMSUNG_CASL_165 << 4) | (SAMSUNG_SIL_165 << 3) | \ + (SAMSUNG_BL_165)) + +#define SAMSUNG_SHARING 0x00003700 +/* NUMONYX part of IGEP v2 (165MHz optimized) 6.06ns */ #define NUMONYX_TDAL_165 6/* Twr/Tck + Trp/tck */ /* 15/6 + 18/6 = 5.5 -> 6 */
Signature · 1 line
2.1.0
PATCH 4/6 omap3: mmc: add 1.8v bias setting for MMC1
---
arch/arm/include/asm/arch-omap3/mmc_host_def.h | 1 + drivers/mmc/omap_hsmmc.c | 4 ++++ 2 files changed, 5 insertions(+)
arch/arm/include/asm/arch-omap3/mmc_host_def.h +1 -0
@@ -51,6 +51,7 @@ typedef struct t2 {#define PBIASLITEPWRDNZ0 (1 << 1)#define PBIASSPEEDCTRL0 (1 << 2)#define PBIASLITEPWRDNZ1 (1 << 9) +#define PBIASLITEVMODE0 (1 << 0)#define CTLPROGIO1SPEEDCTRL (1 << 20)
drivers/mmc/omap_hsmmc.c +4 -0
@@ -134,6 +134,10 @@ static unsigned char mmc_board_init(struct mmc *mmc) pbias_lite =readl (&t2_base->pbias_lite); pbias_lite &= ~(PBIASLITEPWRDNZ1 |PBIASLITEPWRDNZ0 ); +#ifdef CONFIG_TARGET_OMAP3_CAIRO +/* for cairo board, we need to set up 1.8 Volt bias level on MMC1 */ + pbias_lite &= ~PBIASLITEVMODE0 ; +#endif writel (pbias_lite, &t2_base->pbias_lite); writel(pbias_lite | PBIASLITEPWRDNZ1 |
Signature · 1 line
2.1.0
PATCH 5/6 omap3: add some MUX definitions for upcoming cairo
---
arch/arm/include/asm/arch-omap3/mux.h | 51 +++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-)
arch/arm/include/asm/arch-omap3/mux.h +49 -2
@@ -15,6 +15,12 @@* PTU - Pull type Up * DIS - Pull type selection is inactive * EN - Pull type selection is active +* SB_LOW - Standby mode configuration: Output low-level +* SB_HI - Standby mode configuration: Output high-level +* SB_HIZ - Standby mode configuration: Output hi-impedence +* SB_PD - Standby mode pull-down enabled +* SB_PU - Standby mode pull-up enabled +* WKEN - Wakeup input enabled * M0 - Mode 0 */
@@ -26,6 +32,13 @@#define EN (1 << 3)#define DIS (0 << 3) +#define SB_LOW (1 << 9) +#define SB_HI (5 << 9) +#define SB_HIZ (2 << 9) +#define SB_PD (1 << 12) +#define SB_PU (3 << 12) +#define WKEN (1 << 14) +#define M0 0#define M1 1#define M2 2
@@ -36,8 +49,8 @@#define M7 7/* -* To get the actual address the offset has to added -* with OMAP34XX_CTRL_BASE to get the actual address +* To get the actual address the offset has to be added +* to OMAP34XX_CTRL_BASE */ /*SDRC*/
@@ -78,6 +91,33 @@#define CONTROL_PADCONF_SDRC_DQS1 0x0074#define CONTROL_PADCONF_SDRC_DQS2 0x0076#define CONTROL_PADCONF_SDRC_DQS3 0x0078 +#define CONTROL_PADCONF_SDRC_BA0 0x05A0 +#define CONTROL_PADCONF_SDRC_BA1 0x05A2 +#define CONTROL_PADCONF_SDRC_A0 0x05A4 +#define CONTROL_PADCONF_SDRC_A1 0x05A6 +#define CONTROL_PADCONF_SDRC_A2 0x05A8 +#define CONTROL_PADCONF_SDRC_A3 0x05AA +#define CONTROL_PADCONF_SDRC_A4 0x05AC +#define CONTROL_PADCONF_SDRC_A5 0x05AE +#define CONTROL_PADCONF_SDRC_A6 0x05B0 +#define CONTROL_PADCONF_SDRC_A7 0x05B2 +#define CONTROL_PADCONF_SDRC_A8 0x05B4 +#define CONTROL_PADCONF_SDRC_A9 0x05B6 +#define CONTROL_PADCONF_SDRC_A10 0x05B8 +#define CONTROL_PADCONF_SDRC_A11 0x05BA +#define CONTROL_PADCONF_SDRC_A12 0x05BC +#define CONTROL_PADCONF_SDRC_A13 0x05BE +#define CONTROL_PADCONF_SDRC_A14 0x05C0 +#define CONTROL_PADCONF_SDRC_NCS0 0x05C2 +#define CONTROL_PADCONF_SDRC_NCS1 0x05C4 +#define CONTROL_PADCONF_SDRC_NCLK 0x05C6 +#define CONTROL_PADCONF_SDRC_NRAS 0x05C8 +#define CONTROL_PADCONF_SDRC_NCAS 0x05CA +#define CONTROL_PADCONF_SDRC_NWE 0x05CC +#define CONTROL_PADCONF_SDRC_DM0 0x05CE +#define CONTROL_PADCONF_SDRC_DM1 0x05D0 +#define CONTROL_PADCONF_SDRC_DM2 0x05D2 +#define CONTROL_PADCONF_SDRC_DM3 0x05D4/*GPMC*/ #define CONTROL_PADCONF_GPMC_A1 0x007A#define CONTROL_PADCONF_GPMC_A2 0x007C
@@ -89,6 +129,7 @@#define CONTROL_PADCONF_GPMC_A8 0x0088#define CONTROL_PADCONF_GPMC_A9 0x008A#define CONTROL_PADCONF_GPMC_A10 0x008C +#define CONTROL_PADCONF_GPMC_A11 0x0264#define CONTROL_PADCONF_GPMC_D0 0x008E#define CONTROL_PADCONF_GPMC_D1 0x0090#define CONTROL_PADCONF_GPMC_D2 0x0092
@@ -323,6 +364,8 @@#define CONTROL_PADCONF_ETK_D13_ES2 0x05F6#define CONTROL_PADCONF_ETK_D14_ES2 0x05F8#define CONTROL_PADCONF_ETK_D15_ES2 0x05FA +#define CONTROL_PADCONF_JTAG_RTCK 0x0A4E +#define CONTROL_PADCONF_JTAG_TDO 0x0A50/*Die to Die */ #define CONTROL_PADCONF_D2D_MCAD0 0x01E4#define CONTROL_PADCONF_D2D_MCAD1 0x01E6
@@ -433,6 +476,10 @@#define CONTROL_PADCONF_SYS_BOOT8 0x0226/* AM/DM37xx specific */ +#define CONTROL_PADCONF_GPIO112 0x0134 +#define CONTROL_PADCONF_GPIO113 0x0136 +#define CONTROL_PADCONF_GPIO114 0x0138 +#define CONTROL_PADCONF_GPIO115 0x013A#define CONTROL_PADCONF_GPIO127 0x0A54#define CONTROL_PADCONF_GPIO126 0x0A56#define CONTROL_PADCONF_GPIO128 0x0A58
Signature · 1 line
2.1.0
PATCH 6/6 omap3: add support for QUIPOS Cairo board.
---
arch/arm/cpu/armv7/omap3/Kconfig | 5 + board/quipos/cairo/Kconfig | 12 ++ board/quipos/cairo/Makefile | 8 + board/quipos/cairo/cairo.c | 90 ++++++++ board/quipos/cairo/cairo.h | 321 ++++++++++++++++++++++++++++ configs/cairo_defconfig | 4 + include/configs/omap3_cairo.h | 437 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 877 insertions(+) create mode 100644 board/quipos/cairo/Kconfig create mode 100644 board/quipos/cairo/Makefile create mode 100644 board/quipos/cairo/cairo.c create mode 100644 board/quipos/cairo/cairo.h create mode 100644 configs/cairo_defconfig create mode 100644 include/configs/omap3_cairo.h
arch/arm/cpu/armv7/omap3/Kconfig +5 -0
@@ -91,6 +91,10 @@ config TARGET_TWISTER bool "Twister" select SUPPORT_SPL +config TARGET_OMAP3_CAIRO + bool "QUIPOS CAIRO" + select SUPPORT_SPL + endchoice config SYS_SOC
@@ -118,5 +122,6 @@ source "board/matrix_vision/mvblx/Kconfig" source "board/nokia/rx51/Kconfig" source "board/technexion/tao3530/Kconfig" source "board/technexion/twister/Kconfig" +source "board/quipos/cairo/Kconfig" endif
board/quipos/cairo/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +if TARGET_OMAP3_CAIRO + +config SYS_BOARD + default "cairo" + +config SYS_VENDOR + default "quipos" + +config SYS_CONFIG_NAME + default "omap3_cairo" + +endif
board/quipos/cairo/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +# +# (C) Copyright 2014 DENX Software Engineering +# Written-By: Albert ARIBAUD <[email protected]> +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := cairo.o
board/quipos/cairo/cairo.c new file +90 -0
90 lines not on this page · raw message
board/quipos/cairo/cairo.h new file +321 -0
321 lines not on this page · raw message
configs/cairo_defconfig new file +4 -0
@@ -0,0 +1,4 @@ +CONFIG_SPL=y ++S:CONFIG_ARM=y ++S:CONFIG_OMAP34XX=y ++S:CONFIG_TARGET_OMAP3_CAIRO=y
include/configs/omap3_cairo.h new file +437 -0
437 lines not on this page · raw message
Signature · 1 line
2.1.0
PATCH 6/6 omap3: add support for QUIPOS Cairo board.
Hi Albert,
Quoted 17 lines · On 16 January 2015 at 01:09, Albert ARIBAUD (3ADEV) <[email protected]>…
Signed-off-by Albert ARIBAUD (3ADEV) <[email protected]>---
arch/arm/cpu/armv7/omap3/Kconfig | 5 + board/quipos/cairo/Kconfig | 12 ++ board/quipos/cairo/Makefile | 8 + board/quipos/cairo/cairo.c | 90 ++++++++ board/quipos/cairo/cairo.h | 321 ++++++++++++++++++++++++++++ configs/cairo_defconfig | 4 + include/configs/omap3_cairo.h | 437 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 877 insertions(+) create mode 100644 board/quipos/cairo/Kconfig create mode 100644 board/quipos/cairo/Makefile create mode 100644 board/quipos/cairo/cairo.c create mode 100644 board/quipos/cairo/cairo.h create mode 100644 configs/cairo_defconfig create mode 100644 include/configs/omap3_cairo.h
Can this use driver model for serial? We are just creating problems for future otherwise.
Regards,
Simon
PATCH 6/6 omap3: add support for QUIPOS Cairo board.
Hello Simon,
Quoted 22 lines · Simon Glass
Hi Albert,
Quoted 17 lines · On 16 January 2015 at 01:09, Albert ARIBAUD (3ADEV) <[email protected]>…
Signed-off-by Albert ARIBAUD (3ADEV) <[email protected]>---
arch/arm/cpu/armv7/omap3/Kconfig | 5 + board/quipos/cairo/Kconfig | 12 ++ board/quipos/cairo/Makefile | 8 + board/quipos/cairo/cairo.c | 90 ++++++++ board/quipos/cairo/cairo.h | 321 ++++++++++++++++++++++++++++ configs/cairo_defconfig | 4 + include/configs/omap3_cairo.h | 437 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 877 insertions(+) create mode 100644 board/quipos/cairo/Kconfig create mode 100644 board/quipos/cairo/Makefile create mode 100644 board/quipos/cairo/cairo.c create mode 100644 board/quipos/cairo/cairo.h create mode 100644 configs/cairo_defconfig create mode 100644 include/configs/omap3_cairo.h
Quoted 2 lines
Can this use driver model for serial? We are just creating problems for future otherwise.
Will do in v2.
Quoted 2 lines
Regards,
Simon
Amicalement,
Signature · 1 line
Albert.
PATCH 5/6 omap3: add some MUX definitions for upcoming cairo
In reply to Albert ARIBAUD (3ADEV)Quoted 1 line · On Fri, Jan 16, 2015 at 09:09:51AM +0100, Albert ARIBAUD (3ADEV) wrote:
Signed-off-by Albert ARIBAUD (3ADEV) <[email protected]>
Applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150130/277561ec/attachment.sig>
PATCH 4/6 omap3: mmc: add 1.8v bias setting for MMC1
In reply to Albert ARIBAUD (3ADEV)Quoted 1 line · On Fri, Jan 16, 2015 at 09:09:50AM +0100, Albert ARIBAUD (3ADEV) wrote:
Signed-off-by Albert ARIBAUD (3ADEV) <[email protected]>
Applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150130/ac270bed/attachment.sig>
PATCH 3/6 omap3: add SDRC settings for Samsung K4X51163PG
In reply to Albert ARIBAUD (3ADEV)Quoted 1 line · On Fri, Jan 16, 2015 at 09:09:49AM +0100, Albert ARIBAUD (3ADEV) wrote:
Signed-off-by Albert ARIBAUD (3ADEV) <[email protected]>
Applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150130/2ed7bdf4/attachment.sig>
PATCH 2/6 omap3: make SDRC SHARING setting configurable
In reply to Albert ARIBAUD (3ADEV)Quoted 1 line · On Fri, Jan 16, 2015 at 09:09:48AM +0100, Albert ARIBAUD (3ADEV) wrote:
Signed-off-by Albert ARIBAUD (3ADEV) <[email protected]>
Applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150130/bfa4ac1c/attachment.sig>
PATCH 1/6 omap3: enable GP9 timer and UART2
In reply to Albert ARIBAUD (3ADEV)Quoted 3 lines · On Fri, Jan 16, 2015 at 09:09:47AM +0100, Albert ARIBAUD (3ADEV) wrote:
These are needed for the upcoming Cairo board support.
Signed-off-by Albert ARIBAUD (3ADEV) <[email protected]>
Applied to u-boot-ti/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150130/8c1a92c2/attachment.sig>