Skip to contentSkip to conversation

ARM: add initial support for Rockchip boards

PATCH In review Beniamino Galvani 3 participants 18 messages Apr 27, 2014 – May 1, 2014

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

PATCH 2/11 mfd: add act8846 driver

In reply to Beniamino Galvani
---
 drivers/mfd/Kconfig   |    4 ++
 drivers/mfd/Makefile  |    1 +
 drivers/mfd/act8846.c |  154 +++++++++++++++++++++++++++++++++++++++++++++++++
 include/mfd/act8846.h |   56 ++++++++++++++++++
 4 files changed, 215 insertions(+)
 create mode 100644 drivers/mfd/act8846.c
 create mode 100644 include/mfd/act8846.h
drivers/mfd/Kconfig +4 -0
index 8873764..3af904d 100644
@@ -1,5 +1,9 @@
 menu MFD
 
+config MFD_ACT8846
+	depends on I2C
+	bool "ACT8846 driver"
+
 config MFD_LP3972
 	depends on I2C
 	bool "LP3972 driver"
drivers/mfd/Makefile +1 -0
index 2ad766d..49b9e35 100644
@@ -1,3 +1,4 @@
+obj-$(CONFIG_MFD_ACT8846)	+= act8846.o
 obj-$(CONFIG_MFD_LP3972)	+= lp3972.o
 obj-$(CONFIG_MFD_MC13XXX)	+= mc13xxx.o
 obj-$(CONFIG_MFD_MC34704)	+= mc34704.o
drivers/mfd/act8846.c new file +154 -0

154 lines not on this page · raw message

include/mfd/act8846.h new file +56 -0

56 lines not on this page · raw message

Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#4 lore raw

PATCH 4/11 ARM: rockchip: add PLL initialization function

In reply to Beniamino Galvani
---
 arch/arm/mach-rockchip/Makefile                    |    1 +
 arch/arm/mach-rockchip/include/mach/rockchip-pll.h |   26 +++++
 arch/arm/mach-rockchip/pll.c                       |  102 ++++++++++++++++++++
 3 files changed, 129 insertions(+)
 create mode 100644 arch/arm/mach-rockchip/include/mach/rockchip-pll.h
 create mode 100644 arch/arm/mach-rockchip/pll.c
arch/arm/mach-rockchip/Makefile +1 -0
index 820eb10..6f4ec16 100644
@@ -1 +1,2 @@
 obj-y += core.o
+obj-y += pll.o
\ No newline at end of file
arch/arm/mach-rockchip/include/mach/rockchip-pll.h new file +26 -0
new file mode 100644
index 0000000..c2cd888
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2014 Beniamino Galvani <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __MACH_ROCKCHIP_PLL_H
+#define __MACH_ROCKCHIP_PLL_H
+
+enum rk3188_plls {
+	RK3188_APLL = 0,	/* ARM */
+	RK3188_DPLL,		/* DDR */
+	RK3188_CPLL,		/* Codec */
+	RK3188_GPLL,		/* General */
+};
+
+int rk3188_pll_set_parameters(int pll, int nr, int nf, int no);
+
+#endif /* __MACH_ROCKCHIP_PLL_H */
arch/arm/mach-rockchip/pll.c new file +102 -0

102 lines not on this page · raw message

Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#5 lore raw

PATCH 5/11 clk: gate: add flags argument to clock gate constructor

In reply to Beniamino Galvani

This adds a clk_gate_flags argument to clock gate creation functions to allow the introduction of new clock gate modifiers.

---
 arch/arm/mach-imx/clk.h           |    2 +-
 arch/arm/mach-zynq/clk-zynq7000.c |    8 ++++----
 drivers/clk/clk-gate.c            |   12 +++++-------
 drivers/clk/mvebu/common.c        |    2 +-
 drivers/clk/mxs/clk-imx28.c       |    2 +-
 drivers/clk/tegra/clk-periph.c    |    2 +-
 include/linux/clk.h               |    7 +++++--
 7 files changed, 18 insertions(+), 17 deletions(-)
arch/arm/mach-imx/clk.h +1 -1
index 32a02db..e2f4143 100644
@@ -36,7 +36,7 @@ static inline struct clk *imx_clk_mux_p(const char *name, void __iomem *reg,
 static inline struct clk *imx_clk_gate(const char *name, const char *parent,
 		void __iomem *reg, u8 shift)
 {
-	return clk_gate(name, parent, reg, shift, CLK_SET_RATE_PARENT);
+	return clk_gate(name, parent, reg, shift, CLK_SET_RATE_PARENT, 0);
 }
 
 struct clk *imx_clk_pllv1(const char *name, const char *parent,
arch/arm/mach-zynq/clk-zynq7000.c +4 -4
index ea637d7..b4513a9 100644
@@ -374,11 +374,11 @@ static int zynq_clock_probe(struct device_d *dev)
 
 	clks[uart_clk] = zynq_periph_clk("uart_clk", slcr_base + 0x154);
 
-	clks[uart0] = clk_gate("uart0", "uart_clk", slcr_base + 0x154, 0, 0);
-	clks[uart1] = clk_gate("uart1", "uart_clk", slcr_base + 0x154, 1, 0);
+	clks[uart0] = clk_gate("uart0", "uart_clk", slcr_base + 0x154, 0, 0, 0);
+	clks[uart1] = clk_gate("uart1", "uart_clk", slcr_base + 0x154, 1, 0, 0);
 
-	clks[gem0] = clk_gate("gem0", "io_pll", slcr_base + 0x140, 0, 0);
-	clks[gem1] = clk_gate("gem1", "io_pll", slcr_base + 0x144, 1, 0);
+	clks[gem0] = clk_gate("gem0", "io_pll", slcr_base + 0x140, 0, 0, 0);
+	clks[gem1] = clk_gate("gem1", "io_pll", slcr_base + 0x144, 1, 0, 0);
 
 	clks[cpu_clk] = zynq_cpu_clk("cpu_clk", slcr_base + 0x120);
 
drivers/clk/clk-gate.c +5 -7
index b298b19..11c749a 100644
@@ -25,7 +25,6 @@ struct clk_gate {
 	void __iomem *reg;
 	int shift;
 	const char *parent;
-#define CLK_GATE_INVERTED	(1 << 0)
 	unsigned flags;
 };
 
@@ -85,7 +84,7 @@ static struct clk_ops clk_gate_ops = {
 };
 
 struct clk *clk_gate_alloc(const char *name, const char *parent,
-		void __iomem *reg, u8 shift, unsigned flags)
+		void __iomem *reg, u8 shift, unsigned flags, u8 clk_gate_flags)
 {
 	struct clk_gate *g = xzalloc(sizeof(*g));
 
@@ -97,6 +96,7 @@ struct clk *clk_gate_alloc(const char *name, const char *parent,
 	g->clk.flags = flags;
 	g->clk.parent_names = &g->parent;
 	g->clk.num_parents = 1;
+	g->flags = clk_gate_flags;
 
 	return &g->clk;
 }
@@ -109,12 +109,12 @@ void clk_gate_free(struct clk *clk_gate)
 }
 
 struct clk *clk_gate(const char *name, const char *parent, void __iomem *reg,
-		u8 shift, unsigned flags)
+		u8 shift, unsigned flags, u8 clk_gate_flags)
 {
 	struct clk *g;
 	int ret;
 
-	g = clk_gate_alloc(name , parent, reg, shift, flags);
+	g = clk_gate_alloc(name , parent, reg, shift, flags, clk_gate_flags);
 
 	ret = clk_register(g);
 	if (ret) {
@@ -131,13 +131,11 @@ struct clk *clk_gate_inverted(const char *name, const char *parent,
 	struct clk *clk;
 	struct clk_gate *g;
 
-	clk = clk_gate(name, parent, reg, shift, flags);
+	clk = clk_gate(name, parent, reg, shift, flags, CLK_GATE_INVERTED);
 	if (IS_ERR(clk))
 		return clk;
 
 	g = container_of(clk, struct clk_gate, clk);
 
-	g->flags = CLK_GATE_INVERTED;
-
 	return clk;
 }
drivers/clk/mvebu/common.c +1 -1
index 658ce3e..f3be5f2 100644
@@ -188,7 +188,7 @@ int mvebu_clk_gating_probe(struct device_d *dev)
 			(desc[n].parent) ? desc[n].parent : default_parent;
 		gate->bit_idx = desc[n].bit_idx;
 		gate->clk = clk_gate(desc[n].name, parent,
-				base, desc[n].bit_idx, 0);
+				base, desc[n].bit_idx, 0, 0);
 		WARN_ON(IS_ERR(gate->clk));
 	}
 
