sys_proto.h 368 B

12345678910111213141516
  1. /*
  2. * (C) Copyright 2011
  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. u32 get_cpu_rev(void);
  10. void mx3_setup_sdram_bank(u32 start_address, u32 ddr2_config,
  11. u32 row, u32 col, u32 dsize, u32 refresh);
  12. #define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev)
  13. #endif