blob: 90e37d9853545f0220759127e588190f95ee3c27 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +00002/*
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>
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000012 */
13
14#ifndef _CONFIG_GOFLEXHOME_H
15#define _CONFIG_GOFLEXHOME_H
16
17/*
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000018 * Default GPIO configuration and LED status
19 */
20#define GOFLEXHOME_OE_LOW (~(0))
21#define GOFLEXHOME_OE_HIGH (~(0))
22#define GOFLEXHOME_OE_VAL_LOW (1 << 29) /* USB_PWEN low */
23#define GOFLEXHOME_OE_VAL_HIGH (1 << 17) /* LED pin high */
24
25/* PHY related */
26#define MV88E1116_LED_FCTRL_REG 10
27#define MV88E1116_CPRSP_CR3_REG 21
28#define MV88E1116_MAC_CTRL_REG 21
29#define MV88E1116_PGADR_REG 22
30#define MV88E1116_RGMII_TXTM_CTRL (1 << 4)
31#define MV88E1116_RGMII_RXTM_CTRL (1 << 5)
32
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000033#include "mv-common.h"
34
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000035/*
36 * Environment variables configurations
37 */
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000038/*
39 * max 4k env size is enough, but in case of nand
40 * it has to be rounded to sector size
41 */
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000042
43/*
44 * Default environment variables
45 */
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000046
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000047#define CONFIG_EXTRA_ENV_SETTINGS \
48 "console=console=ttyS0,115200\0" \
49 "mtdids=nand0=orion_nand\0" \
Tom Rini5ad8e112017-10-22 17:55:07 -040050 "mtdparts="CONFIG_MTDPARTS_DEFAULT \
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000051 "kernel=/boot/uImage\0" \
52 "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
53
54/*
55 * Ethernet Driver configuration
56 */
57#ifdef CONFIG_CMD_NET
58#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
59#define CONFIG_PHY_BASE_ADR 0
60#endif /* CONFIG_CMD_NET */
61
Tony Dinhd02d14d2021-07-29 20:02:42 -070062/* SATA driver configuration */
63#ifdef CONFIG_SATA
64#define CONFIG_SYS_SATA_MAX_DEVICE 1
65#define CONFIG_LBA48
66#endif /* CONFIG_SATA */
67
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000068#endif /* _CONFIG_GOFLEXHOME_H */