]> git.sur5r.net Git - u-boot/commitdiff
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 b3a56e94ad2158571141953073b5981eec2fe73f..6017ca2ddc832ad4c44290d116cc763b217a8e6f 100644 (file)
        u-boot,dm-pre-reloc;
 };
 
+&emmc {
+       u-boot,dm-pre-reloc;
+};
+
 &uart2 {
        u-boot,dm-pre-reloc;
 };
index 70c433fbddfd390dc75e4b336e69d6db818e5f3c..850aa2581852a8a2552159ffc6cb2298ec43ed56 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 7985671fbd708a12bc0ea01d42729d77a6aeff1d..82f8c4e5b78e42b3f35fa87d8b958ed5719e28b8 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' */