public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: BeagleBoard-x15: Enable i2c5 clocks
@ 2015-06-05  9:49 Lokesh Vutla
  2015-06-05 12:50 ` Tom Rini
  2015-06-13  2:10 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: Lokesh Vutla @ 2015-06-05  9:49 UTC (permalink / raw)
  To: u-boot

On AM57xx evm I2C5 is used to detect the LCD board by reading the
EEPROM present on the bus.
Enable i2c5 clocks to help that.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
---
 arch/arm/cpu/armv7/omap5/hw_data.c   | 7 +++++++
 arch/arm/cpu/armv7/omap5/prcm-regs.c | 4 ++++
 arch/arm/include/asm/omap_common.h   | 4 ++++
 3 files changed, 15 insertions(+)

diff --git a/arch/arm/cpu/armv7/omap5/hw_data.c b/arch/arm/cpu/armv7/omap5/hw_data.c
index 868415d..53e87b2 100644
--- a/arch/arm/cpu/armv7/omap5/hw_data.c
+++ b/arch/arm/cpu/armv7/omap5/hw_data.c
@@ -534,6 +534,9 @@ void enable_basic_clocks(void)
 void enable_basic_uboot_clocks(void)
 {
 	u32 const clk_domains_essential[] = {
+#if defined(CONFIG_DRA7XX) || defined(CONFIG_AM57XX)
+		(*prcm)->cm_ipu_clkstctrl,
+#endif
 		0
 	};
 
@@ -547,7 +550,11 @@ void enable_basic_uboot_clocks(void)
 		(*prcm)->cm_l4per_i2c2_clkctrl,
 		(*prcm)->cm_l4per_i2c3_clkctrl,
 		(*prcm)->cm_l4per_i2c4_clkctrl,
+#if defined(CONFIG_DRA7XX) || defined(CONFIG_AM57XX)
+		(*prcm)->cm_ipu_i2c5_clkctrl,
+#else
 		(*prcm)->cm_l4per_i2c5_clkctrl,
+#endif
 		(*prcm)->cm_l3init_hsusbhost_clkctrl,
 		(*prcm)->cm_l3init_fsusb_clkctrl,
 		0
diff --git a/arch/arm/cpu/armv7/omap5/prcm-regs.c b/arch/arm/cpu/armv7/omap5/prcm-regs.c
index f80d36d..a87003c 100644
--- a/arch/arm/cpu/armv7/omap5/prcm-regs.c
+++ b/arch/arm/cpu/armv7/omap5/prcm-regs.c
@@ -815,6 +815,10 @@ struct prcm_regs const dra7xx_prcm = {
 	.cm_dsp_clkstctrl			= 0x4a005400,
 	.cm_dsp_dsp_clkctrl			= 0x4a005420,
 
+	/* cm IPU */
+	.cm_ipu_clkstctrl			= 0x4a005540,
+	.cm_ipu_i2c5_clkctrl			= 0x4a005578,
+
 	/* prm irqstatus regs */
 	.prm_irqstatus_mpu_2			= 0x4ae06014,
 
diff --git a/arch/arm/include/asm/omap_common.h b/arch/arm/include/asm/omap_common.h
index b0296fb..a1278fb 100644
--- a/arch/arm/include/asm/omap_common.h
+++ b/arch/arm/include/asm/omap_common.h
@@ -344,6 +344,10 @@ struct prcm_regs {
 	/* GMAC Clk Ctrl */
 	u32 cm_gmac_gmac_clkctrl;
 	u32 cm_gmac_clkstctrl;
+
+	/* IPU */
+	u32 cm_ipu_clkstctrl;
+	u32 cm_ipu_i2c5_clkctrl;
 };
 
 struct omap_sys_ctrl_regs {
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] ARM: BeagleBoard-x15: Enable i2c5 clocks
  2015-06-05  9:49 [U-Boot] [PATCH] ARM: BeagleBoard-x15: Enable i2c5 clocks Lokesh Vutla
@ 2015-06-05 12:50 ` Tom Rini
  2015-06-08  4:07   ` Lokesh Vutla
  2015-06-13  2:10 ` [U-Boot] " Tom Rini
  1 sibling, 1 reply; 4+ messages in thread
From: Tom Rini @ 2015-06-05 12:50 UTC (permalink / raw)
  To: u-boot

On Fri, Jun 05, 2015 at 03:19:21PM +0530, Lokesh Vutla wrote:


> On AM57xx evm I2C5 is used to detect the LCD board by reading the
> EEPROM present on the bus.
> Enable i2c5 clocks to help that.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Sigh, and we need to figure out which LCD we have to know which DT to
pass to the kernel so there'll be another patch soon that does this,
yes?  Thanks!

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
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/20150605/5bde778e/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] ARM: BeagleBoard-x15: Enable i2c5 clocks
  2015-06-05 12:50 ` Tom Rini
@ 2015-06-08  4:07   ` Lokesh Vutla
  0 siblings, 0 replies; 4+ messages in thread
From: Lokesh Vutla @ 2015-06-08  4:07 UTC (permalink / raw)
  To: u-boot

On Friday 05 June 2015 06:20 PM, Tom Rini wrote:
> On Fri, Jun 05, 2015 at 03:19:21PM +0530, Lokesh Vutla wrote:
> 
> 
>> On AM57xx evm I2C5 is used to detect the LCD board by reading the
>> EEPROM present on the bus.
>> Enable i2c5 clocks to help that.
>>
>> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> 
> Sigh, and we need to figure out which LCD we have to know which DT to
> pass to the kernel so there'll be another patch soon that does this,
> yes?  Thanks!
Yes, I have the patches ready. Ill be posting once verified.

Thanks and regards,
Lokesh
> 
> Reviewed-by: Tom Rini <trini@konsulko.com>
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] ARM: BeagleBoard-x15: Enable i2c5 clocks
  2015-06-05  9:49 [U-Boot] [PATCH] ARM: BeagleBoard-x15: Enable i2c5 clocks Lokesh Vutla
  2015-06-05 12:50 ` Tom Rini
@ 2015-06-13  2:10 ` Tom Rini
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2015-06-13  2:10 UTC (permalink / raw)
  To: u-boot

On Fri, Jun 05, 2015 at 03:19:21PM +0530, Lokesh Vutla wrote:

> On AM57xx evm I2C5 is used to detect the LCD board by reading the
> EEPROM present on the bus.
> Enable i2c5 clocks to help that.
> 
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/master, thanks!

-- 
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/20150612/eeeee672/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-13  2:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-05  9:49 [U-Boot] [PATCH] ARM: BeagleBoard-x15: Enable i2c5 clocks Lokesh Vutla
2015-06-05 12:50 ` Tom Rini
2015-06-08  4:07   ` Lokesh Vutla
2015-06-13  2:10 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox