commit | 6332c0432268835febb9f274e7f9cdb8667877f9 | [log] [tgz] |
---|---|---|
author | Patrick Delaunay <patrick.delaunay@st.com> | Tue Jun 16 18:27:44 2020 +0200 |
committer | Patrick Delaunay <patrick.delaunay@st.com> | Tue Jul 07 16:01:23 2020 +0200 |
tree | 801d0d34f6335506ceaf86a7ee0775f226d44054 | |
parent | dd1783841af48681fb578dd231f137108f008841 [diff] |
arm: stm32mp: protect DBGMCU_IDC access with BSEC As debugger must be totally closed on Sec closed chip, the DBGMCU_IDC register is no more accessible (self hosted debug is disabled with OTP). This patch adds a function bsec_dbgswenable() to check if the DBGMCU registers are available before to access them: BSEC_DENABLE.DBGSWENABLE = self hosted debug status. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Patrice Chotard <patrice.chotard@st.com>