common.h 612 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. *
  4. * Copyright (C) 2013 John Crispin <john@phrozen.org>
  5. */
  6. #ifndef _RALINK_COMMON_H__
  7. #define _RALINK_COMMON_H__
  8. #define RAMIPS_SYS_TYPE_LEN 32
  9. struct ralink_soc_info {
  10. unsigned char sys_type[RAMIPS_SYS_TYPE_LEN];
  11. unsigned char *compatible;
  12. unsigned long mem_base;
  13. unsigned long mem_size;
  14. unsigned long mem_size_min;
  15. unsigned long mem_size_max;
  16. void (*mem_detect)(void);
  17. };
  18. extern struct ralink_soc_info soc_info;
  19. extern void ralink_of_remap(void);
  20. extern void __init prom_soc_init(struct ralink_soc_info *soc_info);
  21. #endif /* _RALINK_COMMON_H__ */