mv_ddr_common.h 592 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) Marvell International Ltd. and its affiliates
  4. */
  5. #ifndef _MV_DDR_COMMON_H
  6. #define _MV_DDR_COMMON_H
  7. extern const char mv_ddr_build_message[];
  8. extern const char mv_ddr_version_string[];
  9. #define MV_DDR_NUM_BITS_IN_BYTE 8
  10. #define MV_DDR_MEGA_BITS (1024 * 1024)
  11. #define MV_DDR_32_BITS_MASK 0xffffffff
  12. unsigned int ceil_div(unsigned int x, unsigned int y);
  13. unsigned int time_to_nclk(unsigned int t, unsigned int tclk);
  14. int round_div(unsigned int dividend, unsigned int divisor, unsigned int *quotient);
  15. #endif /* _MV_DDR_COMMON_H */