rk3288: vyasa: Add eMMC boot support
authorJagan Teki <jagannadh.teki@gmail.com>
Wed, 14 Feb 2018 15:56:22 +0000 (21:26 +0530)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tue, 13 Mar 2018 17:12:36 +0000 (18:12 +0100)
RK3288 Vyasa has eMMC boot support, with JP4 open.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/dts/rk3288-vyasa-u-boot.dtsi
arch/arm/dts/rk3288-vyasa.dts
board/amarula/vyasa-rk3288/vyasa-rk3288.c

index b3a56e9..6017ca2 100644 (file)
        u-boot,dm-pre-reloc;
 };
 
+&emmc {
+       u-boot,dm-pre-reloc;
+};
+
 &uart2 {
        u-boot,dm-pre-reloc;
 };
index 70c433f..850aa25 100644 (file)
        cpu0-supply = <&vdd_cpu>;
 };
 
+&emmc {
+       bus-width = <8>;
+       cap-mmc-highspeed;
+       disable-wp;
+       non-removable;
+       pinctrl-names = "default";
+       pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
+       vmmc-supply = <&vcc_io>;
+       status = "okay";
+};
+
 &gmac {
        assigned-clocks = <&cru SCLK_MAC>;
        assigned-clock-parents = <&ext_gmac>;
index 7985671..82f8c4e 100644 (file)
@@ -9,6 +9,13 @@
 #ifndef CONFIG_TPL_BUILD
 #include <spl.h>
 
+void board_boot_order(u32 *spl_boot_list)
+{
+       /* eMMC prior to sdcard. */
+       spl_boot_list[0] = BOOT_DEVICE_MMC2;
+       spl_boot_list[1] = BOOT_DEVICE_MMC1;
+}
+
 int spl_start_uboot(void)
 {
         /* break into full u-boot on 'c' */