blob: b7de159c865acd3491e9971019214931993fc82a [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
Tom Rinic9edebe2022-12-04 10:03:50 -050034#define CFG_EXTRA_ENV_SETTINGS \
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000035 "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
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000039#endif /* _CONFIG_GOFLEXHOME_H */