]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/arm925t/omap925.c
samsung: trats2: add support for new board Trats2
[karo-tx-uboot.git] / arch / arm / cpu / arm925t / omap925.c
1 /*
2  * (C) Copyright 2003
3  * Texas Instruments <www.ti.com>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7
8 #include <common.h>
9 #include <command.h>
10 #include <arm925t.h>
11
12 #define MIF_CONFIG_REG 0xFFFECC0C
13 #define FLASH_GLOBAL_CTRL_NWP 1
14
15 void archflashwp (void *archdata, int wp)
16 {
17         ulong *fgc = (ulong *) MIF_CONFIG_REG;
18
19         if (wp == 1)
20                 *fgc &= ~FLASH_GLOBAL_CTRL_NWP;
21         else
22                 *fgc |= FLASH_GLOBAL_CTRL_NWP;
23 }