summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/ocotp-imx233.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/ocotp-imx233.h')
-rw-r--r--firmware/target/arm/imx233/ocotp-imx233.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/imx233/ocotp-imx233.h b/firmware/target/arm/imx233/ocotp-imx233.h
index 0827ea0d19..ddd7fec228 100644
--- a/firmware/target/arm/imx233/ocotp-imx233.h
+++ b/firmware/target/arm/imx233/ocotp-imx233.h
@@ -28,7 +28,7 @@
* where STMP3600 has laser fuses. */
#if IMX233_SUBTARGET >= 3700
-#include "regs/regs-ocotp.h"
+#include "regs/ocotp.h"
#define IMX233_NUM_OCOTP_CUST 4
#define IMX233_NUM_OCOTP_CRYPTO 4
@@ -57,15 +57,15 @@ static inline uint32_t imx233_ocotp_read(volatile uint32_t *reg)
return val;
}
#else
-#include "regs/regs-rtc.h"
+#include "regs/rtc.h"
#define IMX233_NUM_OCOTP_LASERFUSE 12
static inline uint32_t imx233_ocotp_read(volatile uint32_t *reg)
{
- BF_WR_V(RTC_UNLOCK, KEY, VAL);
+ BF_WR(RTC_UNLOCK, KEY_V(VAL));
uint32_t val = *reg;
- BF_WR(RTC_UNLOCK, KEY, 0);
+ BF_WR(RTC_UNLOCK, KEY(0));
return val;
}
#endif