feat(intel): allow to access all register addresses if DEBUG=1

Allow to access all register addresses from SMC call if compile the code
with DEBUG=1 for debugging purpose.

Signed-off-by: Siew Chin Lim <elly.siew.chin.lim@intel.com>
Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
Change-Id: Idd31827fb71307efbdbcceeaa05f6cb072842e10
This commit is contained in:
Siew Chin Lim 2021-05-11 21:12:22 +08:00 committed by Sieu Mun Tang
parent ec4f28ecec
commit 7e954dfc2b
1 changed files with 4 additions and 0 deletions

View File

@ -290,6 +290,10 @@ static uint32_t intel_fpga_config_write(uint64_t mem, uint64_t size)
static int is_out_of_sec_range(uint64_t reg_addr)
{
#if DEBUG
return 0;
#endif
switch (reg_addr) {
case(0xF8011100): /* ECCCTRL1 */
case(0xF8011104): /* ECCCTRL2 */