Author: manu
Date: Sat Apr 27 14:48:27 2019
New Revision: 346787
URL: https://svnweb.freebsd.org/changeset/base/346787

Log:
  arm64: allwinner: Add compatible strings for clock devices used on both 
Allwinner H3 and H5
  
  Allwinner H3 and H5 share many internal components, that's why they can
  use the same drivers.
  This patch adds the compatible strings to enable clock drivers
  probing on Allwinner NanoPI NEO2 device.
  
  Tested on: NanoPi NEO2 (by submitter), OrangePi PC2 (by manu)
  Submitted by: Manuel Stühn ([email protected])
  MFC after:    2 months
  Differential Revision:        https://reviews.freebsd.org/D20069

Modified:
  head/sys/arm/allwinner/aw_rtc.c
  head/sys/arm/allwinner/aw_syscon.c

Modified: head/sys/arm/allwinner/aw_rtc.c
==============================================================================
--- head/sys/arm/allwinner/aw_rtc.c     Sat Apr 27 05:35:51 2019        
(r346786)
+++ head/sys/arm/allwinner/aw_rtc.c     Sat Apr 27 14:48:27 2019        
(r346787)
@@ -137,6 +137,7 @@ static struct ofw_compat_data compat_data[] = {
        { "allwinner,sun7i-a20-rtc", (uintptr_t) &a20_conf },
        { "allwinner,sun6i-a31-rtc", (uintptr_t) &a31_conf },
        { "allwinner,sun8i-h3-rtc", (uintptr_t) &h3_conf },
+       { "allwinner,sun50i-h5-rtc", (uintptr_t) &h3_conf },
        { NULL, 0 }
 };
 

Modified: head/sys/arm/allwinner/aw_syscon.c
==============================================================================
--- head/sys/arm/allwinner/aw_syscon.c  Sat Apr 27 05:35:51 2019        
(r346786)
+++ head/sys/arm/allwinner/aw_syscon.c  Sat Apr 27 14:48:27 2019        
(r346787)
@@ -53,6 +53,7 @@ static struct ofw_compat_data compat_data[] = {
        {"allwinner,sun8i-a83t-system-controller", 1},
        {"allwinner,sun8i-h3-system-controller", 1},
        {"allwinner,sun8i-h3-system-control", 1},
+       {"allwinner,sun50i-h5-system-control", 1},
        {NULL,             0}
 };
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to