cpu.c 594 B

1234567891011121314151617181920212223242526
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * [origin: arch/arm/cpu/arm926ejs/at91/cpu.c]
  4. *
  5. * (C) Copyright 2011
  6. * Andreas Bießmann, andreas@biessmann.org
  7. * (C) Copyright 2010
  8. * Reinhard Meyer, reinhard.meyer@emk-elektronik.de
  9. * (C) Copyright 2009
  10. * Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  11. */
  12. #include <common.h>
  13. #include <init.h>
  14. #include <asm/io.h>
  15. #include <asm/arch/hardware.h>
  16. #include <asm/arch/clk.h>
  17. #ifndef CONFIG_SYS_AT91_MAIN_CLOCK
  18. #define CONFIG_SYS_AT91_MAIN_CLOCK 0
  19. #endif
  20. int arch_cpu_init(void)
  21. {
  22. return at91_clock_init(CONFIG_SYS_AT91_MAIN_CLOCK);
  23. }