mt7622_rfb.c 480 B

1234567891011121314151617181920212223242526
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2018 MediaTek Inc.
  4. * Author: Sam Shih <sam.shih@mediatek.com>
  5. */
  6. #include <common.h>
  7. #include <config.h>
  8. #include <env.h>
  9. #include <init.h>
  10. #include <asm/global_data.h>
  11. DECLARE_GLOBAL_DATA_PTR;
  12. int board_init(void)
  13. {
  14. gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
  15. return 0;
  16. }
  17. int board_late_init(void)
  18. {
  19. gd->env_valid = 1; //to load environment variable from persistent store
  20. env_relocate();
  21. return 0;
  22. }