summaryrefslogtreecommitdiff
path: root/arch/arm/mach-k3/include/mach/am6_hardware.h
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2018-10-03 10:03:22 -0500
committerTom Rini <trini@konsulko.com>2018-10-10 13:35:08 -0400
commitb5700efbc863669bc4e11283917aa9965c5fc8e8 (patch)
tree1bae02ea62aefc16317b6f617cf41704bca8b450 /arch/arm/mach-k3/include/mach/am6_hardware.h
parent0f3cf2b3e5d1116321eaf7d16338d91a5811143d (diff)
arm: K3: am654: Choose MMC boot device based on boot port
For most devices the boot mode maps directly to the boot device. For MMC this is not the case as we have two MMC boot modes and two MMC boot devices (ports). Check the boot port to determine which MMC device was our boot device. Make this change for both primary and secondary boot modes. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'arch/arm/mach-k3/include/mach/am6_hardware.h')
-rw-r--r--arch/arm/mach-k3/include/mach/am6_hardware.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-k3/include/mach/am6_hardware.h b/arch/arm/mach-k3/include/mach/am6_hardware.h
index e4b78f8617..b5244609af 100644
--- a/arch/arm/mach-k3/include/mach/am6_hardware.h
+++ b/arch/arm/mach-k3/include/mach/am6_hardware.h
@@ -16,6 +16,12 @@
#define CTRLMMR_MAIN_DEVSTAT_BOOTMODE_SHIFT 0
#define CTRLMMR_MAIN_DEVSTAT_BKUP_BOOTMODE_MASK GENMASK(6, 4)
#define CTRLMMR_MAIN_DEVSTAT_BKUP_BOOTMODE_SHIFT 4
+#define CTRLMMR_MAIN_DEVSTAT_MMC_PORT_MASK GENMASK(12, 12)
+#define CTRLMMR_MAIN_DEVSTAT_MMC_PORT_SHIFT 12
+#define CTRLMMR_MAIN_DEVSTAT_EMMC_PORT_MASK GENMASK(14, 14)
+#define CTRLMMR_MAIN_DEVSTAT_EMMC_PORT_SHIFT 14
+#define CTRLMMR_MAIN_DEVSTAT_BKUP_MMC_PORT_MASK GENMASK(17, 17)
+#define CTRLMMR_MAIN_DEVSTAT_BKUP_MMC_PORT_SHIFT 12
#define WKUP_CTRL_MMR0_BASE 0x43000000
#define MCU_CTRL_MMR0_BASE 0x40f00000