drivers/clk/mxs/clk-imx28.c +1 -1
index 934a194..36b71f6 100644
@@ -128,7 +128,7 @@ int __init mx28_clocks_init(void __iomem *regs)
 	clks[fec] = mxs_clk_gate("fec", "fec_sleep", ENET, 30);
 	clks[usb0_phy] = mxs_clk_gate("usb0_phy", "pll0", PLL0CTRL0, 18);
 	clks[usb1_phy] = mxs_clk_gate("usb1_phy", "pll1", PLL1CTRL0, 18);
-	clks[enet_out] = clk_gate("enet_out", "pll2", ENET, 18, 0);
+	clks[enet_out] = clk_gate("enet_out", "pll2", ENET, 18, 0, 0);
 	clks[lcdif_comp] = mxs_clk_lcdif("lcdif_comp", clks[ref_pix],
 			clks[lcdif_div], clks[lcdif]);
 
drivers/clk/tegra/clk-periph.c +1 -1
index 25616c8..be83955 100644
@@ -150,7 +150,7 @@ struct clk *_tegra_clk_register_periph(const char *name,
 		gate_offs = 0x10 + ((id >> 3) & 0xc);
 
 	periph->gate = clk_gate_alloc(NULL, NULL, clk_base + gate_offs,
-				      id & 0x1f, 0);
+				      id & 0x1f, 0, 0);
 	if (!periph->gate)
 		goto out_gate;
 
include/linux/clk.h +5 -2
index dd9fab7..fbfdd4f 100644
@@ -199,6 +199,8 @@ static inline int clk_set_rate(struct clk *clk, unsigned long rate)
 
 #define CLK_SET_RATE_PARENT     (1 << 0) /* propagate rate change up one level */
 
+#define CLK_GATE_INVERTED	(1 << 0)
+
 struct clk_ops {
 	int		(*enable)(struct clk *clk);
 	void		(*disable)(struct clk *clk);
@@ -267,10 +269,11 @@ struct clk *clk_mux(const char *name, void __iomem *reg,
 		unsigned flags);
 
 struct clk *clk_gate_alloc(const char *name, const char *parent,
-		void __iomem *reg, u8 shift, unsigned flags);
+		void __iomem *reg, u8 shift, unsigned flags,
+		u8 clk_gate_flags);
 void clk_gate_free(struct clk *clk_gate);
 struct clk *clk_gate(const char *name, const char *parent, void __iomem *reg,
-		u8 shift, unsigned flags);
+		u8 shift, unsigned flags, u8 clk_gate_flags);
 struct clk *clk_gate_inverted(const char *name, const char *parent, void __iomem *reg,
 		u8 shift, unsigned flags);
 int clk_is_enabled(struct clk *clk);
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#6 lore raw

PATCH 6/11 clk: gate: unify enable and disable functions handling

In reply to Beniamino Galvani

To avoid code duplication and make easier to introduce new flags.

---
 drivers/clk/clk-gate.c |   33 +++++++++++++++------------------
 1 file changed, 15 insertions(+), 18 deletions(-)
