Cyril Chemparathy | 3712367 | 2010-06-07 14:13:32 -0400 | [diff] [blame] | 1 | /* |
| 2 | * TNETV107X: Architecture initialization |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Cyril Chemparathy | 3712367 | 2010-06-07 14:13:32 -0400 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <asm/io.h> |
| 9 | |
| 10 | void chip_configuration_unlock(void) |
| 11 | { |
| 12 | __raw_writel(TNETV107X_KICK0_MAGIC, TNETV107X_KICK0); |
| 13 | __raw_writel(TNETV107X_KICK1_MAGIC, TNETV107X_KICK1); |
| 14 | } |
| 15 | |
| 16 | int arch_cpu_init(void) |
| 17 | { |
| 18 | icache_enable(); |
| 19 | chip_configuration_unlock(); |
| 20 | |
| 21 | return 0; |
| 22 | } |