dram.h 1013 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2007-2012
  4. * Allwinner Technology Co., Ltd. <www.allwinnertech.com>
  5. * Berg Xing <bergxing@allwinnertech.com>
  6. * Tom Cubie <tangliang@allwinnertech.com>
  7. *
  8. * Sunxi platform dram register definition.
  9. */
  10. #ifndef _SUNXI_DRAM_H
  11. #define _SUNXI_DRAM_H
  12. #include <asm/io.h>
  13. #include <linux/types.h>
  14. /* dram regs definition */
  15. #if defined(CONFIG_MACH_SUN6I)
  16. #include <asm/arch/dram_sun6i.h>
  17. #elif defined(CONFIG_MACH_SUN8I_A23)
  18. #include <asm/arch/dram_sun8i_a23.h>
  19. #elif defined(CONFIG_MACH_SUN8I_A33)
  20. #include <asm/arch/dram_sun8i_a33.h>
  21. #elif defined(CONFIG_MACH_SUN8I_A83T)
  22. #include <asm/arch/dram_sun8i_a83t.h>
  23. #elif defined(CONFIG_SUNXI_DRAM_DW)
  24. #include <asm/arch/dram_sunxi_dw.h>
  25. #elif defined(CONFIG_MACH_SUN9I)
  26. #include <asm/arch/dram_sun9i.h>
  27. #else
  28. #include <asm/arch/dram_sun4i.h>
  29. #endif
  30. unsigned long sunxi_dram_init(void);
  31. void mctl_await_completion(u32 *reg, u32 mask, u32 val);
  32. bool mctl_mem_matches(u32 offset);
  33. #endif /* _SUNXI_DRAM_H */