From 5deb3317cb51ac52de922bb55f8492624018906d Mon Sep 17 00:00:00 2001 From: Roman Yeryomin Date: Thu, 13 Sep 2012 00:40:35 +0300 Subject: Add realtek target files Signed-off-by: Roman Yeryomin --- .../realtek/files/arch/rlx/kernel/cpu-probe.c | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 target/linux/realtek/files/arch/rlx/kernel/cpu-probe.c (limited to 'target/linux/realtek/files/arch/rlx/kernel/cpu-probe.c') diff --git a/target/linux/realtek/files/arch/rlx/kernel/cpu-probe.c b/target/linux/realtek/files/arch/rlx/kernel/cpu-probe.c new file mode 100644 index 000000000..99539380c --- /dev/null +++ b/target/linux/realtek/files/arch/rlx/kernel/cpu-probe.c @@ -0,0 +1,40 @@ +/* + * Processor capabilities determination functions. + * + * Copyright (C) xxxx the Anonymous + * Copyright (C) 1994 - 2006 Ralf Baechle + * Copyright (C) 2003, 2004 Maciej W. Rozycki + * Copyright (C) 2001, 2004 MIPS Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version + * 2 of the License, or (at your option) any later version. + */ +#include +#include +#include +#include + +#include +#include +#include + +const char *__cpu_name[NR_CPUS]; + +void __cpuinit cpu_probe(void) +{ + struct cpuinfo_mips *c = ¤t_cpu_data; + + c->processor_id = PRID_IMP_UNKNOWN; + c->options = MIPS_CPU_TLB | MIPS_CPU_3K_CACHE | MIPS_CPU_NOFPUEX; + c->tlbsize = cpu_tlb_entry; /* defined in bspcpu.h */ + c->processor_id = read_c0_prid(); +} + +void __cpuinit cpu_report(void) +{ + struct cpuinfo_mips *c = ¤t_cpu_data; + + printk("CPU revision is: %08x\n", c->processor_id); +} -- cgit v1.2.3