142-arm-add-sunxi-h3.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From 14a882df14a5ae859b245bc708ce3fce47a91594 Mon Sep 17 00:00:00 2001
  2. From: Jens Kuske <jenskuske@gmail.com>
  3. Date: Fri, 15 May 2015 18:38:55 +0200
  4. Subject: ARM: sunxi: Introduce Allwinner H3 support
  5. The Allwinner H3 is a quad-core Cortex-A7-based SoC. It is very similar
  6. to other sun8i family SoCs like the A23.
  7. Signed-off-by: Jens Kuske <jenskuske@gmail.com>
  8. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  9. --- a/Documentation/devicetree/bindings/arm/sunxi.txt
  10. +++ b/Documentation/devicetree/bindings/arm/sunxi.txt
  11. @@ -9,4 +9,5 @@ using one of the following compatible st
  12. allwinner,sun6i-a31
  13. allwinner,sun7i-a20
  14. allwinner,sun8i-a23
  15. + allwinner,sun8i-h3
  16. allwinner,sun9i-a80
  17. --- a/arch/arm/mach-sunxi/Kconfig
  18. +++ b/arch/arm/mach-sunxi/Kconfig
  19. @@ -35,7 +35,7 @@ config MACH_SUN7I
  20. select SUN5I_HSTIMER
  21. config MACH_SUN8I
  22. - bool "Allwinner A23 (sun8i) SoCs support"
  23. + bool "Allwinner sun8i Family SoCs support"
  24. default ARCH_SUNXI
  25. select ARM_GIC
  26. select MFD_SUN6I_PRCM
  27. --- a/arch/arm/mach-sunxi/sunxi.c
  28. +++ b/arch/arm/mach-sunxi/sunxi.c
  29. @@ -67,10 +67,12 @@ MACHINE_END
  30. static const char * const sun8i_board_dt_compat[] = {
  31. "allwinner,sun8i-a23",
  32. + "allwinner,sun8i-h3",
  33. NULL,
  34. };
  35. -DT_MACHINE_START(SUN8I_DT, "Allwinner sun8i (A23) Family")
  36. +DT_MACHINE_START(SUN8I_DT, "Allwinner sun8i Family")
  37. + .init_time = sun6i_timer_init,
  38. .dt_compat = sun8i_board_dt_compat,
  39. .init_late = sunxi_dt_cpufreq_init,
  40. MACHINE_END