Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/allwinner/aw_sid.c
| Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | static struct aw_sid_efuse h5_efuses[] = { | ||||
| .base = EFUSE_OFFSET, | .base = EFUSE_OFFSET, | ||||
| .offset = 0x34, | .offset = 0x34, | ||||
| .size = 4, | .size = 4, | ||||
| .id = AW_SID_FUSE_THSSENSOR, | .id = AW_SID_FUSE_THSSENSOR, | ||||
| .public = true, | .public = true, | ||||
| }, | }, | ||||
| }; | }; | ||||
| static struct aw_sid_efuse h616_efuses[] = { | |||||
| { | |||||
| .name = "rootkey", | |||||
| .desc = "Root Key or ChipID", | |||||
| .base = EFUSE_OFFSET, | |||||
| .offset = 0x00, | |||||
| .size = 16, | |||||
| .id = AW_SID_FUSE_ROOTKEY, | |||||
| .public = true, | |||||
| }, | |||||
| { | |||||
| .name = "calibration", | |||||
| .desc = "Thermal Sensor Calibration Data", | |||||
| .base = EFUSE_OFFSET, | |||||
| .offset = 0x34, | |||||
| .size = 4, | |||||
| .id = AW_SID_FUSE_THSSENSOR, | |||||
| .public = true, | |||||
| }, | |||||
| }; | |||||
| static struct aw_sid_efuse d1_efuses[] = { | static struct aw_sid_efuse d1_efuses[] = { | ||||
| { | { | ||||
| .name = "rootkey", | .name = "rootkey", | ||||
| .desc = "Root Key or ChipID", | .desc = "Root Key or ChipID", | ||||
| .base = EFUSE_OFFSET, | .base = EFUSE_OFFSET, | ||||
| .offset = 0x00, | .offset = 0x00, | ||||
| .size = 16, | .size = 16, | ||||
| .id = AW_SID_FUSE_ROOTKEY, | .id = AW_SID_FUSE_ROOTKEY, | ||||
| Show All 40 Lines | static const struct aw_sid_conf h3_conf = { | ||||
| .nfuses = nitems(h3_efuses), | .nfuses = nitems(h3_efuses), | ||||
| }; | }; | ||||
| static const struct aw_sid_conf h5_conf = { | static const struct aw_sid_conf h5_conf = { | ||||
| .efuses = h5_efuses, | .efuses = h5_efuses, | ||||
| .nfuses = nitems(h5_efuses), | .nfuses = nitems(h5_efuses), | ||||
| }; | }; | ||||
| static const struct aw_sid_conf h616_conf = { | |||||
| .efuses = h616_efuses, | |||||
| .nfuses = nitems(h616_efuses), | |||||
| }; | |||||
| static const struct aw_sid_conf d1_conf = { | static const struct aw_sid_conf d1_conf = { | ||||
| .efuses = d1_efuses, | .efuses = d1_efuses, | ||||
| .nfuses = nitems(d1_efuses), | .nfuses = nitems(d1_efuses), | ||||
| }; | }; | ||||
| static struct ofw_compat_data compat_data[] = { | static struct ofw_compat_data compat_data[] = { | ||||
| { "allwinner,sun4i-a10-sid", (uintptr_t)&a10_conf}, | { "allwinner,sun4i-a10-sid", (uintptr_t)&a10_conf}, | ||||
| { "allwinner,sun7i-a20-sid", (uintptr_t)&a20_conf}, | { "allwinner,sun7i-a20-sid", (uintptr_t)&a20_conf}, | ||||
| { "allwinner,sun50i-a64-sid", (uintptr_t)&a64_conf}, | { "allwinner,sun50i-a64-sid", (uintptr_t)&a64_conf}, | ||||
| { "allwinner,sun8i-a83t-sid", (uintptr_t)&a83t_conf}, | { "allwinner,sun8i-a83t-sid", (uintptr_t)&a83t_conf}, | ||||
| { "allwinner,sun8i-h3-sid", (uintptr_t)&h3_conf}, | { "allwinner,sun8i-h3-sid", (uintptr_t)&h3_conf}, | ||||
| { "allwinner,sun50i-h5-sid", (uintptr_t)&h5_conf}, | { "allwinner,sun50i-h5-sid", (uintptr_t)&h5_conf}, | ||||
| { "allwinner,sun50i-h616-sid", (uintptr_t)&h616_conf}, | |||||
| { "allwinner,sun20i-d1-sid", (uintptr_t)&d1_conf}, | { "allwinner,sun20i-d1-sid", (uintptr_t)&d1_conf}, | ||||
| { NULL, 0 } | { NULL, 0 } | ||||
| }; | }; | ||||
| struct aw_sid_softc { | struct aw_sid_softc { | ||||
| device_t sid_dev; | device_t sid_dev; | ||||
| struct resource *res; | struct resource *res; | ||||
| struct aw_sid_conf *sid_conf; | struct aw_sid_conf *sid_conf; | ||||
| ▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines | |||||