12#include "dt/dt_otp_macro.h"
34 [kDtOtpMacroRegBlockCore] = 0x40138000,
43 [kDtOtpMacroPeriphIoTest0] = {
47 .periph_input_or_direct_pad = 0,
51 [kDtOtpMacroPeriphIoTest1] = {
55 .periph_input_or_direct_pad = 0,
56 .outsel_or_dt_pad = 0,
59 [kDtOtpMacroPeriphIoTest2] = {
63 .periph_input_or_direct_pad = 0,
64 .outsel_or_dt_pad = 0,
67 [kDtOtpMacroPeriphIoTest3] = {
71 .periph_input_or_direct_pad = 0,
72 .outsel_or_dt_pad = 0,
75 [kDtOtpMacroPeriphIoTest4] = {
79 .periph_input_or_direct_pad = 0,
80 .outsel_or_dt_pad = 0,
83 [kDtOtpMacroPeriphIoTest5] = {
87 .periph_input_or_direct_pad = 0,
88 .outsel_or_dt_pad = 0,
91 [kDtOtpMacroPeriphIoTest6] = {
95 .periph_input_or_direct_pad = 0,
96 .outsel_or_dt_pad = 0,
99 [kDtOtpMacroPeriphIoTest7] = {
103 .periph_input_or_direct_pad = 0,
104 .outsel_or_dt_pad = 0,
116#define TRY_GET_DT(dt, default) ({ if ((dt) < (dt_otp_macro_t)0 || (dt) >= kDtOtpMacroCount) return (default); &otp_macro_desc[dt]; })
134 return TRY_GET_DT(dt, 0xdeadbeef)->base_addr[reg_block];
143 return TRY_GET_DT(dt, kDtPeriphIoConstantHighZ)->periph_io[sig];