2019-05-27 14:55:01 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2011-06-05 03:43:49 +08:00
|
|
|
/*
|
|
|
|
* OpenRISC Linux
|
|
|
|
*
|
|
|
|
* Linux architectural port borrowing liberally from similar works of
|
|
|
|
* others. All original copyrights apply as per the original source
|
|
|
|
* declaration.
|
|
|
|
*
|
|
|
|
* OpenRISC implementation:
|
|
|
|
* Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
|
|
|
|
* Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
|
|
|
|
* et al.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __ASM_OPENRISC_CPUINFO_H
|
|
|
|
#define __ASM_OPENRISC_CPUINFO_H
|
|
|
|
|
2014-05-12 02:49:34 +08:00
|
|
|
struct cpuinfo_or1k {
|
2011-06-05 03:43:49 +08:00
|
|
|
u32 clock_frequency;
|
|
|
|
|
|
|
|
u32 icache_size;
|
|
|
|
u32 icache_block_size;
|
2013-04-28 02:02:32 +08:00
|
|
|
u32 icache_ways;
|
2011-06-05 03:43:49 +08:00
|
|
|
|
|
|
|
u32 dcache_size;
|
|
|
|
u32 dcache_block_size;
|
2013-04-28 02:02:32 +08:00
|
|
|
u32 dcache_ways;
|
2014-05-12 02:49:34 +08:00
|
|
|
|
|
|
|
u16 coreid;
|
2011-06-05 03:43:49 +08:00
|
|
|
};
|
|
|
|
|
2014-05-12 02:49:34 +08:00
|
|
|
extern struct cpuinfo_or1k cpuinfo_or1k[NR_CPUS];
|
|
|
|
extern void setup_cpuinfo(void);
|
2011-06-05 03:43:49 +08:00
|
|
|
|
|
|
|
#endif /* __ASM_OPENRISC_CPUINFO_H */
|