diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-04-12 04:50:51 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-04-12 04:50:51 -0300 |
commit | 7e64ab6289f872211b2ed774a0011379edafd966 (patch) | |
tree | d4864f06c21f96a0d06447ca972d7c7f032aa131 /kernels/linux-libre-lts-knock/0001-ARM-sunxi-add-R8-support.patch | |
parent | 48edda5793a44d5578f2ae26a02594ed035d3e02 (diff) | |
download | abslibre-7e64ab6289f872211b2ed774a0011379edafd966.tar.gz abslibre-7e64ab6289f872211b2ed774a0011379edafd966.tar.bz2 abslibre-7e64ab6289f872211b2ed774a0011379edafd966.zip |
linux-libre-lts-knock: add more patches for the C.H.I.P single-board computer support
Diffstat (limited to 'kernels/linux-libre-lts-knock/0001-ARM-sunxi-add-R8-support.patch')
-rw-r--r-- | kernels/linux-libre-lts-knock/0001-ARM-sunxi-add-R8-support.patch | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/kernels/linux-libre-lts-knock/0001-ARM-sunxi-add-R8-support.patch b/kernels/linux-libre-lts-knock/0001-ARM-sunxi-add-R8-support.patch new file mode 100644 index 000000000..9f685790e --- /dev/null +++ b/kernels/linux-libre-lts-knock/0001-ARM-sunxi-add-R8-support.patch @@ -0,0 +1,81 @@ +From bef6229f36c1c2ddae186f4e328c2359c1dad18d Mon Sep 17 00:00:00 2001 +From: Maxime Ripard <maxime.ripard@free-electrons.com> +Date: Tue, 9 Jun 2015 19:38:04 +0200 +Subject: [PATCH 1/3] ARM: sunxi: Add R8 support + +The R8 is a new Allwinner SoC based on the A13. While both are very +similar, there's still a few differences. Introduce a new compatible to +deal with them. + +In order to have a consistent naming, instead of mentioning the Allwinner +A series as the machine name, switch to sun4i/sun5i like what is done for +the other families. + +Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> +Reviewed-by: Hans de Goede <hdegoede@redhat.com> +Reviewed-by: Chen-Yu Tsai <wens@csie.org> +Acked-by: Stephen Boyd <sboyd@codeaurora.org> +--- + Documentation/arm/sunxi/README | 2 +- + Documentation/devicetree/bindings/arm/sunxi.txt | 1 + + arch/arm/mach-sunxi/sunxi.c | 3 ++- + drivers/clk/sunxi/clk-sunxi.c | 1 + + 4 files changed, 5 insertions(+), 2 deletions(-) + +diff --git a/Documentation/arm/sunxi/README b/Documentation/arm/sunxi/README +index 5e38e15..430d279 100644 +--- a/Documentation/arm/sunxi/README ++++ b/Documentation/arm/sunxi/README +@@ -25,7 +25,7 @@ SunXi family + + Datasheet + http://dl.linux-sunxi.org/A10s/A10s%20Datasheet%20-%20v1.20%20%282012-03-27%29.pdf + +- - Allwinner A13 (sun5i) ++ - Allwinner A13 / R8 (sun5i) + + Datasheet + http://dl.linux-sunxi.org/A13/A13%20Datasheet%20-%20v1.12%20%282012-03-29%29.pdf + + User Manual +diff --git a/Documentation/devicetree/bindings/arm/sunxi.txt b/Documentation/devicetree/bindings/arm/sunxi.txt +index 67da205..bb9b0faa 100644 +--- a/Documentation/devicetree/bindings/arm/sunxi.txt ++++ b/Documentation/devicetree/bindings/arm/sunxi.txt +@@ -6,6 +6,7 @@ using one of the following compatible strings: + allwinner,sun4i-a10 + allwinner,sun5i-a10s + allwinner,sun5i-a13 ++ allwinner,sun5i-r8 + allwinner,sun6i-a31 + allwinner,sun7i-a20 + allwinner,sun8i-a23 +diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c +index 65bab28..8583a9c 100644 +--- a/arch/arm/mach-sunxi/sunxi.c ++++ b/arch/arm/mach-sunxi/sunxi.c +@@ -26,10 +26,11 @@ static const char * const sunxi_board_dt_compat[] = { + "allwinner,sun4i-a10", + "allwinner,sun5i-a10s", + "allwinner,sun5i-a13", ++ "allwinner,sun5i-r8", + NULL, + }; + +-DT_MACHINE_START(SUNXI_DT, "Allwinner A1X (Device Tree)") ++DT_MACHINE_START(SUNXI_DT, "Allwinner sun4i/sun5i Families") + .dt_compat = sunxi_board_dt_compat, + .init_late = sunxi_dt_cpufreq_init, + MACHINE_END +diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c +index 413070d..9c79af0c 100644 +--- a/drivers/clk/sunxi/clk-sunxi.c ++++ b/drivers/clk/sunxi/clk-sunxi.c +@@ -1196,6 +1196,7 @@ static void __init sun5i_init_clocks(struct device_node *node) + } + CLK_OF_DECLARE(sun5i_a10s_clk_init, "allwinner,sun5i-a10s", sun5i_init_clocks); + CLK_OF_DECLARE(sun5i_a13_clk_init, "allwinner,sun5i-a13", sun5i_init_clocks); ++CLK_OF_DECLARE(sun5i_r8_clk_init, "allwinner,sun5i-r8", sun5i_init_clocks); + CLK_OF_DECLARE(sun7i_a20_clk_init, "allwinner,sun7i-a20", sun5i_init_clocks); + + static const char *sun6i_critical_clocks[] __initdata = { +-- +cgit v0.12 + |