aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/allwinner/aw_sid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/allwinner/aw_sid.c')
-rw-r--r--sys/arm/allwinner/aw_sid.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/arm/allwinner/aw_sid.c b/sys/arm/allwinner/aw_sid.c
index 3a481933e832..42a667b5a4b1 100644
--- a/sys/arm/allwinner/aw_sid.c
+++ b/sys/arm/allwinner/aw_sid.c
@@ -100,7 +100,7 @@ static struct aw_sid_efuse a64_efuses[] = {
.public = true,
},
{
- .name = "ths-calib",
+ .name = "calibration",
.desc = "Thermal Sensor Calibration Data",
.base = EFUSE_OFFSET,
.offset = 0x34,
@@ -121,7 +121,7 @@ static struct aw_sid_efuse a83t_efuses[] = {
.public = true,
},
{
- .name = "ths-calib",
+ .name = "calibration",
.desc = "Thermal Sensor Calibration Data",
.base = EFUSE_OFFSET,
.offset = 0x34,
@@ -142,11 +142,11 @@ static struct aw_sid_efuse h3_efuses[] = {
.public = true,
},
{
- .name = "ths-calib",
+ .name = "calibration",
.desc = "Thermal Sensor Calibration Data",
.base = EFUSE_OFFSET,
.offset = 0x34,
- .size = 2,
+ .size = 4,
.id = AW_SID_FUSE_THSSENSOR,
.public = false,
},
@@ -163,7 +163,7 @@ static struct aw_sid_efuse h5_efuses[] = {
.public = true,
},
{
- .name = "ths-calib",
+ .name = "calibration",
.desc = "Thermal Sensor Calibration Data",
.base = EFUSE_OFFSET,
.offset = 0x34,
@@ -350,8 +350,7 @@ aw_sid_read(device_t dev, uint32_t offset, uint32_t size, uint8_t *buffer)
sc = device_get_softc(dev);
for (i = 0; i < sc->sid_conf->nfuses; i++)
- if (offset == (sc->sid_conf->efuses[i].base +
- sc->sid_conf->efuses[i].offset)) {
+ if (offset == sc->sid_conf->efuses[i].offset) {
fuse_id = sc->sid_conf->efuses[i].id;
break;
}