tianhuo_c810_fpga.c 665 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (C) 2017-2020 Alibaba Group Holding Limited
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. #include <mmc.h>
  8. #include <miiphy.h>
  9. #include <netdev.h>
  10. #include "gpio/gpio.h"
  11. #include "../common/mini_printf.h"
  12. #include "hardware.h"
  13. DECLARE_GLOBAL_DATA_PTR;
  14. int dram_init(void)
  15. {
  16. gd->ram_size = PHYS_SDRAM_1_SIZE;
  17. return 0;
  18. }
  19. void show_boot_progress(int val)
  20. {
  21. }
  22. int board_early_init_f(void)
  23. {
  24. return 0;
  25. }
  26. int dram_init_banksize(void)
  27. {
  28. gd->bd->bi_dram[0].start = PHYS_SDRAM_1 + 0x14000000;
  29. gd->bd->bi_dram[0].size = 0x4000000;
  30. return 0;
  31. }
  32. int board_early_init_r(void)
  33. {
  34. timer_init();
  35. return 0;
  36. }