blob: d8708267d7b05c33448095b63a5c671eb0678279 [file] [log] [blame]
Cyril Chemparathy37123672010-06-07 14:13:32 -04001/*
2 * TNETV107X: Architecture initialization
3 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Cyril Chemparathy37123672010-06-07 14:13:32 -04005 */
6
7#include <common.h>
8#include <asm/io.h>
9
10void chip_configuration_unlock(void)
11{
12 __raw_writel(TNETV107X_KICK0_MAGIC, TNETV107X_KICK0);
13 __raw_writel(TNETV107X_KICK1_MAGIC, TNETV107X_KICK1);
14}
15
16int arch_cpu_init(void)
17{
18 icache_enable();
19 chip_configuration_unlock();
20
21 return 0;
22}