i.MX6UL: isiot: Switch the mmc env based on devno
[oweals/u-boot.git] / board / freescale / mx25pdk / mx25pdk.c
index 5e6047f83497de6673e78f4821bd1f7d32a18f36..788d3c3e35972b83260daa11498f057214826eae 100644 (file)
@@ -3,18 +3,7 @@
  *
  * Author: Fabio Estevam <fabio.estevam@freescale.com>
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -149,7 +138,7 @@ int board_late_init(void)
 
        mx25pdk_fec_init();
 
-       ret = pmic_init(I2C_PMIC);
+       ret = pmic_init(I2C_0);
        if (ret)
                return ret;
 
@@ -157,8 +146,8 @@ int board_late_init(void)
        if (!p)
                return -ENODEV;
 
-       /* Turn on Ethernet PHY supply */
-       pmic_reg_write(p, MC34704_GENERAL2_REG, ONOFFE);
+       /* Turn on Ethernet PHY and LCD supplies */
+       pmic_reg_write(p, MC34704_GENERAL2_REG, ONOFFE | ONOFFA);
 
        return 0;
 }
@@ -197,3 +186,6 @@ int checkboard(void)
 
        return 0;
 }
+
+/* Lowlevel init isn't used on mx25pdk, so just provide a dummy one here */
+void lowlevel_init(void) {}