common.h 914 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * This program is free software; you can redistribute it and/or modify it
  3. * under the terms of the GNU General Public License version 2 as published
  4. * by the Free Software Foundation.
  5. *
  6. * Copyright (C) 2013 John Crispin <john@phrozen.org>
  7. */
  8. #ifndef _RALINK_COMMON_H__
  9. #define _RALINK_COMMON_H__
  10. #define RAMIPS_SYS_TYPE_LEN 32
  11. struct ralink_soc_info {
  12. unsigned char sys_type[RAMIPS_SYS_TYPE_LEN];
  13. unsigned char *compatible;
  14. unsigned long mem_base;
  15. unsigned long mem_size;
  16. unsigned long mem_size_min;
  17. unsigned long mem_size_max;
  18. };
  19. extern struct ralink_soc_info soc_info;
  20. extern void ralink_of_remap(void);
  21. extern void ralink_clk_init(void);
  22. extern void ralink_clk_add(const char *dev, unsigned long rate);
  23. extern void ralink_rst_init(void);
  24. extern void prom_soc_init(struct ralink_soc_info *soc_info);
  25. __iomem void *plat_of_remap_node(const char *node);
  26. #endif /* _RALINK_COMMON_H__ */