blob: fddcc156c3dce4f75ec154307ea4ce352710161c [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Rick Chene76b8042017-12-26 13:55:48 +08002/*
3 * Copyright (C) 2017 Andes Technology Corporation
4 * Rick Chen, Andes Technology Corporation <rick@andestech.com>
Rick Chene76b8042017-12-26 13:55:48 +08005 */
6
7/* CPU specific code */
8#include <common.h>
Rick Chene76b8042017-12-26 13:55:48 +08009
10/*
11 * cleanup_before_linux() is called just before we call linux
12 * it prepares the processor for linux
13 *
14 * we disable interrupt and caches.
15 */
16int cleanup_before_linux(void)
17{
18 disable_interrupts();
19
20 /* turn off I/D-cache */
21
22 return 0;
23}