2 * (C) Copyright 2004, Psyent Corporation <www.psyent.com>
3 * Scott McNutt <smcnutt@psyent.com>
5 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/cache.h>
13 #if defined (CONFIG_SYS_NIOS_SYSID_BASE)
14 extern void display_sysid (void);
15 #endif /* CONFIG_SYS_NIOS_SYSID_BASE */
19 printf ("CPU : Nios-II\n");
20 #if !defined(CONFIG_SYS_NIOS_SYSID_BASE)
21 printf ("SYSID : <unknown>\n");
28 int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
31 /* indirect call to go beyond 256MB limitation of toolchain */
32 nios2_callr(CONFIG_SYS_RESET_ADDR);
36 int dcache_status(void)
41 void dcache_enable(void)
43 flush_dcache(CONFIG_SYS_DCACHE_SIZE, CONFIG_SYS_DCACHELINE_SIZE);
46 void dcache_disable(void)
48 flush_dcache(CONFIG_SYS_DCACHE_SIZE, CONFIG_SYS_DCACHELINE_SIZE);