Add ccu compat string for Allwinner a83t
A ccu driver was added for the a83t in r326114. Add compat string to aw_ccung and register the clocks for the a83t upon attach. Reviewed by: manu Approved by: emaste (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D13205
This commit is contained in:
parent
2205d3dd3e
commit
e60d3b7ff4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326141
@ -76,6 +76,10 @@ __FBSDID("$FreeBSD$");
|
||||
#include <arm/allwinner/clkng/ccu_sun8i_r.h>
|
||||
#endif
|
||||
|
||||
#if defined(SOC_ALLWINNER_A83T)
|
||||
#include <arm/allwinner/clkng/ccu_a83t.h>
|
||||
#endif
|
||||
|
||||
#include "clkdev_if.h"
|
||||
#include "hwreset_if.h"
|
||||
|
||||
@ -102,6 +106,10 @@ static struct resource_spec aw_ccung_spec[] = {
|
||||
#define A13_CCU 6
|
||||
#endif
|
||||
|
||||
#if defined(SOC_ALLWINNER_A83T)
|
||||
#define A83T_CCU 7
|
||||
#endif
|
||||
|
||||
static struct ofw_compat_data compat_data[] = {
|
||||
#if defined(SOC_ALLWINNER_A31)
|
||||
{ "allwinner,sun5i-a13-ccu", A13_CCU},
|
||||
@ -116,6 +124,9 @@ static struct ofw_compat_data compat_data[] = {
|
||||
#if defined(SOC_ALLWINNER_A64)
|
||||
{ "allwinner,sun50i-a64-ccu", A64_CCU },
|
||||
{ "allwinner,sun50i-a64-r-ccu", A64_R_CCU },
|
||||
#endif
|
||||
#if defined(SOC_ALLWINNER_A83T)
|
||||
{ "allwinner,sun8i-a83t-ccu", A83T_CCU },
|
||||
#endif
|
||||
{NULL, 0 }
|
||||
};
|
||||
@ -358,6 +369,11 @@ aw_ccung_attach(device_t dev)
|
||||
case A64_R_CCU:
|
||||
ccu_sun8i_r_register_clocks(sc);
|
||||
break;
|
||||
#endif
|
||||
#if defined(SOC_ALLWINNER_A83T)
|
||||
case A83T_CCU:
|
||||
ccu_a83t_register_clocks(sc);
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user