summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurz <akurz@blala.de>2017-05-14 23:26:25 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-16 07:36:00 +0200
commit873f51ba8dbf14173a62ca938675bfb00caef0c8 (patch)
treee245e6b3d4cf635f7b6a5e6ec79c51c35257f915
parente648666112e7e99de621277e7c895a0341bd3c9d (diff)
downloadbarebox-873f51ba8dbf14173a62ca938675bfb00caef0c8.tar.gz
ARM: i.MX50: Amazon Kindle: Model EY21 compatibility check
Extend the compatibility check for i.MX50 based kindles also on model EY21. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/boards/kindle-mx50/board.c3
-rw-r--r--arch/arm/dts/imx50-kindle-ey21.dts2
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/boards/kindle-mx50/board.c b/arch/arm/boards/kindle-mx50/board.c
index 7bd4f91..089dd8e 100644
--- a/arch/arm/boards/kindle-mx50/board.c
+++ b/arch/arm/boards/kindle-mx50/board.c
@@ -123,7 +123,8 @@ static void kindle_rev_init(void)
static int is_mx50_kindle(void)
{
return of_machine_is_compatible("amazon,kindle-d01100") ||
- of_machine_is_compatible("amazon,kindle-d01200");
+ of_machine_is_compatible("amazon,kindle-d01200") ||
+ of_machine_is_compatible("amazon,kindle-ey21");
}
static int kindle_mx50_late_init(void)
diff --git a/arch/arm/dts/imx50-kindle-ey21.dts b/arch/arm/dts/imx50-kindle-ey21.dts
index 1b8f2ad..0be7001 100644
--- a/arch/arm/dts/imx50-kindle-ey21.dts
+++ b/arch/arm/dts/imx50-kindle-ey21.dts
@@ -17,7 +17,7 @@
/ {
model = "Amazon Kindle EY21";
- compatible = "fsl,imx50";
+ compatible = "amazon,kindle-ey21", "fsl,imx50";
memory {
device_type = "memory";