2019-06-04 16:11:33 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2013-01-22 01:25:59 +08:00
|
|
|
/*
|
|
|
|
*
|
2016-05-05 15:57:56 +08:00
|
|
|
* Copyright (C) 2013 John Crispin <john@phrozen.org>
|
2013-01-22 01:25:59 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _RALINK_COMMON_H__
|
|
|
|
#define _RALINK_COMMON_H__
|
|
|
|
|
|
|
|
#define RAMIPS_SYS_TYPE_LEN 32
|
|
|
|
|
|
|
|
struct ralink_soc_info {
|
|
|
|
unsigned char sys_type[RAMIPS_SYS_TYPE_LEN];
|
|
|
|
unsigned char *compatible;
|
2013-04-13 21:10:14 +08:00
|
|
|
|
|
|
|
unsigned long mem_base;
|
|
|
|
unsigned long mem_size;
|
|
|
|
unsigned long mem_size_min;
|
|
|
|
unsigned long mem_size_max;
|
2021-03-27 13:38:40 +08:00
|
|
|
void (*mem_detect)(void);
|
2013-01-22 01:25:59 +08:00
|
|
|
};
|
|
|
|
extern struct ralink_soc_info soc_info;
|
|
|
|
|
|
|
|
extern void ralink_of_remap(void);
|
|
|
|
|
2021-03-27 13:38:39 +08:00
|
|
|
extern void __init prom_soc_init(struct ralink_soc_info *soc_info);
|
2013-01-22 01:25:59 +08:00
|
|
|
|
|
|
|
#endif /* _RALINK_COMMON_H__ */
|