diff options
author | Michael Trimarchi <michael@amarulasolutions.com> | 2019-11-15 22:07:24 +0100 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2019-11-17 18:51:25 +0800 |
commit | 59b01eb7a17a7c0915fd8aff8f818699b4624137 (patch) | |
tree | 17d323ca9474d1792057bac90fe8ab5606a12d23 /board/rockchip | |
parent | b40abe3369536fec3439848a9eba31f11d4c3324 (diff) | |
download | u-boot-59b01eb7a17a7c0915fd8aff8f818699b4624137.tar.gz u-boot-59b01eb7a17a7c0915fd8aff8f818699b4624137.tar.xz u-boot-59b01eb7a17a7c0915fd8aff8f818699b4624137.zip |
rockchip: dts: tinker: Add tinker-s board support
Support tinker-s board. The board is equivalent of tinker board
except of emmc.
TODO:
- support of usb current burst when the board is powered from pc
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'board/rockchip')
-rw-r--r-- | board/rockchip/tinker_rk3288/MAINTAINERS | 7 | ||||
-rw-r--r-- | board/rockchip/tinker_rk3288/tinker-rk3288.c | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/board/rockchip/tinker_rk3288/MAINTAINERS b/board/rockchip/tinker_rk3288/MAINTAINERS index cddceafb6e..ed5de682c9 100644 --- a/board/rockchip/tinker_rk3288/MAINTAINERS +++ b/board/rockchip/tinker_rk3288/MAINTAINERS @@ -4,3 +4,10 @@ S: Maintained F: board/rockchip/tinker_rk3288 F: include/configs/tinker_rk3288.h F: configs/tinker-rk3288_defconfig + +TINKER-S-RK3288 +M: Michael Trimarchi <michael@amarulasolutions.com> +S: Maintained +F: board/rockchip/tinker_rk3288 +F: include/configs/tinker_rk3288.h +F: configs/tinker-s-rk3288_defconfig diff --git a/board/rockchip/tinker_rk3288/tinker-rk3288.c b/board/rockchip/tinker_rk3288/tinker-rk3288.c index 6c76c3c25c..7a0c3c997d 100644 --- a/board/rockchip/tinker_rk3288/tinker-rk3288.c +++ b/board/rockchip/tinker_rk3288/tinker-rk3288.c @@ -8,6 +8,8 @@ #include <env.h> #include <i2c_eeprom.h> #include <netdev.h> +#include <asm/arch-rockchip/bootrom.h> +#include <asm/io.h> static int get_ethaddr_from_eeprom(u8 *addr) { @@ -33,3 +35,13 @@ int rk3288_board_late_init(void) return 0; } + +int mmc_get_env_dev(void) +{ + u32 bootdevice_brom_id = readl(BROM_BOOTSOURCE_ID_ADDR); + + if (bootdevice_brom_id == BROM_BOOTSOURCE_EMMC) + return 0; + + return 1; +} |