blob: b8245d0940d642ae53d729c3ec0e20c79ed4016e [file] [log] [blame]
John Crispin85639912013-01-21 18:25:59 +01001/*
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 *
John Crispin97b92102016-05-05 09:57:56 +02006 * Copyright (C) 2013 John Crispin <john@phrozen.org>
John Crispin85639912013-01-21 18:25:59 +01007 */
8
9#ifndef _RALINK_COMMON_H__
10#define _RALINK_COMMON_H__
11
12#define RAMIPS_SYS_TYPE_LEN 32
13
John Crispin85639912013-01-21 18:25:59 +010014struct ralink_soc_info {
15 unsigned char sys_type[RAMIPS_SYS_TYPE_LEN];
16 unsigned char *compatible;
John Crispin629e39e2013-04-13 15:10:14 +020017
18 unsigned long mem_base;
19 unsigned long mem_size;
20 unsigned long mem_size_min;
21 unsigned long mem_size_max;
John Crispin85639912013-01-21 18:25:59 +010022};
23extern struct ralink_soc_info soc_info;
24
25extern void ralink_of_remap(void);
26
27extern void ralink_clk_init(void);
28extern void ralink_clk_add(const char *dev, unsigned long rate);
29
John Crispin2a153f12013-09-04 00:16:59 +020030extern void ralink_rst_init(void);
31
John Crispin85639912013-01-21 18:25:59 +010032extern void prom_soc_init(struct ralink_soc_info *soc_info);
33
34__iomem void *plat_of_remap_node(const char *node);
35
36#endif /* _RALINK_COMMON_H__ */