odroid-go-ultra.c 364 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2023 Neil Armstrong <neil.armstrong@linaro.org>
  4. */
  5. #include <common.h>
  6. #include <asm/arch/boot.h>
  7. #include <power/regulator.h>
  8. int mmc_get_env_dev(void)
  9. {
  10. if (meson_get_boot_device() == BOOT_DEVICE_EMMC)
  11. return 1;
  12. return 0;
  13. }
  14. int board_init(void)
  15. {
  16. regulators_enable_boot_on(_DEBUG);
  17. return 0;
  18. }