blob: 6c7a32755a698b29a3adb7e4f3151137f23a1928 [file] [log] [blame]
Bin Meng8a8694d2018-09-26 06:55:21 -07001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
4 */
5
6#include <common.h>
Bin Meng8a8694d2018-09-26 06:55:21 -07007
8/*
9 * cleanup_before_linux() is called just before we call linux
10 * it prepares the processor for linux
11 *
12 * we disable interrupt and caches.
13 */
14int cleanup_before_linux(void)
15{
16 disable_interrupts();
17
18 /* turn off I/D-cache */
19
20 return 0;
21}