]> git.sur5r.net Git - u-boot/blob - arch/mips/cpu/mips32/cpu.c
MIPS: handle mips64 ST0_KX bit in mips32 start.S
[u-boot] / arch / mips / cpu / mips32 / cpu.c
1 /*
2  * (C) Copyright 2003
3  * Wolfgang Denk, DENX Software Engineering, <wd@denx.de>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <common.h>
9 #include <command.h>
10 #include <netdev.h>
11 #include <asm/mipsregs.h>
12 #include <asm/reboot.h>
13
14 void __attribute__((weak)) _machine_restart(void)
15 {
16 }
17
18 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
19 {
20         _machine_restart();
21
22         fprintf(stderr, "*** reset failed ***\n");
23         return 0;
24 }
25
26 void write_one_tlb(int index, u32 pagemask, u32 hi, u32 low0, u32 low1)
27 {
28         write_c0_entrylo0(low0);
29         write_c0_pagemask(pagemask);
30         write_c0_entrylo1(low1);
31         write_c0_entryhi(hi);
32         write_c0_index(index);
33         tlb_write_indexed();
34 }
35
36 int cpu_eth_init(bd_t *bis)
37 {
38 #ifdef CONFIG_SOC_AU1X00
39         au1x00_enet_initialize(bis);
40 #endif
41         return 0;
42 }