xpl: Rename spl_phase() to xpl_phase()
Rename this function to indicate that it refers to any xPL phase. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -37,7 +37,7 @@ static int designware_i2c_pci_of_to_plat(struct udevice *dev)
|
||||
{
|
||||
struct dw_i2c *priv = dev_get_priv(dev);
|
||||
|
||||
if (spl_phase() < PHASE_SPL) {
|
||||
if (xpl_phase() < PHASE_SPL) {
|
||||
u32 base;
|
||||
int ret;
|
||||
|
||||
@@ -53,7 +53,7 @@ static int designware_i2c_pci_of_to_plat(struct udevice *dev)
|
||||
PCI_COMMAND_MASTER);
|
||||
}
|
||||
|
||||
if (spl_phase() < PHASE_BOARD_F) {
|
||||
if (xpl_phase() < PHASE_BOARD_F) {
|
||||
/* Handle early, fixed mapping into a different address space */
|
||||
priv->regs = (struct i2c_regs *)dm_pci_read_bar32(dev, 0);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user