2
* Copyright (C) 2007 Sergey Kubushyn <ksi@koi8.net>
4
* Board-specific low level initialization code. Called at the very end
5
* of arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S. Just returns if there is no
6
* initialization required.
8
* For _OLDER_ Sonata boards sets up GPIO4 to control NAND WP line. Newer
9
* Sonata boards, AFAIK, don't use this so it's just return by default. Ask
10
* Visioneering if they reinvented the wheel once again to make sure :)
12
* SPDX-License-Identifier: GPL-2.0+
19
#ifdef SONATA_BOARD_GPIOWP
20
/* Set PINMUX0 to enable GPIO4 */
27
/* Enable GPIO LPSC module */
37
and r2, r2, $0xfffffff8
38
orr r2, r2, $0x00000003
41
orr r2, r2, $0x00000200
56
and r2, r2, $0x0000001f
67
/* Set it to 0 (Write Protect) */
68
ldr r0, GPIO_CLR_DATA01
74
#ifdef SONATA_BOARD_GPIOWP