stm32mp1.c 530 B

123456789101112131415161718192021222324252627282930
  1. // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
  2. /*
  3. * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
  4. */
  5. #include <config.h>
  6. #include <common.h>
  7. #include <led.h>
  8. #include <asm/arch/stm32.h>
  9. /*
  10. * Get a global data pointer
  11. */
  12. DECLARE_GLOBAL_DATA_PTR;
  13. int board_late_init(void)
  14. {
  15. return 0;
  16. }
  17. /* board dependent setup after realloc */
  18. int board_init(void)
  19. {
  20. /* address of boot parameters */
  21. gd->bd->bi_boot_params = STM32_DDR_BASE + 0x100;
  22. if (IS_ENABLED(CONFIG_LED))
  23. led_default_state();
  24. return 0;
  25. }