diff --git a/patch/u-boot/u-boot-rockchip/100-tinker-s-eMMC-bootable.patch b/patch/u-boot/u-boot-rockchip/100-tinker-s-eMMC-bootable.patch new file mode 100644 index 000000000..a9fe5fbba --- /dev/null +++ b/patch/u-boot/u-boot-rockchip/100-tinker-s-eMMC-bootable.patch @@ -0,0 +1,54 @@ +diff --git a/arch/arm/dts/rk3288-tinker.dtsi b/arch/arm/dts/rk3288-tinker.dtsi +index a752458..14cca73 100644 +--- a/arch/arm/dts/rk3288-tinker.dtsi ++++ b/arch/arm/dts/rk3288-tinker.dtsi +@@ -143,6 +143,21 @@ + vqmmc-supply = <&vccio_sd>; + }; + ++&emmc { ++ bus-width = <8>; ++ cap-mmc-highspeed; ++ disable-wp; ++ non-removable; ++ num-slots = <1>; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>; ++ max-frequency = <150000000>; ++ mmc-hs200-1_8v; ++ mmc-ddr-1_8v; ++ status = "okay"; ++}; ++ ++ + &gpu { + mali-supply = <&vdd_gpu>; + status = "okay"; +diff --git a/include/configs/tinker_rk3288.h b/include/configs/tinker_rk3288.h +index 58eea3c..cc585dc 100644 +--- a/include/configs/tinker_rk3288.h ++++ b/include/configs/tinker_rk3288.h +@@ -7,17 +7,14 @@ + #ifndef __CONFIG_H + #define __CONFIG_H + +-#define ROCKCHIP_DEVICE_SETTINGS +-#include ++#define ROCKCHIP_DEVICE_SETTINGS \ ++ "stdin=serial,cros-ec-keyb\0"\ ++ "stdout=serial,vidconsole\0"\ ++ "stderr=serial,vidconsole\0" + +-#undef BOOT_TARGET_DEVICES + +-#define BOOT_TARGET_DEVICES(func) \ +- func(MMC, mmc, 1) \ +- func(USB, usb, 0) \ +- func(PXE, pxe, na) \ +- func(DHCP, dchp, na) ++#include + +-#define CONFIG_SYS_MMC_ENV_DEV 1 ++#define CONFIG_SYS_MMC_ENV_DEV 0 + + #endif