xref: /openbmc/u-boot/include/configs/bk4r1.h (revision be059e88)
1 /*
2  * Copyright 2016 3ADEV <http://3adev.com>
3  * Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr>
4  *
5  * Configuration settings for the phytec PCM-052 SoM-based BK4R1.
6  *
7  * SPDX-License-Identifier:	GPL-2.0+
8  */
9 
10 /* Define the BK4r1-specific env commands */
11 #define PCM052_EXTRA_ENV_SETTINGS \
12 	"set_gpio103=mw 0x400ff0c4 0x0080; mw 0x4004819C 0x000011bf\0" \
13 	"set_gpio122=mw 0x400481e8 0x0282; mw 0x400ff0c4 0x04000000\0"
14 
15 /* BK4r1 boot command sets GPIO103/PTC30 to force USB hub out of reset*/
16 #define PCM052_BOOTCOMMAND "run set_gpio103; sf probe; "
17 
18 /* BK4r1 net init sets GPIO122/PTE17 to enable Ethernet */
19 #define PCM052_NET_INIT "run set_gpio122; "
20 
21 /* add NOR to MTD env */
22 #define MTDIDS_DEFAULT			"nand0=NAND,nor0=NOR"
23 #define MTDPARTS_DEFAULT		"mtdparts=NAND:640k(bootloader)"\
24 					",128k(env1)"\
25 					",128k(env2)"\
26 					",128k(dtb)"\
27 					",6144k(kernel)"\
28 					",-(root);"\
29 					"NOR:-(nor)"
30 
31 /* now include standard PCM052 config */
32 
33 #include "configs/pcm052.h"
34