diff options
| author | Andre Heider <[email protected]> | 2020-09-29 14:34:26 +0200 |
|---|---|---|
| committer | Stefan Roese <[email protected]> | 2020-10-01 10:43:43 +0200 |
| commit | 05e7511fae612aabfc13c58da9bafa12b6438ec8 (patch) | |
| tree | 3fe165e3d01512fc26580a8b3c31e0bd9bde49c3 | |
| parent | 3dee18e2c22cf1a9c141c4bd44dcd2f765338320 (diff) | |
arm: mvebu: Espressobin: Fix checks against machine compatible strings
The patches changing the compatible strings to the ones used by Linux have
not been merged yet, so fix the checks to use the current in-tree ones.
Reported-by: Pali Rohár <[email protected]>
Signed-off-by: Andre Heider <[email protected]>
Reviewed-by: Pali Rohár <[email protected]>
| -rw-r--r-- | board/Marvell/mvebu_armada-37xx/board.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/Marvell/mvebu_armada-37xx/board.c b/board/Marvell/mvebu_armada-37xx/board.c index eacee15cb37..2bfc7171c4b 100644 --- a/board/Marvell/mvebu_armada-37xx/board.c +++ b/board/Marvell/mvebu_armada-37xx/board.c @@ -88,14 +88,14 @@ int board_late_init(void) if (env_get("fdtfile")) return 0; - if (!of_machine_is_compatible("globalscale,espressobin")) + if (!of_machine_is_compatible("marvell,armada-3720-espressobin")) return 0; /* If the memory controller has been configured for DDR4, we're running on v7 */ ddr4 = ((readl(A3700_CH0_MC_CTRL2_REG) >> A3700_MC_CTRL2_SDRAM_TYPE_OFFS) & A3700_MC_CTRL2_SDRAM_TYPE_MASK) == A3700_MC_CTRL2_SDRAM_TYPE_DDR4; - emmc = of_machine_is_compatible("globalscale,espressobin-emmc"); + emmc = of_machine_is_compatible("marvell,armada-3720-espressobin-emmc"); if (ddr4 && emmc) env_set("fdtfile", "marvell/armada-3720-espressobin-v7-emmc.dtb"); |
