3 * Texas Instruments <www.ti.com>
5 * SPDX-License-Identifier: GPL-2.0+
12 #define MIF_CONFIG_REG 0xFFFECC0C
13 #define FLASH_GLOBAL_CTRL_NWP 1
15 void archflashwp (void *archdata, int wp)
17 ulong *fgc = (ulong *) MIF_CONFIG_REG;
20 *fgc &= ~FLASH_GLOBAL_CTRL_NWP;
22 *fgc |= FLASH_GLOBAL_CTRL_NWP;