xref: /openbmc/u-boot/include/configs/bk4r1.h (revision 83d290c5)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
227192d16SAlbert ARIBAUD \(3ADEV\) /*
327192d16SAlbert ARIBAUD \(3ADEV\)  * Copyright 2016 3ADEV <http://3adev.com>
427192d16SAlbert ARIBAUD \(3ADEV\)  * Written-by: Albert ARIBAUD <albert.aribaud@3adev.fr>
527192d16SAlbert ARIBAUD \(3ADEV\)  *
627192d16SAlbert ARIBAUD \(3ADEV\)  * Configuration settings for the phytec PCM-052 SoM-based BK4R1.
727192d16SAlbert ARIBAUD \(3ADEV\)  */
827192d16SAlbert ARIBAUD \(3ADEV\) 
927192d16SAlbert ARIBAUD \(3ADEV\) /* Define the BK4r1-specific env commands */
1027192d16SAlbert ARIBAUD \(3ADEV\) #define PCM052_EXTRA_ENV_SETTINGS \
1127192d16SAlbert ARIBAUD \(3ADEV\) 	"set_gpio103=mw 0x400ff0c4 0x0080; mw 0x4004819C 0x000011bf\0" \
1227192d16SAlbert ARIBAUD \(3ADEV\) 	"set_gpio122=mw 0x400481e8 0x0282; mw 0x400ff0c4 0x04000000\0"
1327192d16SAlbert ARIBAUD \(3ADEV\) 
1427192d16SAlbert ARIBAUD \(3ADEV\) /* BK4r1 boot command sets GPIO103/PTC30 to force USB hub out of reset*/
1527192d16SAlbert ARIBAUD \(3ADEV\) #define PCM052_BOOTCOMMAND "run set_gpio103; sf probe; "
1627192d16SAlbert ARIBAUD \(3ADEV\) 
1727192d16SAlbert ARIBAUD \(3ADEV\) /* BK4r1 net init sets GPIO122/PTE17 to enable Ethernet */
1827192d16SAlbert ARIBAUD \(3ADEV\) #define PCM052_NET_INIT "run set_gpio122; "
1927192d16SAlbert ARIBAUD \(3ADEV\) 
2027192d16SAlbert ARIBAUD \(3ADEV\) /* add NOR to MTD env */
2127192d16SAlbert ARIBAUD \(3ADEV\) 
2227192d16SAlbert ARIBAUD \(3ADEV\) /* now include standard PCM052 config */
2327192d16SAlbert ARIBAUD \(3ADEV\) 
2427192d16SAlbert ARIBAUD \(3ADEV\) #include "configs/pcm052.h"
25