aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/scs/early_mmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/common/block/scs/early_mmc.c')
-rw-r--r--src/soc/intel/common/block/scs/early_mmc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/common/block/scs/early_mmc.c b/src/soc/intel/common/block/scs/early_mmc.c
index 5980b6b137..00946b304d 100644
--- a/src/soc/intel/common/block/scs/early_mmc.c
+++ b/src/soc/intel/common/block/scs/early_mmc.c
@@ -32,14 +32,14 @@ static void enable_mmc_controller_bar(void)
{
pci_write_config32(PCH_DEV_EMMC, PCI_BASE_ADDRESS_0,
PRERAM_MMC_BASE_ADDRESS);
- pci_write_config32(PCH_DEV_EMMC, PCI_COMMAND,
+ pci_write_config16(PCH_DEV_EMMC, PCI_COMMAND,
PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY);
}
static void disable_mmc_controller_bar(void)
{
pci_write_config32(PCH_DEV_EMMC, PCI_BASE_ADDRESS_0, 0);
- pci_write_config32(PCH_DEV_EMMC, PCI_COMMAND,
+ pci_write_config16(PCH_DEV_EMMC, PCI_COMMAND,
~(PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY));
}