drivers: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD
Use the new symbol to refer to any 'SPL' build, including TPL and VPL Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -207,7 +207,7 @@ void inline_cnstr_jobdesc_hash(uint32_t *desc,
|
||||
append_store(desc, dma_addr_out, storelen,
|
||||
LDST_CLASS_2_CCB | LDST_SRCDST_BYTE_CONTEXT);
|
||||
}
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#ifndef CONFIG_XPL_BUILD
|
||||
void inline_cnstr_jobdesc_blob_encap(uint32_t *desc, uint8_t *key_idnfr,
|
||||
uint8_t *plain_txt, uint8_t *enc_blob,
|
||||
uint32_t in_sz)
|
||||
|
||||
@@ -713,7 +713,7 @@ int sec_init_idx(uint8_t sec_idx)
|
||||
|
||||
ccsr_sec_t *sec = caam->sec;
|
||||
uint32_t mcr = sec_in32(&sec->mcfgr);
|
||||
#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_IMX8M)
|
||||
#if defined(CONFIG_XPL_BUILD) && defined(CONFIG_IMX8M)
|
||||
uint32_t jrdid_ms = 0;
|
||||
#endif
|
||||
#ifdef CONFIG_FSL_CORENET
|
||||
@@ -745,14 +745,14 @@ int sec_init_idx(uint8_t sec_idx)
|
||||
mcr |= (1 << MCFGR_PS_SHIFT);
|
||||
#endif
|
||||
sec_out32(&sec->mcfgr, mcr);
|
||||
#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_IMX8M)
|
||||
#if defined(CONFIG_XPL_BUILD) && defined(CONFIG_IMX8M)
|
||||
jrdid_ms = JRDID_MS_TZ_OWN | JRDID_MS_PRIM_TZ | JRDID_MS_PRIM_DID;
|
||||
sec_out32(&sec->jrliodnr[caam->jrid].ms, jrdid_ms);
|
||||
#endif
|
||||
jr_reset();
|
||||
|
||||
#ifdef CONFIG_FSL_CORENET
|
||||
#ifdef CONFIG_SPL_BUILD
|
||||
#ifdef CONFIG_XPL_BUILD
|
||||
/*
|
||||
* For SPL Build, Set the Liodns in SEC JR0 for
|
||||
* creating PAMU entries corresponding to these.
|
||||
|
||||
Reference in New Issue
Block a user