sys_proto.h 566 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * (C) Copyright 2009
  3. * Stefano Babic, DENX Software Engineering, sbabic@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef _SYS_PROTO_H_
  8. #define _SYS_PROTO_H_
  9. #include "../arch-imx/cpu.h"
  10. #define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev)
  11. u32 get_cpu_rev(void);
  12. unsigned imx_ddr_size(void);
  13. void sdelay(unsigned long);
  14. void set_chipselect_size(int const);
  15. /*
  16. * Initializes on-chip ethernet controllers.
  17. * to override, implement board_eth_init()
  18. */
  19. int fecmxc_initialize(bd_t *bis);
  20. u32 get_ahb_clk(void);
  21. u32 get_periph_clk(void);
  22. #endif