mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] fixup! gpio: Add GPIO driver for Vybrid
@ 2016-11-25 21:07 Andrey Smirnov
  2016-11-25 21:07 ` [PATCH 2/2] fixup! i.MX: Add VF610 clock tree initialization code Andrey Smirnov
  2016-12-07 20:09 ` [PATCH 1/2] fixup! gpio: Add GPIO driver for Vybrid Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Andrey Smirnov @ 2016-11-25 21:07 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov

---

Sascha,

It looks like the two affected patches haven't hit 'master' yet, so I
am hoping these two fixups could be incorporated into 'next'.

First fixup removes unused constants (leftover from kernel code) and
second adda two lines to configure clock for ESDHC0 (original code
only configured ESDHC1)

If you want these as separate patches, let me know

Thanks,
Andrey

 drivers/gpio/gpio-vf610.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c
index c82723f..7c8d1e4 100644
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@ -39,21 +39,6 @@ struct vf610_gpio_port {
 #define GPIO_PTOR		0x0c
 #define GPIO_PDIR		0x10
 
-#define PORT_PCR(n)		((n) * 0x4)
-#define PORT_PCR_IRQC_OFFSET	16
-
-#define PORT_ISFR		0xa0
-#define PORT_DFER		0xc0
-#define PORT_DFCR		0xc4
-#define PORT_DFWR		0xc8
-
-#define PORT_INT_OFF		0x0
-#define PORT_INT_LOGIC_ZERO	0x8
-#define PORT_INT_RISING_EDGE	0x9
-#define PORT_INT_FALLING_EDGE	0xa
-#define PORT_INT_EITHER_EDGE	0xb
-#define PORT_INT_LOGIC_ONE	0xc
-
 static const struct of_device_id vf610_gpio_dt_ids[] = {
 	{ .compatible = "fsl,vf610-gpio" },
 	{ /* sentinel */ }
-- 
2.5.5


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* [PATCH 2/2] fixup! i.MX: Add VF610 clock tree initialization code
  2016-11-25 21:07 [PATCH 1/2] fixup! gpio: Add GPIO driver for Vybrid Andrey Smirnov
@ 2016-11-25 21:07 ` Andrey Smirnov
  2016-12-07 20:09 ` [PATCH 1/2] fixup! gpio: Add GPIO driver for Vybrid Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Andrey Smirnov @ 2016-11-25 21:07 UTC (permalink / raw)
  To: barebox; +Cc: Andrey Smirnov

---
 drivers/clk/imx/clk-vf610.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk/imx/clk-vf610.c
index 1cf2b65..34400b9 100644
--- a/drivers/clk/imx/clk-vf610.c
+++ b/drivers/clk/imx/clk-vf610.c
@@ -431,6 +431,9 @@ static void __init vf610_clocks_init(struct device_node *ccm_node)
 	clk_set_parent(clk[VF610_CLK_ESDHC1_SEL], clk[VF610_CLK_PLL1_PFD3]);
 	clk_set_rate(clk[VF610_CLK_ESDHC1_DIV], clk_get_rate(clk[VF610_CLK_PLL1_PFD3]) / 9);
 
+	clk_set_parent(clk[VF610_CLK_ESDHC0_SEL], clk[VF610_CLK_PLL1_PFD3]);
+	clk_set_rate(clk[VF610_CLK_ESDHC0_DIV], clk_get_rate(clk[VF610_CLK_PLL1_PFD3]) / 9);
+
 	clk_set_parent(clk[VF610_CLK_SAI0_SEL], clk[VF610_CLK_AUDIO_EXT]);
 	clk_set_parent(clk[VF610_CLK_SAI1_SEL], clk[VF610_CLK_AUDIO_EXT]);
 	clk_set_parent(clk[VF610_CLK_SAI2_SEL], clk[VF610_CLK_AUDIO_EXT]);
-- 
2.5.5


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/2] fixup! gpio: Add GPIO driver for Vybrid
  2016-11-25 21:07 [PATCH 1/2] fixup! gpio: Add GPIO driver for Vybrid Andrey Smirnov
  2016-11-25 21:07 ` [PATCH 2/2] fixup! i.MX: Add VF610 clock tree initialization code Andrey Smirnov
@ 2016-12-07 20:09 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2016-12-07 20:09 UTC (permalink / raw)
  To: Andrey Smirnov; +Cc: barebox

On Fri, Nov 25, 2016 at 01:07:10PM -0800, Andrey Smirnov wrote:
> ---
> 
> Sascha,
> 
> It looks like the two affected patches haven't hit 'master' yet, so I
> am hoping these two fixups could be incorporated into 'next'.

Yes, just did that.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2016-12-07 20:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-25 21:07 [PATCH 1/2] fixup! gpio: Add GPIO driver for Vybrid Andrey Smirnov
2016-11-25 21:07 ` [PATCH 2/2] fixup! i.MX: Add VF610 clock tree initialization code Andrey Smirnov
2016-12-07 20:09 ` [PATCH 1/2] fixup! gpio: Add GPIO driver for Vybrid Sascha Hauer

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