blob: 66eed9e14f819601f7eb43f686daaf884087251a [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/*
Tony Dinha69a7862022-01-25 19:33:44 -08003 * Copyright (C) 2022 Tony Dinh <mibodhi@gmai.com>
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +00004 * Copyright (C) 2013 Suriyan Ramasami <suriyan.r@gmail.com>
5 *
6 * Based on dockstar.h originally written by
7 * Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu>
8 *
9 * Based on sheevaplug.h originally written by
10 * Prafulla Wadaskar <prafulla@marvell.com>
11 * (C) Copyright 2009
12 * Marvell Semiconductor <www.marvell.com>
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000013 */
14
15#ifndef _CONFIG_GOFLEXHOME_H
16#define _CONFIG_GOFLEXHOME_H
17
Tony Dinha69a7862022-01-25 19:33:44 -080018#include <linux/bitops.h>
19
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000020/*
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000021 * Default GPIO configuration and LED status
22 */
23#define GOFLEXHOME_OE_LOW (~(0))
24#define GOFLEXHOME_OE_HIGH (~(0))
Tony Dinha69a7862022-01-25 19:33:44 -080025#define GOFLEXHOME_OE_VAL_LOW BIT(29) /* USB_PWEN low */
26#define GOFLEXHOME_OE_VAL_HIGH BIT(17) /* LED pin high */
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000027
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000028#include "mv-common.h"
29
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000030/*
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000031 * Default environment variables
32 */
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000033
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000034#define CONFIG_EXTRA_ENV_SETTINGS \
35 "console=console=ttyS0,115200\0" \
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000036 "kernel=/boot/uImage\0" \
37 "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
38
39/*
40 * Ethernet Driver configuration
41 */
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000042#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
43#define CONFIG_PHY_BASE_ADR 0
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000044
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000045#endif /* _CONFIG_GOFLEXHOME_H */