drivers/clk/clk-gate.c +15 -18
index 11c749a..54489c4 100644
@@ -30,36 +30,33 @@ struct clk_gate {
 
 #define to_clk_gate(_clk) container_of(_clk, struct clk_gate, clk)
 
-static int clk_gate_enable(struct clk *clk)
+static void clk_gate_endisable(struct clk *clk, int enable)
 {
-	struct clk_gate *g = container_of(clk, struct clk_gate, clk);
+	struct clk_gate *gate = container_of(clk, struct clk_gate, clk);
+	int set = gate->flags & CLK_GATE_INVERTED ? 1 : 0;
 	u32 val;
 
-	val = readl(g->reg);
+	set ^= enable;
+	val = readl(gate->reg);
 
-	if (g->flags & CLK_GATE_INVERTED)
-		val &= ~(1 << g->shift);
+	if (set)
+		val |= BIT(gate->shift);
 	else
-		val |= 1 << g->shift;
+		val &= ~BIT(gate->shift);
 
-	writel(val, g->reg);
+	writel(val, gate->reg);
+}
+
+static int clk_gate_enable(struct clk *clk)
+{
+	clk_gate_endisable(clk, 1);
 
 	return 0;
 }
 
 static void clk_gate_disable(struct clk *clk)
 {
-	struct clk_gate *g = container_of(clk, struct clk_gate, clk);
-	u32 val;
-
-	val = readl(g->reg);
-
-	if (g->flags & CLK_GATE_INVERTED)
-		val |= 1 << g->shift;
-	else
-		val &= ~(1 << g->shift);
-
-	writel(val, g->reg);
+	clk_gate_endisable(clk, 0);
 }
 
 static int clk_gate_is_enabled(struct clk *clk)
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw

PATCH 3/11 ARM: add basic support for Rockchip SoCs

In reply to Beniamino Galvani

This patch adds a basic support for the ARM-based Rockchip SoCs of the RK3xxx family.

---
 arch/arm/Kconfig                                   |    6 +++++
 arch/arm/Makefile                                  |    1 +
 arch/arm/mach-rockchip/Kconfig                     |    7 +++++
 arch/arm/mach-rockchip/Makefile                    |    1 +
 arch/arm/mach-rockchip/core.c                      |   28 ++++++++++++++++++++
 .../arm/mach-rockchip/include/mach/rockchip-regs.h |   25 +++++++++++++++++
 6 files changed, 68 insertions(+)
 create mode 100644 arch/arm/mach-rockchip/Kconfig
 create mode 100644 arch/arm/mach-rockchip/Makefile
 create mode 100644 arch/arm/mach-rockchip/core.c
 create mode 100644 arch/arm/mach-rockchip/include/mach/rockchip-regs.h
arch/arm/Kconfig +6 -0
index 3754646..a7db86c 100644
@@ -125,6 +125,11 @@ config ARCH_PXA
 	select GENERIC_GPIO
 	select HAS_POWEROFF
 
+config ARCH_ROCKCHIP
+	bool "Rockchip RX3xxx"
+	select CPU_V7
+	select ARM_SMP_TWD
+
 config ARCH_SOCFPGA
 	bool "Altera SOCFPGA cyclone5"
 	select HAS_DEBUG_LL
@@ -204,6 +209,7 @@ source arch/arm/mach-netx/Kconfig
 source arch/arm/mach-nomadik/Kconfig
 source arch/arm/mach-omap/Kconfig
 source arch/arm/mach-pxa/Kconfig
+source arch/arm/mach-rockchip/Kconfig
 source arch/arm/mach-samsung/Kconfig
 source arch/arm/mach-socfpga/Kconfig
 source arch/arm/mach-versatile/Kconfig
arch/arm/Makefile +1 -0
index c1bd836..3312a49 100644
@@ -64,6 +64,7 @@ machine-$(CONFIG_ARCH_NOMADIK)		:= nomadik
 machine-$(CONFIG_ARCH_NETX)		:= netx
 machine-$(CONFIG_ARCH_OMAP)		:= omap
 machine-$(CONFIG_ARCH_PXA)		:= pxa
+machine-$(CONFIG_ARCH_ROCKCHIP)		:= rockchip
 machine-$(CONFIG_ARCH_SAMSUNG)		:= samsung
 machine-$(CONFIG_ARCH_SOCFPGA)		:= socfpga
 machine-$(CONFIG_ARCH_VERSATILE)	:= versatile
arch/arm/mach-rockchip/Kconfig new file +7 -0
new file mode 100644
index 0000000..dfaf146
@@ -0,0 +1,7 @@
+if ARCH_ROCKCHIP
+
+config ARCH_TEXT_BASE
+	hex
+	default 0x68000000
+
+endif
arch/arm/mach-rockchip/Makefile new file +1 -0
new file mode 100644
index 0000000..820eb10
@@ -0,0 +1 @@
+obj-y += core.o
arch/arm/mach-rockchip/core.c new file +28 -0
new file mode 100644
index 0000000..bab06df
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2014 Beniamino Galvani <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include <asm/io.h>
+#include <common.h>
+#include <mach/rockchip-regs.h>
+
+void __noreturn reset_cpu(unsigned long addr)
+{
+	/* Map bootrom from address 0 */
+	writel(RK_SOC_CON0_REMAP << 16, RK_GRF_BASE + RK_GRF_SOC_CON0);
+	/* Reset */
+	writel(0xeca8, RK_CRU_BASE + RK_CRU_GLB_SRST_SND);
+
+	while (1)
+		;
+}
+EXPORT_SYMBOL(reset_cpu);
arch/arm/mach-rockchip/include/mach/rockchip-regs.h new file +25 -0
new file mode 100644
index 0000000..a6a1c64
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2014 Beniamino Galvani <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __MACH_ROCKCHIP_REGS_H
+#define __MACH_ROCKCHIP_REGS_H
+
+#define RK_CRU_BASE		0x20000000
+#define RK_GRF_BASE		0x20008000
+
+#define RK_CRU_GLB_SRST_SND	0x0104
+#define RK_GRF_SOC_CON0		0x00a0
+
+#define RK_SOC_CON0_REMAP	(1 << 12)
+
+#endif /* __MACH_ROCKCHIP_REGS_H */
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#8 lore raw

PATCH 8/11 clk: add rockchip clock gate driver

In reply to Beniamino Galvani
---
 arch/arm/Kconfig                    |    3 ++
 drivers/clk/Makefile                |    1 +
 drivers/clk/rockchip/Makefile       |    1 +
 drivers/clk/rockchip/clk-rockchip.c |   86 +++++++++++++++++++++++++++++++++++
 4 files changed, 91 insertions(+)
 create mode 100644 drivers/clk/rockchip/Makefile
 create mode 100644 drivers/clk/rockchip/clk-rockchip.c
arch/arm/Kconfig +3 -0
index a7db86c..580faa0 100644
@@ -129,6 +129,9 @@ config ARCH_ROCKCHIP
 	bool "Rockchip RX3xxx"
 	select CPU_V7
 	select ARM_SMP_TWD
+	select COMMON_CLK
+	select CLKDEV_LOOKUP
+	select COMMON_CLK_OF_PROVIDER
 
 config ARCH_SOCFPGA
 	bool "Altera SOCFPGA cyclone5"
drivers/clk/Makefile +1 -0
index 0687b3c..fa707dd 100644
@@ -4,6 +4,7 @@ obj-$(CONFIG_CLKDEV_LOOKUP)	+= clkdev.o
 
 obj-$(CONFIG_ARCH_MVEBU)	+= mvebu/
 obj-$(CONFIG_ARCH_MXS)		+= mxs/
+obj-$(CONFIG_ARCH_ROCKCHIP)	+= rockchip/
 obj-$(CONFIG_ARCH_TEGRA)	+= tegra/
 obj-$(CONFIG_CLK_SOCFPGA)	+= socfpga.o
 obj-$(CONFIG_MACH_MIPS_ATH79)	+= clk-ar933x.o
drivers/clk/rockchip/Makefile new file +1 -0
new file mode 100644
index 0000000..1c5271f
@@ -0,0 +1 @@
+obj-y += clk-rockchip.o
\ No newline at end of file
drivers/clk/rockchip/clk-rockchip.c new file +86 -0

86 lines not on this page · raw message

Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#9 lore raw

PATCH 9/11 pinctrl: add rockchip pinctrl and gpio drivers

In reply to Beniamino Galvani
---
 arch/arm/Kconfig                   |    2 +
 drivers/pinctrl/Kconfig            |    7 +
 drivers/pinctrl/Makefile           |    1 +
 drivers/pinctrl/pinctrl-rockchip.c |  560 ++++++++++++++++++++++++++++++++++++
 4 files changed, 570 insertions(+)
 create mode 100644 drivers/pinctrl/pinctrl-rockchip.c
arch/arm/Kconfig +2 -0
index 580faa0..991a411 100644
@@ -132,6 +132,8 @@ config ARCH_ROCKCHIP
 	select COMMON_CLK
 	select CLKDEV_LOOKUP
 	select COMMON_CLK_OF_PROVIDER
+	select GPIOLIB
+	select PINCTRL_ROCKCHIP
 
 config ARCH_SOCFPGA
 	bool "Altera SOCFPGA cyclone5"
drivers/pinctrl/Kconfig +7 -0
index 18adbf7..b9b66f9 100644
@@ -24,6 +24,13 @@ config PINCTRL_IMX_IOMUX_V3
 	help
 	  This iomux controller is found on i.MX25,35,51,53,6.
 
+config PINCTRL_ROCKCHIP
+	select PINCTRL
+	select GPIO_GENERIC
+	bool
+	help
+	  The pinmux controller found on Rockchip SoCs.
+
 config PINCTRL_SINGLE
 	select PINCTRL
 	bool "pinctrl single"
drivers/pinctrl/Makefile +1 -0
index af705ea..3978c56 100644
@@ -2,6 +2,7 @@ obj-$(CONFIG_PINCTRL)	+= pinctrl.o
 obj-$(CONFIG_PINCTRL_IMX_IOMUX_V1) += imx-iomux-v1.o
 obj-$(CONFIG_PINCTRL_IMX_IOMUX_V2) += imx-iomux-v2.o
 obj-$(CONFIG_PINCTRL_IMX_IOMUX_V3) += imx-iomux-v3.o
+obj-$(CONFIG_PINCTRL_ROCKCHIP) += pinctrl-rockchip.o
 obj-$(CONFIG_PINCTRL_SINGLE) += pinctrl-single.o
 obj-$(CONFIG_PINCTRL_TEGRA20) += pinctrl-tegra20.o
 obj-$(CONFIG_PINCTRL_TEGRA30) += pinctrl-tegra30.o
drivers/pinctrl/pinctrl-rockchip.c new file +560 -0

560 lines not on this page · raw message

Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#7 lore raw

PATCH 7/11 clk: gate: add CLK_GATE_HIWORD_MASK flag

In reply to Beniamino Galvani

Clock gates having the CLK_GATE_HIWORD_MASK flag set use the upper 16 bits of the register as a "write enable" mask for the value in the lower 16 bits.

---
 drivers/clk/clk-gate.c |   17 ++++++++++++-----
 include/linux/clk.h    |    1 +
 2 files changed, 13 insertions(+), 5 deletions(-)
drivers/clk/clk-gate.c +12 -5
index 54489c4..85eba3d 100644
@@ -37,12 +37,19 @@ static void clk_gate_endisable(struct clk *clk, int enable)
 	u32 val;
 
 	set ^= enable;
-	val = readl(gate->reg);
 
-	if (set)
-		val |= BIT(gate->shift);
-	else
-		val &= ~BIT(gate->shift);
+	if (gate->flags & CLK_GATE_HIWORD_MASK) {
+		val = BIT(gate->shift + 16);
+		if (set)
+			val |= BIT(gate->shift);
+	} else {
+		val = readl(gate->reg);
+
+		if (set)
+			val |= BIT(gate->shift);
+		else
+			val &= ~BIT(gate->shift);
+	}
 
 	writel(val, gate->reg);
 }
include/linux/clk.h +1 -0
index fbfdd4f..49cb5a2 100644
@@ -200,6 +200,7 @@ static inline int clk_set_rate(struct clk *clk, unsigned long rate)
 #define CLK_SET_RATE_PARENT     (1 << 0) /* propagate rate change up one level */
 
 #define CLK_GATE_INVERTED	(1 << 0)
