summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-11-10 15:07:31 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-11-10 15:07:31 +0100
commit139e0a4f6ffe675236cceb4d61d27d89d72a1fa0 (patch)
tree55008abf4760343c6f02c483ebfda0b3a1c7f905 /arch
parente94ceec83fe41af8dc904d0851570b0af1ff40ec (diff)
parentcca126664350433891bf63c33db26ef9f0014ea1 (diff)
downloadbarebox-139e0a4f6ffe675236cceb4d61d27d89d72a1fa0.tar.gz
barebox-139e0a4f6ffe675236cceb4d61d27d89d72a1fa0.tar.xz
Merge branch 'for-next/imx'
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boards/ccxmx51/ccxmx51.c17
-rw-r--r--arch/arm/boards/nxp-imx8mp-evk/lowlevel.c2
-rw-r--r--arch/arm/dts/imx6qdl-phytec-pfla02.dtsi15
3 files changed, 22 insertions, 12 deletions
diff --git a/arch/arm/boards/ccxmx51/ccxmx51.c b/arch/arm/boards/ccxmx51/ccxmx51.c
index 13fba51fec..09437b047f 100644
--- a/arch/arm/boards/ccxmx51/ccxmx51.c
+++ b/arch/arm/boards/ccxmx51/ccxmx51.c
@@ -31,7 +31,7 @@ static const struct ccxmx_ident {
unsigned char eth1:1;
unsigned char wless:1;
unsigned char accel:1;
-} *ccxmx_id, ccxmx51_ids[] = {
+} ccxmx51_ids[] = {
[0x00] = { NULL /* Unknown */, 0, 0, 0, 0, 0, 0 },
[0x01] = { NULL /* Not supported */, 0, 0, 0, 0, 0, 0 },
[0x02] = { "i.MX515@800MHz, Wireless, PHY, Ext. Eth, Accel", SZ_512M, 800, 1, 1, 1, 1 },
@@ -52,7 +52,9 @@ static const struct ccxmx_ident {
[0x11] = { "i.MX515@800MHz, PHY, Accel", SZ_128M, 800, 1, 0, 0, 1 },
[0x12] = { "i.MX515@600MHz, Wireless, PHY, Accel", SZ_512M, 600, 1, 0, 1, 1 },
[0x13] = { "i.MX515@800MHz, PHY, Accel", SZ_512M, 800, 1, 0, 0, 1 },
-};
+ [0x14] = { NULL, 0, 0, 0, 0, 0, 0 },
+ [0x15] = { "i.MX515@600MHz, PHY, Accel", SZ_512M, 600, 1, 0, 0, 1 },
+}, *ccxmx_id = &ccxmx51_ids[0];
static u32 boardserial;
@@ -228,13 +230,18 @@ static __init int ccxmx51_init(void)
{
char manloc = 'N';
u8 hwid[6];
+ int ret;
if (!ccxmx51_is_compatible())
return 0;
- if ((imx_iim_read(1, 9, hwid, sizeof(hwid)) != sizeof(hwid)) ||
- (hwid[0] < 0x02) || (hwid[0] >= ARRAY_SIZE(ccxmx51_ids))) {
- printf("Unknown board variant (0x%02x). System halted.\n", hwid[0]);
+ ret = imx_iim_read(1, 9, hwid, sizeof(hwid));
+ if ((ret == sizeof(hwid)) && (hwid[0] < ARRAY_SIZE(ccxmx51_ids)))
+ ccxmx_id = &ccxmx51_ids[hwid[0]];
+
+ if (!ccxmx_id->mem_sz) {
+ printf("Unknown/unsupported board variant (0x%02x).\n"
+ "System halted.\n", hwid[0]);
hang();
}
diff --git a/arch/arm/boards/nxp-imx8mp-evk/lowlevel.c b/arch/arm/boards/nxp-imx8mp-evk/lowlevel.c
index e4f994a1d1..3298ded586 100644
--- a/arch/arm/boards/nxp-imx8mp-evk/lowlevel.c
+++ b/arch/arm/boards/nxp-imx8mp-evk/lowlevel.c
@@ -118,7 +118,7 @@ static void start_atf(void)
power_init_board();
- imx8mm_ddr_init(&imx8mp_evk_dram_timing);
+ imx8mp_ddr_init(&imx8mp_evk_dram_timing);
imx8mp_get_boot_source(&src, &instance);
switch (src) {
diff --git a/arch/arm/dts/imx6qdl-phytec-pfla02.dtsi b/arch/arm/dts/imx6qdl-phytec-pfla02.dtsi
index b83511cb01..cb5ca0aba2 100644
--- a/arch/arm/dts/imx6qdl-phytec-pfla02.dtsi
+++ b/arch/arm/dts/imx6qdl-phytec-pfla02.dtsi
@@ -84,6 +84,11 @@
};
&fec {
+ /*
+ * barebox doesn't have a driver for the PMIC providing the phy-supply
+ * (dlg,da9063). So remove the phy-supply property and rely on the
+ * PMIC's reset default which has this supply enabled.
+ */
/delete-property/ phy-supply;
};
@@ -155,6 +160,10 @@
barebox,provide-mac-address = <&fec 0x620>;
};
+&som_eeprom {
+ pagesize = <32>;
+};
+
&usdhc3 {
#address-cells = <1>;
#size-cells = <1>;
@@ -175,12 +184,6 @@
pinctrl-0 = <&pinctrl_i2c1>;
status = "okay";
- eeprom: eeprom@50 {
- compatible = "atmel,24c32";
- pagesize = <32>;
- reg = <0x50>;
- };
-
pmic@58 {
watchdog-priority = <500>;
restart-priority = <500>;