Merge branch 'next' of https://gitlab.denx.de/u-boot/custodians/u-boot-marvell into...
[platform/kernel/u-boot.git] / include / configs / goflexhome.h
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2013 Suriyan Ramasami <suriyan.r@gmail.com>
4  *
5  * Based on dockstar.h originally written by
6  * Copyright (C) 2010  Eric C. Cooper <ecc@cmu.edu>
7  *
8  * Based on sheevaplug.h originally written by
9  * Prafulla Wadaskar <prafulla@marvell.com>
10  * (C) Copyright 2009
11  * Marvell Semiconductor <www.marvell.com>
12  */
13
14 #ifndef _CONFIG_GOFLEXHOME_H
15 #define _CONFIG_GOFLEXHOME_H
16
17 /*
18  * High Level Configuration Options (easy to change)
19  */
20 #define CONFIG_FEROCEON_88FR131 1       /* CPU Core subversion */
21 #define CONFIG_KW88F6281        1       /* SOC Name */
22
23 /*
24  * Default GPIO configuration and LED status
25  */
26 #define GOFLEXHOME_OE_LOW               (~(0))
27 #define GOFLEXHOME_OE_HIGH              (~(0))
28 #define GOFLEXHOME_OE_VAL_LOW           (1 << 29)       /* USB_PWEN low */
29 #define GOFLEXHOME_OE_VAL_HIGH          (1 << 17)       /* LED pin high */
30
31 /* PHY related */
32 #define MV88E1116_LED_FCTRL_REG         10
33 #define MV88E1116_CPRSP_CR3_REG         21
34 #define MV88E1116_MAC_CTRL_REG          21
35 #define MV88E1116_PGADR_REG             22
36 #define MV88E1116_RGMII_TXTM_CTRL       (1 << 4)
37 #define MV88E1116_RGMII_RXTM_CTRL       (1 << 5)
38
39 #include "mv-common.h"
40
41 /*
42  *  Environment variables configurations
43  */
44 /*
45  * max 4k env size is enough, but in case of nand
46  * it has to be rounded to sector size
47  */
48
49 /*
50  * Default environment variables
51  */
52 #define CONFIG_BOOTCOMMAND \
53         "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
54         "ubi part root; " \
55         "ubifsmount ubi:root; " \
56         "ubifsload 0x800000 ${kernel}; " \
57         "bootm 0x800000"
58
59 #define CONFIG_EXTRA_ENV_SETTINGS \
60         "console=console=ttyS0,115200\0" \
61         "mtdids=nand0=orion_nand\0" \
62         "mtdparts="CONFIG_MTDPARTS_DEFAULT \
63         "kernel=/boot/uImage\0" \
64         "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
65
66 /*
67  * Ethernet Driver configuration
68  */
69 #ifdef CONFIG_CMD_NET
70 #define CONFIG_MVGBE_PORTS      {1, 0}  /* enable port 0 only */
71 #define CONFIG_PHY_BASE_ADR     0
72 #endif /* CONFIG_CMD_NET */
73
74 /* SATA driver configuration */
75 #ifdef CONFIG_SATA
76 #define CONFIG_SYS_SATA_MAX_DEVICE      1
77 #define CONFIG_LBA48
78 #endif /* CONFIG_SATA */
79
80 #endif /* _CONFIG_GOFLEXHOME_H */