+#define CLK_GATE_HIWORD_MASK	(1 << 1)
 
 struct clk_ops {
 	int		(*enable)(struct clk *clk);
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#10 lore raw

PATCH 10/11 ARM: dts: add Rockchip devicetree files

In reply to Beniamino Galvani
---
 arch/arm/dts/rk3188-clocks.dtsi        |  289 +++++++++++++++++++++++++++++++
 arch/arm/dts/rk3188-radxarock.dts      |   32 ++++
 arch/arm/dts/rk3188.dtsi               |  298 ++++++++++++++++++++++++++++++++
 arch/arm/dts/rk3xxx.dtsi               |  134 ++++++++++++++
 include/dt-bindings/pinctrl/rockchip.h |   32 ++++
 5 files changed, 785 insertions(+)
 create mode 100644 arch/arm/dts/rk3188-clocks.dtsi
 create mode 100644 arch/arm/dts/rk3188-radxarock.dts
 create mode 100644 arch/arm/dts/rk3188.dtsi
 create mode 100644 arch/arm/dts/rk3xxx.dtsi
 create mode 100644 include/dt-bindings/pinctrl/rockchip.h
arch/arm/dts/rk3188-clocks.dtsi new file +289 -0
new file mode 100644
index 0000000..b1b92dc
@@ -0,0 +1,289 @@
+/*
+ * Copyright (c) 2013 MundoReader S.L.
+ * Author: Heiko Stuebner <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/ {
+	clocks {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		/*
+		 * This is a dummy clock, to be used as placeholder on
+		 * other mux clocks when a specific parent clock is not
+		 * yet implemented. It should be dropped when the driver
+		 * is complete.
+		 */
+		dummy: dummy {
+			compatible = "fixed-clock";
+			clock-frequency = <0>;
+			#clock-cells = <0>;
+		};
+
+		xin24m: xin24m {
+			compatible = "fixed-clock";
+			clock-frequency = <24000000>;
+			#clock-cells = <0>;
+		};
+
+		dummy48m: dummy48m {
+			compatible = "fixed-clock";
+			clock-frequency = <48000000>;
+			#clock-cells = <0>;
+		};
+
+		dummy150m: dummy150m {
+			compatible = "fixed-clock";
+			clock-frequency = <150000000>;
+			#clock-cells = <0>;
+		};
+
+		clk_gates0: gate-clk@200000d0 {
+			compatible = "rockchip,rk2928-gate-clk";
+			reg = <0x200000d0 0x4>;
+			clocks = <&dummy150m>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>;
+
+			clock-output-names =
+				"gate_core_periph", "gate_cpu_gpll",
+				"gate_ddrphy", "gate_aclk_cpu",
+				"gate_hclk_cpu", "gate_pclk_cpu",
+				"gate_atclk_cpu", "gate_aclk_core",
+				"reserved", "gate_i2s0",
+				"gate_i2s0_frac", "reserved",
+				"reserved", "gate_spdif",
+				"gate_spdif_frac", "gate_testclk";
+
+			#clock-cells = <1>;
+		};
+
+		clk_gates1: gate-clk@200000d4 {
+			compatible = "rockchip,rk2928-gate-clk";
+			reg = <0x200000d4 0x4>;
+			clocks = <&xin24m>, <&xin24m>,
+				 <&xin24m>, <&dummy>,
+				 <&dummy>, <&xin24m>,
+				 <&xin24m>, <&dummy>,
+				 <&xin24m>, <&dummy>,
+				 <&xin24m>, <&dummy>,
+				 <&xin24m>, <&dummy>,
+				 <&xin24m>, <&dummy>;
+
+			clock-output-names =
+				"gate_timer0", "gate_timer1",
+				"gate_timer3", "gate_jtag",
+				"gate_aclk_lcdc1_src", "gate_otgphy0",
+				"gate_otgphy1", "gate_ddr_gpll",
+				"gate_uart0", "gate_frac_uart0",
+				"gate_uart1", "gate_frac_uart1",
+				"gate_uart2", "gate_frac_uart2",
+				"gate_uart3", "gate_frac_uart3";
+
+			#clock-cells = <1>;
+		};
+
+		clk_gates2: gate-clk@200000d8 {
+			compatible = "rockchip,rk2928-gate-clk";
+			reg = <0x200000d8 0x4>;
+			clocks = <&clk_gates2 1>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&clk_gates2 3>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy48m>,
+				 <&dummy>, <&dummy48m>,
+				 <&dummy>, <&dummy>;
+
+			clock-output-names =
+				"gate_periph_src", "gate_aclk_periph",
+				"gate_hclk_periph", "gate_pclk_periph",
+				"gate_smc", "gate_mac",
+				"gate_hsadc", "gate_hsadc_frac",
+				"gate_saradc", "gate_spi0",
+				"gate_spi1", "gate_mmc0",
+				"gate_mac_lbtest", "gate_mmc1",
+				"gate_emmc", "reserved";
+
+			#clock-cells = <1>;
+		};
+
+		clk_gates3: gate-clk@200000dc {
+			compatible = "rockchip,rk2928-gate-clk";
+			reg = <0x200000dc 0x4>;
+			clocks = <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&xin24m>, <&xin24m>,
+				 <&dummy>, <&dummy>,
+				 <&xin24m>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&xin24m>, <&dummy>;
+
+			clock-output-names =
+				"gate_aclk_lcdc0_src", "gate_dclk_lcdc0",
+				"gate_dclk_lcdc1", "gate_pclkin_cif0",
+				"gate_timer2", "gate_timer4",
+				"gate_hsicphy", "gate_cif0_out",
+				"gate_timer5", "gate_aclk_vepu",
+				"gate_hclk_vepu", "gate_aclk_vdpu",
+				"gate_hclk_vdpu", "reserved",
+				"gate_timer6", "gate_aclk_gpu_src";
+
+			#clock-cells = <1>;
+		};
+
+		clk_gates4: gate-clk@200000e0 {
+			compatible = "rockchip,rk2928-gate-clk";
+			reg = <0x200000e0 0x4>;
+			clocks = <&clk_gates2 2>, <&clk_gates2 3>,
+				 <&clk_gates2 1>, <&clk_gates2 1>,
+				 <&clk_gates2 1>, <&clk_gates2 2>,
+				 <&clk_gates2 2>, <&clk_gates2 2>,
+				 <&clk_gates0 4>, <&clk_gates0 4>,
+				 <&clk_gates0 3>, <&dummy>,
+				 <&clk_gates0 3>, <&dummy>,
+				 <&dummy>, <&dummy>;
+
+			clock-output-names =
+				"gate_hclk_peri_axi_matrix", "gate_pclk_peri_axi_matrix",
+				"gate_aclk_cpu_peri", "gate_aclk_peri_axi_matrix",
+				"gate_aclk_pei_niu", "gate_hclk_usb_peri",
+				"gate_hclk_peri_ahb_arbi", "gate_hclk_emem_peri",
+				"gate_hclk_cpubus", "gate_hclk_ahb2apb",
+				"gate_aclk_strc_sys", "reserved",
+				"gate_aclk_intmem", "reserved",
+				"gate_hclk_imem1", "gate_hclk_imem0";
+
+			#clock-cells = <1>;
+		};
+
+		clk_gates5: gate-clk@200000e4 {
+			compatible = "rockchip,rk2928-gate-clk";
+			reg = <0x200000e4 0x4>;
+			clocks = <&clk_gates0 3>, <&clk_gates2 1>,
+				 <&clk_gates0 5>, <&clk_gates0 5>,
+				 <&clk_gates0 5>, <&clk_gates0 5>,
+				 <&clk_gates0 4>, <&clk_gates0 5>,
+				 <&clk_gates2 1>, <&clk_gates2 2>,
+				 <&clk_gates2 2>, <&clk_gates2 2>,
+				 <&clk_gates2 2>, <&clk_gates4 5>;
+
+			clock-output-names =
+				"gate_aclk_dmac1", "gate_aclk_dmac2",
+				"gate_pclk_efuse", "gate_pclk_tzpc",
+				"gate_pclk_grf", "gate_pclk_pmu",
+				"gate_hclk_rom", "gate_pclk_ddrupctl",
+				"gate_aclk_smc", "gate_hclk_nandc",
+				"gate_hclk_mmc0", "gate_hclk_mmc1",
+				"gate_hclk_emmc", "gate_hclk_otg0";
+
+			#clock-cells = <1>;
+		};
+
+		clk_gates6: gate-clk@200000e8 {
+			compatible = "rockchip,rk2928-gate-clk";
+			reg = <0x200000e8 0x4>;
+			clocks = <&clk_gates3 0>, <&clk_gates0 4>,
+				 <&clk_gates0 4>, <&clk_gates1 4>,
+				 <&clk_gates0 4>, <&clk_gates3 0>,
+				 <&dummy>, <&dummy>,
+				 <&clk_gates3 0>, <&clk_gates0 4>,
+				 <&clk_gates0 4>, <&clk_gates1 4>,
+				 <&clk_gates0 4>, <&clk_gates3 0>;
+
+			clock-output-names =
+				"gate_aclk_lcdc0", "gate_hclk_lcdc0",
+				"gate_hclk_lcdc1", "gate_aclk_lcdc1",
+				"gate_hclk_cif0", "gate_aclk_cif0",
+				"reserved", "reserved",
+				"gate_aclk_ipp", "gate_hclk_ipp",
+				"gate_hclk_rga", "gate_aclk_rga",
+				"gate_hclk_vio_bus", "gate_aclk_vio0";
+
+			#clock-cells = <1>;
+		};
+
+		clk_gates7: gate-clk@200000ec {
+			compatible = "rockchip,rk2928-gate-clk";
+			reg = <0x200000ec 0x4>;
+			clocks = <&clk_gates2 2>, <&clk_gates0 4>,
+				 <&clk_gates0 4>, <&dummy>,
+				 <&dummy>, <&clk_gates2 2>,
+				 <&clk_gates2 2>, <&clk_gates0 5>,
+				 <&dummy>, <&clk_gates0 5>,
+				 <&clk_gates0 5>, <&clk_gates2 3>,
+				 <&clk_gates2 3>, <&clk_gates2 3>,
+				 <&clk_gates2 3>, <&clk_gates2 3>;
+
+			clock-output-names =
+				"gate_hclk_emac", "gate_hclk_spdif",
+				"gate_hclk_i2s0_2ch", "gate_hclk_otg1",
+				"gate_hclk_hsic", "gate_hclk_hsadc",
+				"gate_hclk_pidf", "gate_pclk_timer0",
+				"reserved", "gate_pclk_timer2",
+				"gate_pclk_pwm01", "gate_pclk_pwm23",
+				"gate_pclk_spi0", "gate_pclk_spi1",
+				"gate_pclk_saradc", "gate_pclk_wdt";
+
+			#clock-cells = <1>;
+		};
+
+		clk_gates8: gate-clk@200000f0 {
+			compatible = "rockchip,rk2928-gate-clk";
+			reg = <0x200000f0 0x4>;
+			clocks = <&clk_gates0 5>, <&clk_gates0 5>,
+				 <&clk_gates2 3>, <&clk_gates2 3>,
+				 <&clk_gates0 5>, <&clk_gates0 5>,
+				 <&clk_gates2 3>, <&clk_gates2 3>,
+				 <&clk_gates2 3>, <&clk_gates0 5>,
+				 <&clk_gates0 5>, <&clk_gates0 5>,
+				 <&clk_gates2 3>, <&dummy>;
+
+			clock-output-names =
+				"gate_pclk_uart0", "gate_pclk_uart1",
+				"gate_pclk_uart2", "gate_pclk_uart3",
+				"gate_pclk_i2c0", "gate_pclk_i2c1",
+				"gate_pclk_i2c2", "gate_pclk_i2c3",
+				"gate_pclk_i2c4", "gate_pclk_gpio0",
+				"gate_pclk_gpio1", "gate_pclk_gpio2",
+				"gate_pclk_gpio3", "gate_aclk_gps";
+
+			#clock-cells = <1>;
+		};
+
+		clk_gates9: gate-clk@200000f4 {
+			compatible = "rockchip,rk2928-gate-clk";
+			reg = <0x200000f4 0x4>;
+			clocks = <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>,
+				 <&dummy>, <&dummy>;
+
+			clock-output-names =
+				"gate_clk_core_dbg", "gate_pclk_dbg",
+				"gate_clk_trace", "gate_atclk",
+				"gate_clk_l2c", "gate_aclk_vio1",
+				"gate_pclk_publ", "gate_aclk_gpu";
+
+			#clock-cells = <1>;
+		};
+	};
+
+};
arch/arm/dts/rk3188-radxarock.dts new file +32 -0
new file mode 100644
index 0000000..be2a302
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2013 Heiko Stuebner <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+/dts-v1/;
+#include "rk3188.dtsi"
+
+/ {
+	model = "Radxa Rock";
+
+	memory {
+		reg = <0x60000000 0x80000000>;
+	};
+
+	soc {
+		uart2: serial@20064000 {
+			pinctrl-names = "default";
+			pinctrl-0 = <&uart2_xfer>;
+			status = "okay";
+		};
+	};
+};
arch/arm/dts/rk3188.dtsi new file +298 -0

