Skip to contentSkip to conversation

da8xx: ea20: Add the configuration define for the exact SoC variant

PATCH New Tomas Novotny 3 participants 4 messages Feb 1, 2013 – Feb 19, 2013

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

PATCH 1/2 da8xx: ea20: Add the configuration define for the exact SoC variant

Cc Tom Rini <[email protected]>
Cc Stefano Babic <[email protected]>

---
The second patch in this series adds pinmux for the da830. This pinmux is selected when CONFIG_SOC_DA850 is not set. Although ea20 has its own gpio pinmux (because gpio_request() is not used), this patch is added to prevent possible problems in the future.

 include/configs/ea20.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/configs/ea20.h +1 -0
index d3eb596..03dfe0a 100644
@@ -42,6 +42,7 @@
 #define CONFIG_MACH_DAVINCI_DA850_EVM
 #define CONFIG_ARM926EJS		/* arm926ejs CPU core */
 #define CONFIG_SOC_DA8XX		/* TI DA8xx SoC */
+#define CONFIG_SOC_DA850		/* TI DA850 SoC */
 #define CONFIG_SYS_CLK_FREQ		clk_get(DAVINCI_ARM_CLKID)
 #define CONFIG_SYS_OSCIN_FREQ		24000000
 #define CONFIG_SYS_TIMERBASE		DAVINCI_TIMER0_BASE
Signature · 1 line
1.7.7
#1 lore raw

PATCH 2/2 da8xx: Add the missing pinmux for da830 to the gpio driver

The pinmux was generated from linux/arch/arm/mach-davinci/da830.c as of kernel version 3.7.5. If the driver is used for the da850, then SoC variant must be specified by CONFIG_SOC_DA850.

---
I'm not sure with selected #defines, so suggestions are welcome. Now the pinmux for da850 gpios is used by default. This patch may change this behaviour and da850 pinmux is selected when there is CONFIG_SOC_DA850. This is true for all mainline da8xx boards, so everything should be ok.

 arch/arm/include/asm/arch-davinci/gpio.h |    4 +
 drivers/gpio/da8xx_gpio.c                |  133 ++++++++++++++++++++++++++++++
 2 files changed, 137 insertions(+), 0 deletions(-)
arch/arm/include/asm/arch-davinci/gpio.h +4 -0
index ef65ffb..fbbb1f3 100644
@@ -67,7 +67,11 @@ struct davinci_gpio_bank {
 
 #define gpio_status()		gpio_info()
 #define GPIO_NAME_SIZE		20
+#if defined(CONFIG_SOC_DA8XX) && !defined(CONFIG_SOC_DA850)
+#define MAX_NUM_GPIOS		128
+#else
 #define MAX_NUM_GPIOS		144
+#endif
 #define GPIO_BANK(gp)		(davinci_gpio_bank01 + ((gp) >> 5))
 #define GPIO_BIT(gp)		((gp) & 0x1F)
 
drivers/gpio/da8xx_gpio.c +133 -0

145 lines not on this page · raw message

Signature · 1 line
1.7.7
#2 lore raw

PATCH 1/2 da8xx: ea20: Add the configuration define for the exact SoC variant

In reply to Tomas Novotny
Quoted 18 lines · Tomas Novotny
Cc Tom Rini <[email protected]>
Cc Stefano Babic <[email protected]>

---
The second patch in this series adds pinmux for the da830. This pinmux is selected when CONFIG_SOC_DA850 is not set. Although ea20 has its own gpio pinmux (because gpio_request() is not used), this patch is added to prevent possible problems in the future.

 include/configs/ea20.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
include/configs/ea20.h +0 -0
index d3eb596..03dfe0a 100644

include/configs/ea20.h line 48

Quoted 7 lines
include/configs/ea20.h +1 -0
@@ -42,6 +42,7 @@
 #define CONFIG_MACH_DAVINCI_DA850_EVM
 #define CONFIG_ARM926EJS		/* arm926ejs CPU core */
 #define CONFIG_SOC_DA8XX		/* TI DA8xx SoC */
+#define CONFIG_SOC_DA850		/* TI DA850 SoC */
 #define CONFIG_SYS_CLK_FREQ		clk_get(DAVINCI_ARM_CLKID)
 #define CONFIG_SYS_OSCIN_FREQ		24000000
 #define CONFIG_SYS_TIMERBASE		DAVINCI_TIMER0_BASE

Best regards,
Stefano Babic

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-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#3 lore raw

PATCH 1/2 da8xx: ea20: Add the configuration define for the exact SoC variant

In reply to Tomas Novotny
Quoted 4 lines · Tomas Novotny

This and 2/2 have been 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/20130219/8e03088d/attachment.pgp>