summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-07-13 09:32:16 -0600
committerEvan Lojewski <github@meklort.com>2019-07-13 09:32:16 -0600
commit85ffb21bef9f26e6cd486a99b53544083261e4ca (patch)
tree7c2edd6ac9b3b692dfde52889622dbd34ae4cd87 /include
parentd830f6129498823c71271cff742757594466f441 (diff)
downloadbcm5719-ortega-85ffb21bef9f26e6cd486a99b53544083261e4ca.tar.gz
bcm5719-ortega-85ffb21bef9f26e6cd486a99b53544083261e4ca.zip
Add OTP_CONTROL.Init bit per tg3 driver.
Diffstat (limited to 'include')
-rw-r--r--include/APE_APE.h18
-rw-r--r--include/bcm5719_APE.h18
2 files changed, 32 insertions, 4 deletions
diff --git a/include/APE_APE.h b/include/APE_APE.h
index fdd583a..b79e311 100644
--- a/include/APE_APE.h
+++ b/include/APE_APE.h
@@ -1567,6 +1567,10 @@ typedef register_container RegAPEGint_t {
#define APE_OTP_CONTROL_START_MASK 0x1u
#define GET_APE_OTP_CONTROL_START(__reg__) (((__reg__) & 0x1) >> 0u)
#define SET_APE_OTP_CONTROL_START(__val__) (((__val__) << 0u) & 0x1u)
+#define APE_OTP_CONTROL_INIT_SHIFT 3u
+#define APE_OTP_CONTROL_INIT_MASK 0x8u
+#define GET_APE_OTP_CONTROL_INIT(__reg__) (((__reg__) & 0x8) >> 3u)
+#define SET_APE_OTP_CONTROL_INIT(__val__) (((__val__) << 3u) & 0x8u)
#define APE_OTP_CONTROL_PROG_ENABLE_SHIFT 21u
#define APE_OTP_CONTROL_PROG_ENABLE_MASK 0x200000u
#define GET_APE_OTP_CONTROL_PROG_ENABLE(__reg__) (((__reg__) & 0x200000) >> 21u)
@@ -1582,7 +1586,11 @@ typedef register_container RegAPEOtpControl_t {
/** @brief */
BITFIELD_MEMBER(APE_APE_H_uint32_t, Start, 0, 1)
/** @brief Padding */
- BITFIELD_MEMBER(APE_APE_H_uint32_t, reserved_20_1, 1, 20)
+ BITFIELD_MEMBER(APE_APE_H_uint32_t, reserved_2_1, 1, 2)
+ /** @brief */
+ BITFIELD_MEMBER(APE_APE_H_uint32_t, Init, 3, 1)
+ /** @brief Padding */
+ BITFIELD_MEMBER(APE_APE_H_uint32_t, reserved_20_4, 4, 17)
/** @brief */
BITFIELD_MEMBER(APE_APE_H_uint32_t, ProgEnable, 21, 1)
/** @brief Padding */
@@ -1593,7 +1601,11 @@ typedef register_container RegAPEOtpControl_t {
/** @brief */
BITFIELD_MEMBER(APE_APE_H_uint32_t, ProgEnable, 21, 1)
/** @brief Padding */
- BITFIELD_MEMBER(APE_APE_H_uint32_t, reserved_20_1, 1, 20)
+ BITFIELD_MEMBER(APE_APE_H_uint32_t, reserved_20_4, 4, 17)
+ /** @brief */
+ BITFIELD_MEMBER(APE_APE_H_uint32_t, Init, 3, 1)
+ /** @brief Padding */
+ BITFIELD_MEMBER(APE_APE_H_uint32_t, reserved_2_1, 1, 2)
/** @brief */
BITFIELD_MEMBER(APE_APE_H_uint32_t, Start, 0, 1)
#else
@@ -1613,6 +1625,8 @@ typedef register_container RegAPEOtpControl_t {
r32.setName("OtpControl");
bits.Start.setBaseRegister(&r32);
bits.Start.setName("Start");
+ bits.Init.setBaseRegister(&r32);
+ bits.Init.setName("Init");
bits.ProgEnable.setBaseRegister(&r32);
bits.ProgEnable.setName("ProgEnable");
}
diff --git a/include/bcm5719_APE.h b/include/bcm5719_APE.h
index 87c46b5..8f2543c 100644
--- a/include/bcm5719_APE.h
+++ b/include/bcm5719_APE.h
@@ -1567,6 +1567,10 @@ typedef register_container RegAPEGint_t {
#define APE_OTP_CONTROL_START_MASK 0x1u
#define GET_APE_OTP_CONTROL_START(__reg__) (((__reg__) & 0x1) >> 0u)
#define SET_APE_OTP_CONTROL_START(__val__) (((__val__) << 0u) & 0x1u)
+#define APE_OTP_CONTROL_INIT_SHIFT 3u
+#define APE_OTP_CONTROL_INIT_MASK 0x8u
+#define GET_APE_OTP_CONTROL_INIT(__reg__) (((__reg__) & 0x8) >> 3u)
+#define SET_APE_OTP_CONTROL_INIT(__val__) (((__val__) << 3u) & 0x8u)
#define APE_OTP_CONTROL_PROG_ENABLE_SHIFT 21u
#define APE_OTP_CONTROL_PROG_ENABLE_MASK 0x200000u
#define GET_APE_OTP_CONTROL_PROG_ENABLE(__reg__) (((__reg__) & 0x200000) >> 21u)
@@ -1582,7 +1586,11 @@ typedef register_container RegAPEOtpControl_t {
/** @brief */
BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, Start, 0, 1)
/** @brief Padding */
- BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, reserved_20_1, 1, 20)
+ BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, reserved_2_1, 1, 2)
+ /** @brief */
+ BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, Init, 3, 1)
+ /** @brief Padding */
+ BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, reserved_20_4, 4, 17)
/** @brief */
BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, ProgEnable, 21, 1)
/** @brief Padding */
@@ -1593,7 +1601,11 @@ typedef register_container RegAPEOtpControl_t {
/** @brief */
BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, ProgEnable, 21, 1)
/** @brief Padding */
- BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, reserved_20_1, 1, 20)
+ BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, reserved_20_4, 4, 17)
+ /** @brief */
+ BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, Init, 3, 1)
+ /** @brief Padding */
+ BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, reserved_2_1, 1, 2)
/** @brief */
BITFIELD_MEMBER(BCM5719_APE_H_uint32_t, Start, 0, 1)
#else
@@ -1613,6 +1625,8 @@ typedef register_container RegAPEOtpControl_t {
r32.setName("OtpControl");
bits.Start.setBaseRegister(&r32);
bits.Start.setName("Start");
+ bits.Init.setBaseRegister(&r32);
+ bits.Init.setName("Init");
bits.ProgEnable.setBaseRegister(&r32);
bits.ProgEnable.setName("ProgEnable");
}
OpenPOWER on IntegriCloud