298 lines not on this page · raw message

arch/arm/dts/rk3xxx.dtsi new file +134 -0

134 lines not on this page · raw message

include/dt-bindings/pinctrl/rockchip.h new file +32 -0
new file mode 100644
index 0000000..cd5788b
@@ -0,0 +1,32 @@
+/*
+ * Header providing constants for Rockchip pinctrl bindings.
+ *
+ * Copyright (c) 2013 MundoReader S.L.
+ * Author: Heiko Stuebner <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __DT_BINDINGS_ROCKCHIP_PINCTRL_H__
+#define __DT_BINDINGS_ROCKCHIP_PINCTRL_H__
+
+#define RK_GPIO0	0
+#define RK_GPIO1	1
+#define RK_GPIO2	2
+#define RK_GPIO3	3
+#define RK_GPIO4	4
+#define RK_GPIO6	6
+
+#define RK_FUNC_GPIO	0
+#define RK_FUNC_1	1
+#define RK_FUNC_2	2
+
+#endif
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#11 lore raw

PATCH 11/11 ARM: rockchip: add radxa-rock board

In reply to Beniamino Galvani
---
 arch/arm/boards/Makefile                    |    1 +
 arch/arm/boards/radxa-rock/Makefile         |    2 +
 arch/arm/boards/radxa-rock/board.c          |   78 +++++++++++++++++++++++++++
 arch/arm/boards/radxa-rock/env/config-board |    6 +++
 arch/arm/boards/radxa-rock/lowlevel.c       |   23 ++++++++
 arch/arm/configs/radxa-rock_defconfig       |   62 +++++++++++++++++++++
 arch/arm/mach-rockchip/Kconfig              |    8 +++
 7 files changed, 180 insertions(+)
 create mode 100644 arch/arm/boards/radxa-rock/Makefile
 create mode 100644 arch/arm/boards/radxa-rock/board.c
 create mode 100644 arch/arm/boards/radxa-rock/env/config-board
 create mode 100644 arch/arm/boards/radxa-rock/lowlevel.c
 create mode 100644 arch/arm/configs/radxa-rock_defconfig
arch/arm/boards/Makefile +1 -0
index 0c1497f..06e7f2c 100644
@@ -74,6 +74,7 @@ obj-$(CONFIG_MACH_PM9263)			+= pm9263/
 obj-$(CONFIG_MACH_PM9G45)			+= pm9g45/
 obj-$(CONFIG_MACH_QIL_A9260)			+= qil-a926x/
 obj-$(CONFIG_MACH_QIL_A9G20)			+= qil-a926x/
+obj-$(CONFIG_MACH_RADXA_ROCK)			+= radxa-rock/
 obj-$(CONFIG_MACH_REALQ7)			+= datamodul-edm-qmx6/
 obj-$(CONFIG_MACH_RPI)				+= raspberry-pi/
 obj-$(CONFIG_MACH_SABRELITE)			+= freescale-mx6-sabrelite/
arch/arm/boards/radxa-rock/Makefile new file +2 -0
new file mode 100644
index 0000000..79c8aec
@@ -0,0 +1,2 @@
+obj-$(CONFIG_MACH_RADXA_ROCK) += board.o
+lwl-y += lowlevel.o
arch/arm/boards/radxa-rock/board.c new file +78 -0

78 lines not on this page · raw message

arch/arm/boards/radxa-rock/env/config-board new file +6 -0
new file mode 100644
index 0000000..d986e30
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# board defaults, do not change in running system. Change /env/config
+# instead
+
+global.linux.bootargs.base="console=ttyS2,115200"
\ No newline at end of file
arch/arm/boards/radxa-rock/lowlevel.c new file +23 -0
new file mode 100644
index 0000000..c68d229
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2014 Beniamino Galvani <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#include <common.h>
+#include <sizes.h>
+#include <asm/barebox-arm-head.h>
+#include <asm/barebox-arm.h>
+
+void __naked barebox_arm_reset_vector(void)
+{
+	arm_cpu_lowlevel_init();
+	barebox_arm_entry(0x60000000, SZ_2G, 0);
+}
arch/arm/configs/radxa-rock_defconfig new file +62 -0

62 lines not on this page · raw message

arch/arm/mach-rockchip/Kconfig +8 -0
index dfaf146..9348651 100644
@@ -4,4 +4,12 @@ config ARCH_TEXT_BASE
 	hex
 	default 0x68000000
 
+choice
+	prompt "Board type"
+
+config MACH_RADXA_ROCK
+	bool "Radxa rock board"
+
+endchoice
+
 endif
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#0 lore raw

cover ARM: add initial support for Rockchip boards

This series adds an initial support for Rockchip SoCs and has been tested on a Radxa Rock board, on which I'm able to load a kernel from the network and boot it [1].

At the moment Barebox must be chainloaded from the Rockchip binary bootloader which performs low-level initializations and loads Barebox from the "boot" partition on the NAND.

Barebox should be written using the same procedure used for kernels:
it must be prepared with the mkimage tool and then written with rkflashkit.

There is a u-boot code released by Rockchip [2] which probably includes all the low-level initializations but I'm not brave enough to try it.

The patchset adds ethernet and pinctrl drivers, PLL and clocks initialization, and code to power on the external PHY of the board through the PMIC.

Beniamino

[1] https://gist.github.com/anonymous/41ccb09030005acb7f89
[2] http://dl.radxa.com/rock/source/.ubootrk.tar.gz

Beniamino Galvani (11):
net: add ARC EMAC driver
mfd: add act8846 driver
ARM: add basic support for Rockchip SoCs
ARM: rockchip: add PLL initialization function
clk: gate: add flags argument to clock gate constructor
clk: gate: unify enable and disable functions handling
clk: gate: add CLK_GATE_HIWORD_MASK flag
clk: add rockchip clock gate driver
pinctrl: add rockchip pinctrl and gpio drivers
ARM: dts: add Rockchip devicetree files
ARM: rockchip: add radxa-rock board

 arch/arm/Kconfig                                   |   11 +
 arch/arm/Makefile                                  |    1 +
 arch/arm/boards/Makefile                           |    1 +
 arch/arm/boards/radxa-rock/Makefile                |    2 +
 arch/arm/boards/radxa-rock/board.c                 |   78 +++
 arch/arm/boards/radxa-rock/env/config-board        |    6 +
 arch/arm/boards/radxa-rock/lowlevel.c              |   23 +
 arch/arm/configs/radxa-rock_defconfig              |   62 +++
 arch/arm/dts/rk3188-clocks.dtsi                    |  289 ++++++++++
 arch/arm/dts/rk3188-radxarock.dts                  |   32 ++
 arch/arm/dts/rk3188.dtsi                           |  298 +++++++++++
 arch/arm/dts/rk3xxx.dtsi                           |  134 +++++
 arch/arm/mach-imx/clk.h                            |    2 +-
 arch/arm/mach-rockchip/Kconfig                     |   15 +
 arch/arm/mach-rockchip/Makefile                    |    2 +
 arch/arm/mach-rockchip/core.c                      |   28 +
 arch/arm/mach-rockchip/include/mach/rockchip-pll.h |   26 +
 .../arm/mach-rockchip/include/mach/rockchip-regs.h |   25 +
 arch/arm/mach-rockchip/pll.c                       |  102 ++++
 arch/arm/mach-zynq/clk-zynq7000.c                  |    8 +-
 drivers/clk/Makefile                               |    1 +
 drivers/clk/clk-gate.c                             |   54 +-
 drivers/clk/mvebu/common.c                         |    2 +-
 drivers/clk/mxs/clk-imx28.c                        |    2 +-
 drivers/clk/rockchip/Makefile                      |    1 +
 drivers/clk/rockchip/clk-rockchip.c                |   86 +++
 drivers/clk/tegra/clk-periph.c                     |    2 +-
 drivers/mfd/Kconfig                                |    4 +
 drivers/mfd/Makefile                               |    1 +
 drivers/mfd/act8846.c                              |  154 ++++++
 drivers/net/Kconfig                                |    7 +
 drivers/net/Makefile                               |    1 +
 drivers/net/arc_emac.c                             |  469 ++++++++++++++++
 drivers/pinctrl/Kconfig                            |    7 +
 drivers/pinctrl/Makefile                           |    1 +
 drivers/pinctrl/pinctrl-rockchip.c                 |  560 ++++++++++++++++++++
 include/dt-bindings/pinctrl/rockchip.h             |   32 ++
 include/linux/clk.h                                |    8 +-
 include/mfd/act8846.h                              |   56 ++
 39 files changed, 2557 insertions(+), 36 deletions(-)
 create mode 100644 arch/arm/boards/radxa-rock/Makefile
 create mode 100644 arch/arm/boards/radxa-rock/board.c
 create mode 100644 arch/arm/boards/radxa-rock/env/config-board
 create mode 100644 arch/arm/boards/radxa-rock/lowlevel.c
 create mode 100644 arch/arm/configs/radxa-rock_defconfig
 create mode 100644 arch/arm/dts/rk3188-clocks.dtsi
 create mode 100644 arch/arm/dts/rk3188-radxarock.dts
 create mode 100644 arch/arm/dts/rk3188.dtsi
 create mode 100644 arch/arm/dts/rk3xxx.dtsi
 create mode 100644 arch/arm/mach-rockchip/Kconfig
 create mode 100644 arch/arm/mach-rockchip/Makefile
 create mode 100644 arch/arm/mach-rockchip/core.c
 create mode 100644 arch/arm/mach-rockchip/include/mach/rockchip-pll.h
 create mode 100644 arch/arm/mach-rockchip/include/mach/rockchip-regs.h
 create mode 100644 arch/arm/mach-rockchip/pll.c
 create mode 100644 drivers/clk/rockchip/Makefile
 create mode 100644 drivers/clk/rockchip/clk-rockchip.c
 create mode 100644 drivers/mfd/act8846.c
 create mode 100644 drivers/net/arc_emac.c
 create mode 100644 drivers/pinctrl/pinctrl-rockchip.c
 create mode 100644 include/dt-bindings/pinctrl/rockchip.h
 create mode 100644 include/mfd/act8846.h
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

PATCH 1/11 net: add ARC EMAC driver

This patch adds support for the Synopsys 10/100 Mbps Ethernet MAC used on some ARC devices and on Rockchip SoCs.

---
 drivers/net/Kconfig    |    7 +
 drivers/net/Makefile   |    1 +
 drivers/net/arc_emac.c |  469 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 477 insertions(+)
 create mode 100644 drivers/net/arc_emac.c
drivers/net/Kconfig +7 -0
index fd96859..057abd2 100644
@@ -32,6 +32,13 @@ config DRIVER_NET_AR231X
 	help
 	  Support for the AR231x/531x ethernet controller
 
+config DRIVER_NET_ARC_EMAC
+	bool "ARC Ethernet MAC driver"
+	select PHYLIB
+	help
+	  This option enables support for the ARC EMAC ethernet
+	  controller.
+
 config DRIVER_NET_AT91_ETHER
 	bool "at91 ethernet driver"
 	depends on HAS_AT91_ETHER
drivers/net/Makefile +1 -0
index c1c4559..65f0d8b 100644
@@ -2,6 +2,7 @@ obj-$(CONFIG_PHYLIB)			+= phy/
 obj-$(CONFIG_NET_USB)			+= usb/
 
 obj-$(CONFIG_DRIVER_NET_AR231X)		+= ar231x.o
+obj-$(CONFIG_DRIVER_NET_ARC_EMAC)	+= arc_emac.o
 obj-$(CONFIG_DRIVER_NET_AT91_ETHER)	+= at91_ether.o
 obj-$(CONFIG_DRIVER_NET_CALXEDA_XGMAC)	+= xgmac.o
 obj-$(CONFIG_DRIVER_NET_CS8900)		+= cs8900.o
drivers/net/arc_emac.c new file +469 -0

469 lines not on this page · raw message

Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
maintainer
#12 lore raw
In reply to Beniamino Galvani

Hi Beniamino,

Quoted 12 lines · Beniamino Galvani

This series adds an initial support for Rockchip SoCs and has been tested on a Radxa Rock board, on which I'm able to load a kernel from the network and boot it [1].

At the moment Barebox must be chainloaded from the Rockchip binary bootloader which performs low-level initializations and loads Barebox from the "boot" partition on the NAND.

Barebox should be written using the same procedure used for kernels:
it must be prepared with the mkimage tool and then written with rkflashkit.

Quoted 7 lines

There is a u-boot code released by Rockchip [2] which probably includes all the low-level initializations but I'm not brave enough to try it.

The patchset adds ethernet and pinctrl drivers, PLL and clocks initialization, and code to power on the external PHY of the board through the PMIC.

Awesome! I'm happy to see barebox support for one of the more popular Linux ARM architectures.

The patches look quite good and there's not much to be done to make them ready for merging.

I'm just on the way to merge the Linux devicetree files into barebox and use them where possible so we do not duplicate the devicetrees in barebox. Could you post a followup once to base the rockchip dts files on the Linux dts files once I have everything in place? I saw that you already use the mainline dts files, but these do not contain the ethernet nodes for example.

Also I'd like to let rockchip use the multi image mechanism. This is not much work when you know what to do. You could change it yourself or I do the change for you, but in this case, could you give the result a test?

Sascha

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#13 lore raw
Quoted 29 lines · Sascha Hauer

Hi Beniamino,

Quoted 12 lines · Beniamino Galvani

This series adds an initial support for Rockchip SoCs and has been tested on a Radxa Rock board, on which I'm able to load a kernel from the network and boot it [1].

At the moment Barebox must be chainloaded from the Rockchip binary bootloader which performs low-level initializations and loads Barebox from the "boot" partition on the NAND.

Barebox should be written using the same procedure used for kernels:
it must be prepared with the mkimage tool and then written with rkflashkit.

Quoted 7 lines

There is a u-boot code released by Rockchip [2] which probably includes all the low-level initializations but I'm not brave enough to try it.

The patchset adds ethernet and pinctrl drivers, PLL and clocks initialization, and code to power on the external PHY of the board through the PMIC.

Awesome! I'm happy to see barebox support for one of the more popular Linux ARM architectures.

The patches look quite good and there's not much to be done to make them ready for merging.

Quoted 6 lines

I'm just on the way to merge the Linux devicetree files into barebox and use them where possible so we do not duplicate the devicetrees in barebox. Could you post a followup once to base the rockchip dts files on the Linux dts files once I have everything in place? I saw that you already use the mainline dts files, but these do not contain the ethernet nodes for example.

Ok, I will do. Just a question: my series is against -next because it requires commit 6720ad6f16db5839a72aa8b53e89918a4f0059bd "clk: move of_clk_get_parent_name() to common clk code", while your dts branch derives from master and doesn't have this commit. Which branch should I base the next version on?

Quoted 3 lines

Also I'd like to let rockchip use the multi image mechanism. This is not much work when you know what to do. You could change it yourself or I do the change for you, but in this case, could you give the result a test?

I'm not familiar with multi-image support but I would be glad to try it if you're willing to implement it.

Beniamino

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

maintainer
#14 lore raw
Quoted 37 lines · Beniamino Galvani
Quoted 29 lines · Sascha Hauer

Hi Beniamino,

Quoted 12 lines · Beniamino Galvani

This series adds an initial support for Rockchip SoCs and has been tested on a Radxa Rock board, on which I'm able to load a kernel from the network and boot it [1].

At the moment Barebox must be chainloaded from the Rockchip binary bootloader which performs low-level initializations and loads Barebox from the "boot" partition on the NAND.

Barebox should be written using the same procedure used for kernels:
it must be prepared with the mkimage tool and then written with rkflashkit.

Quoted 7 lines

There is a u-boot code released by Rockchip [2] which probably includes all the low-level initializations but I'm not brave enough to try it.

The patchset adds ethernet and pinctrl drivers, PLL and clocks initialization, and code to power on the external PHY of the board through the PMIC.

Awesome! I'm happy to see barebox support for one of the more popular Linux ARM architectures.

The patches look quite good and there's not much to be done to make them ready for merging.

Quoted 6 lines

I'm just on the way to merge the Linux devicetree files into barebox and use them where possible so we do not duplicate the devicetrees in barebox. Could you post a followup once to base the rockchip dts files on the Linux dts files once I have everything in place? I saw that you already use the mainline dts files, but these do not contain the ethernet nodes for example.

Quoted 5 lines

Ok, I will do. Just a question: my series is against -next because it requires commit 6720ad6f16db5839a72aa8b53e89918a4f0059bd "clk: move of_clk_get_parent_name() to common clk code", while your dts branch derives from master and doesn't have this commit. Which branch should I base the next version on?

I reshuffled the patches in -next so that your patches have the correct dependencies.

Quoted 7 lines
Quoted 4 lines

Also I'd like to let rockchip use the multi image mechanism. This is not much work when you know what to do. You could change it yourself or I do the change for you, but in this case, could you give the result a test?

I'm not familiar with multi-image support but I would be glad to try it if you're willing to implement it.

Ok, I pushed everything to -next. The multi image conversion is in the attached patch (also included in -next). Try building rockchip_defconfig and start images/barebox-radxa-rock.img. If it works then we are lucky, if not we'll have to work out a way to debug the patch.

BTW I noticed the upstream radxa rock dts file does not have a board specific compatible. I added this in my patch, but this should be done upstream.

Sascha

------------------------8<--------------------------------

From 903b1d430904588ef9f6b2f897b46e3e3cc4516a Mon Sep 17 00:00:00 2001
From: Sascha Hauer <[email protected]>
Date: Tue, 29 Apr 2014 08:34:54 +0200
Subject: [PATCH] ARM: Rockchip: switch to multiimage support

- Add images/Makefile.rockchip
- Allow multiple boards to be selected
- protect initcalls with appropriate of_machine_is_compatible
- rename board specific config to SoC config
- Add dtb file to compilation
- turn barebox_arm_reset_vectorto ENTRY_FUNCTION
- pass dtb to barebox_arm_entry

---
 arch/arm/Kconfig                      |  1 +
 arch/arm/boards/radxa-rock/board.c    |  9 +++++
 arch/arm/boards/radxa-rock/lowlevel.c | 11 +++++--
 arch/arm/configs/radxa-rock_defconfig | 62 -----------------------------------
 arch/arm/configs/rockchip_defconfig   | 60 +++++++++++++++++++++++++++++++++
 arch/arm/dts/Makefile                 |  2 ++
 arch/arm/dts/rk3188-radxarock.dts     |  1 +
 arch/arm/mach-rockchip/Kconfig        |  5 +--
 images/Makefile                       |  1 +
 images/Makefile.rockchip              |  9 +++++
 10 files changed, 93 insertions(+), 68 deletions(-)
 delete mode 100644 arch/arm/configs/radxa-rock_defconfig
 create mode 100644 arch/arm/configs/rockchip_defconfig
 create mode 100644 images/Makefile.rockchip
arch/arm/Kconfig +1 -0
index 991a411..3710eed 100644
@@ -134,6 +134,7 @@ config ARCH_ROCKCHIP
 	select COMMON_CLK_OF_PROVIDER
 	select GPIOLIB
 	select PINCTRL_ROCKCHIP
+	select HAVE_PBL_MULTI_IMAGES
 
 config ARCH_SOCFPGA
 	bool "Altera SOCFPGA cyclone5"
arch/arm/boards/radxa-rock/board.c +9 -0
index 55b4d23..691f243 100644
@@ -45,6 +45,9 @@ static void radxa_rock_pmic_init(void)
 
 static int setup_plls(void)
 {
+	if (!of_machine_is_compatible("radxa,rock"))
+		return 0;
+
 	/* Codec PLL frequency: 594 MHz */
 	rk3188_pll_set_parameters(RK3188_CPLL, 2, 198, 4);
 	/* General PLL frequency: 300 MHz */
