summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Livingston2019-06-28 09:58:08 -0500
committerFrank Livingston2019-06-28 09:58:08 -0500
commit278a7d0f7ef2e3add42cc2c4cb029481d63be826 (patch)
tree814b3429cb25eda6ab81a7f85c39fd5c841c572e
parent5cf59f59a89315924be579b78093902b74bab363 (diff)
downloadpruss-lld-278a7d0f7ef2e3add42cc2c4cb029481d63be826.tar.gz
pruss-lld-278a7d0f7ef2e3add42cc2c4cb029481d63be826.tar.xz
pruss-lld-278a7d0f7ef2e3add42cc2c4cb029481d63be826.zip
PRSDK-5738:Add IEPx number of supported PWMs to FW registers
Signed-off-by: Frank Livingston <frank-livingston@ti.com>
-rw-r--r--example/apps/icssg_pwm/firmware/src/icssg_iep_pwm.h6
-rw-r--r--example/apps/icssg_pwm/firmware/src/iepPwmFwRegs.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/example/apps/icssg_pwm/firmware/src/icssg_iep_pwm.h b/example/apps/icssg_pwm/firmware/src/icssg_iep_pwm.h
index f94b9eb..107dd28 100644
--- a/example/apps/icssg_pwm/firmware/src/icssg_iep_pwm.h
+++ b/example/apps/icssg_pwm/firmware/src/icssg_iep_pwm.h
@@ -93,8 +93,14 @@
93 93
94/* Firmware Feature */ 94/* Firmware Feature */
95#define FW_NUM_PWMS_MASK ( 0x1F ) 95#define FW_NUM_PWMS_MASK ( 0x1F )
96#define FW_IEP0_NUM_PWMS_MASK ( 0xF )
97#define FW_IEP1_NUM_PWMS_MASK ( 0xF )
96#define FW_FEATURE_FW_NUM_PWMS_SHIFT ( 0 ) 98#define FW_FEATURE_FW_NUM_PWMS_SHIFT ( 0 )
97#define FW_FEATURE_FW_NUM_PWMS_MASK ( FW_NUM_PWMS_MASK << FW_FEATURE_FW_NUM_PWMS_SHIFT ) 99#define FW_FEATURE_FW_NUM_PWMS_MASK ( FW_NUM_PWMS_MASK << FW_FEATURE_FW_NUM_PWMS_SHIFT )
100#define FW_FEATURE_FW_IEP0_NUM_PWMS_SHIFT ( 5 )
101#define FW_FEATURE_FW_IEP0_NUM_PWMS_MASK ( FW_IEP0_NUM_PWMS_MASK << FW_FEATURE_FW_IEP0_NUM_PWMS_SHIFT )
102#define FW_FEATURE_FW_IEP1_NUM_PWMS_SHIFT ( 9 )
103#define FW_FEATURE_FW_IEP1_NUM_PWMS_MASK ( FW_IEP1_NUM_PWMS_MASK << FW_FEATURE_FW_IEP1_NUM_PWMS_SHIFT )
98 104
99/* PWM_CTRL */ 105/* PWM_CTRL */
100#define BF_PWM_GBL_EN_DISABLE ( 0 ) /* Global Enable bit field disabled setting */ 106#define BF_PWM_GBL_EN_DISABLE ( 0 ) /* Global Enable bit field disabled setting */
diff --git a/example/apps/icssg_pwm/firmware/src/iepPwmFwRegs.c b/example/apps/icssg_pwm/firmware/src/iepPwmFwRegs.c
index 65f78b7..cfcc3e0 100644
--- a/example/apps/icssg_pwm/firmware/src/iepPwmFwRegs.c
+++ b/example/apps/icssg_pwm/firmware/src/iepPwmFwRegs.c
@@ -52,7 +52,7 @@ const IepPwmInfoFwRegs gIepPwmInfoFwRegs =
52 0x4D575047, /* FwMagicNumber - GPWM */ 52 0x4D575047, /* FwMagicNumber - GPWM */
53 0x00000000, /* FwType - TBD */ 53 0x00000000, /* FwType - TBD */
54 0x00000000, /* FwVersion - TBD */ 54 0x00000000, /* FwVersion - TBD */
55 0x00000018, /* FwFeature */ 55 0x00001998, /* FwFeature */
56 0x00000000 /* FwExtendedFeature - Reserved for future use */ 56 0x00000000 /* FwExtendedFeature - Reserved for future use */
57}; 57};
58 58