blob: 25d97d0b416d90f4ee63423a0f3115d6b9c4d85c [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
Rick Chen842d5802018-11-07 09:34:06 +080018 cache_flush();
Bin Meng8a8694d2018-09-26 06:55:21 -070019
20 return 0;
21}