@@ -56,6 +59,9 @@ coredevice_initcall(setup_plls);
 
 static int devices_init(void)
 {
+	if (!of_machine_is_compatible("radxa,rock"))
+		return 0;
+
 	i2c_register_board_info(0, radxa_rock_i2c_devices,
 				ARRAY_SIZE(radxa_rock_i2c_devices));
 	add_generic_device_res("i2c-gpio", 0, NULL, 0, &i2c_gpio_pdata);
@@ -71,6 +77,9 @@ device_initcall(devices_init);
 
 static int hostname_init(void)
 {
+	if (!of_machine_is_compatible("radxa,rock"))
+		return 0;
+
 	barebox_set_hostname("radxa-rock");
 
 	return 0;
arch/arm/boards/radxa-rock/lowlevel.c +9 -2
index c68d229..0b40f10 100644
@@ -16,8 +16,15 @@
 #include <asm/barebox-arm-head.h>
 #include <asm/barebox-arm.h>
 
-void __naked barebox_arm_reset_vector(void)
+extern char __dtb_rk3188_radxarock_start[];
+
+ENTRY_FUNCTION(start_radxa_rock, r0, r1, r2)
 {
+	uint32_t fdt;
+
 	arm_cpu_lowlevel_init();
-	barebox_arm_entry(0x60000000, SZ_2G, 0);
+
+	fdt = (uint32_t)__dtb_rk3188_radxarock_start - get_runtime_offset();
+
+	barebox_arm_entry(0x60000000, SZ_2G, fdt);
 }
arch/arm/configs/radxa-rock_defconfig deleted +0 -62

62 lines not on this page · raw message

arch/arm/configs/rockchip_defconfig new file +60 -0

60 lines not on this page · raw message

arch/arm/dts/Makefile +2 -0
index b45c174..34c5165 100644
@@ -29,6 +29,7 @@ dtb-$(CONFIG_ARCH_IMX6) += imx6q-gk802.dtb \
 	imx6q-udoo.dtb \
 	imx6q-var-custom.dtb
 dtb-$(CONFIG_ARCH_MVEBU) += dove-cubox-bb.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3188-radxarock.dtb
 dtb-$(CONFIG_ARCH_SOCFPGA) += socfpga_cyclone5_sockit.dtb \
 	socfpga_cyclone5_socrates.dtb
 dtb-$(CONFIG_ARCH_TEGRA) += \
@@ -54,6 +55,7 @@ pbl-$(CONFIG_MACH_TOSHIBA_AC100) += tegra20-paz00.dtb.o
 pbl-$(CONFIG_MACH_TQMA53) += imx53-mba53.dtb.o
 pbl-$(CONFIG_MACH_TQMA6X) += imx6dl-mba6x.dtb.o imx6q-mba6x.dtb.o
 pbl-$(CONFIG_MACH_TX25) += imx25-karo-tx25.dtb.o
+pbl-$(CONFIG_MACH_RADXA_ROCK) += rk3188-radxarock.dtb.o
 pbl-$(CONFIG_MACH_SOCFPGA_EBV_SOCRATES) += socfpga_cyclone5_socrates.dtb.o
 pbl-$(CONFIG_MACH_SOCFPGA_TERASIC_SOCKIT) += socfpga_cyclone5_sockit.dtb.o
 pbl-$(CONFIG_MACH_SOLIDRUN_HUMMINGBOARD) += imx6dl-hummingboard.dtb.o
arch/arm/dts/rk3188-radxarock.dts +1 -0
index be2a302..2d49d69 100644
@@ -17,6 +17,7 @@
 
 / {
 	model = "Radxa Rock";
+	compatible = "radxa,rock", "rockchip,rk3188";
 
 	memory {
 		reg = <0x60000000 0x80000000>;
arch/arm/mach-rockchip/Kconfig +1 -4
index 9348651..9c9eed0 100644
@@ -4,12 +4,9 @@ config ARCH_TEXT_BASE
 	hex
 	default 0x68000000
 
-choice
-	prompt "Board type"
+comment "select Rockchip boards:"
 
 config MACH_RADXA_ROCK
 	bool "Radxa rock board"
 
-endchoice
-
 endif
images/Makefile +1 -0
index 8ec1791..5509a4c 100644
@@ -99,6 +99,7 @@ $(obj)/%.img: $(obj)/$$(FILE_$$(@F))
 include $(srctree)/images/Makefile.am33xx
 include $(srctree)/images/Makefile.imx
 include $(srctree)/images/Makefile.mvebu
+include $(srctree)/images/Makefile.rockchip
 include $(srctree)/images/Makefile.socfpga
 include $(srctree)/images/Makefile.tegra
 
images/Makefile.rockchip new file +9 -0
new file mode 100644
index 0000000..2444433
@@ -0,0 +1,9 @@
+#
+# barebox image generation Makefile for Rockchip images
+#
+
+board = $(srctree)/arch/$(ARCH)/boards
+
+pblx-$(CONFIG_MACH_RADXA_ROCK) += start_radxa_rock
+FILE_barebox-radxa-rock.img = start_radxa_rock.pblx
+image-$(CONFIG_MACH_RADXA_ROCK) += barebox-radxa-rock.img
Signature · 12 lines
1.9.1

-- 
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#15 lore raw
Quoted 38 lines · Sascha Hauer
Quoted 37 lines · Beniamino Galvani
Quoted 35 lines · Sascha Hauer

Hi Beniamino,

Quoted 12 lines · Beniamino Galvani

This series adds an initial support for Rockchip SoCs and has been tested on a Radxa Rock board, on which I'm able to load a kernel from the network and boot it [1].

At the moment Barebox must be chainloaded from the Rockchip binary bootloader which performs low-level initializations and loads Barebox from the "boot" partition on the NAND.

Barebox should be written using the same procedure used for kernels:
it must be prepared with the mkimage tool and then written with rkflashkit.

Quoted 7 lines

There is a u-boot code released by Rockchip [2] which probably includes all the low-level initializations but I'm not brave enough to try it.

The patchset adds ethernet and pinctrl drivers, PLL and clocks initialization, and code to power on the external PHY of the board through the PMIC.

Awesome! I'm happy to see barebox support for one of the more popular Linux ARM architectures.

The patches look quite good and there's not much to be done to make them ready for merging.

I'm just on the way to merge the Linux devicetree files into barebox and use them where possible so we do not duplicate the devicetrees in barebox. Could you post a followup once to base the rockchip dts files on the Linux dts files once I have everything in place? I saw that you already use the mainline dts files, but these do not contain the ethernet nodes for example.

Quoted 8 lines
Quoted 5 lines

Ok, I will do. Just a question: my series is against -next because it requires commit 6720ad6f16db5839a72aa8b53e89918a4f0059bd "clk: move of_clk_get_parent_name() to common clk code", while your dts branch derives from master and doesn't have this commit. Which branch should I base the next version on?

I reshuffled the patches in -next so that your patches have the correct dependencies.

Thanks.

Quoted 6 lines
Quoted 6 lines
Quoted 5 lines

Also I'd like to let rockchip use the multi image mechanism. This is not much work when you know what to do. You could change it yourself or I do the change for you, but in this case, could you give the result a test?

Quoted 7 lines
Quoted 2 lines

I'm not familiar with multi-image support but I would be glad to try it if you're willing to implement it.

Ok, I pushed everything to -next. The multi image conversion is in the attached patch (also included in -next). Try building rockchip_defconfig and start images/barebox-radxa-rock.img. If it works then we are lucky, if not we'll have to work out a way to debug the patch.

The image works. There is only a small change (below) to do in board file to postpone the call of hostname_init() until the dt root node is set, otherwise the check on board compatible always returns false.

Quoted 4 lines

BTW I noticed the upstream radxa rock dts file does not have a board specific compatible. I added this in my patch, but this should be done upstream.

CC'ing Heiko, who is the Linux Rockchip maintainer.

Beniamino

-----------------------------8<------------------------------------- From 829e4a021e537d704e49aaa2b885ea9fb5484007 Mon Sep 17 00:00:00 2001
From: Beniamino Galvani <[email protected]>
Date: Tue, 29 Apr 2014 20:11:46 +0200
Subject: [PATCH] ARM: radxa-rock: call hostname_init() after DT initialization

---
 arch/arm/boards/radxa-rock/board.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boards/radxa-rock/board.c +1 -1
index 691f243..3d9b5be 100644
@@ -84,4 +84,4 @@ static int hostname_init(void)
 
 	return 0;
 }
-core_initcall(hostname_init);
+postcore_initcall(hostname_init);
Signature · 6 lines
1.7.10.4

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
maintainer
#16 lore raw

Hi Beniamino,

very cool that you're working on getting a better boot loader for us :-)

Am Dienstag, 29. April 2014, 23:13:14 schrieb Beniamino Galvani:

Quoted 16 lines · Sascha Hauer
Quoted 15 lines · Beniamino Galvani
Quoted 14 lines · Sascha Hauer
Quoted 13 lines

Hi Beniamino,

Quoted 10 lines · Beniamino Galvani

This series adds an initial support for Rockchip SoCs and has been tested on a Radxa Rock board, on which I'm able to load a kernel from
the network and boot it [1].

At the moment Barebox must be chainloaded from the Rockchip binary bootloader which performs low-level initializations and loads Barebox
from the "boot" partition on the NAND.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Barebox should be written using the same procedure used for kernels:
it must be prepared with the mkimage tool and then written with rkflashkit.

There is a u-boot code released by Rockchip [2] which probably includes all the low-level initializations but I'm not brave enough to
try it.

hehe, that goes for me too :-)

Quoted 5 lines
Quoted 3 lines

BTW I noticed the upstream radxa rock dts file does not have a board specific compatible. I added this in my patch, but this should be done upstream.

CC'ing Heiko, who is the Linux Rockchip maintainer.

Until now I didn't give it much thought, but according to usage-model.txt the board-specific compatible is a required property. So we'll need to add it to the board dts in the kernel too.

So you could send a patch, or I'll prepare one in the next days.

Heiko

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#17 lore raw
Quoted 11 lines · Heiko Stübner
Quoted 5 lines
Quoted 3 lines

BTW I noticed the upstream radxa rock dts file does not have a board specific compatible. I added this in my patch, but this should be done upstream.

CC'ing Heiko, who is the Linux Rockchip maintainer.

Until now I didn't give it much thought, but according to usage-model.txt the board-specific compatible is a required property. So we'll need to add it to the board dts in the kernel too.

So you could send a patch, or I'll prepare one in the next days.

Ok, I will send a patch.

Beniamino

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox