blob: 2e89d72285d2dcf19124b3e111fe859f9cce4d5b [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 * High Level Configuration Options (easy to change)
19 */
20#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000021#define CONFIG_KW88F6281 1 /* SOC Name */
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000022#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
23
24/*
25 * Default GPIO configuration and LED status
26 */
27#define GOFLEXHOME_OE_LOW (~(0))
28#define GOFLEXHOME_OE_HIGH (~(0))
29#define GOFLEXHOME_OE_VAL_LOW (1 << 29) /* USB_PWEN low */
30#define GOFLEXHOME_OE_VAL_HIGH (1 << 17) /* LED pin high */
31
32/* PHY related */
33#define MV88E1116_LED_FCTRL_REG 10
34#define MV88E1116_CPRSP_CR3_REG 21
35#define MV88E1116_MAC_CTRL_REG 21
36#define MV88E1116_PGADR_REG 22
37#define MV88E1116_RGMII_TXTM_CTRL (1 << 4)
38#define MV88E1116_RGMII_RXTM_CTRL (1 << 5)
39
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000040#include "mv-common.h"
41
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000042/*
43 * Environment variables configurations
44 */
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000045/*
46 * max 4k env size is enough, but in case of nand
47 * it has to be rounded to sector size
48 */
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000049
50/*
51 * Default environment variables
52 */
53#define CONFIG_BOOTCOMMAND \
54 "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \
55 "ubi part root; " \
56 "ubifsmount ubi:root; " \
57 "ubifsload 0x800000 ${kernel}; " \
58 "bootm 0x800000"
59
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000060#define CONFIG_EXTRA_ENV_SETTINGS \
61 "console=console=ttyS0,115200\0" \
62 "mtdids=nand0=orion_nand\0" \
Tom Rini5ad8e112017-10-22 17:55:07 -040063 "mtdparts="CONFIG_MTDPARTS_DEFAULT \
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000064 "kernel=/boot/uImage\0" \
65 "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0"
66
67/*
68 * Ethernet Driver configuration
69 */
70#ifdef CONFIG_CMD_NET
71#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
72#define CONFIG_PHY_BASE_ADR 0
73#endif /* CONFIG_CMD_NET */
74
Tony Dinhd02d14d2021-07-29 20:02:42 -070075/* SATA driver configuration */
76#ifdef CONFIG_SATA
77#define CONFIG_SYS_SATA_MAX_DEVICE 1
78#define CONFIG_LBA48
79#endif /* CONFIG_SATA */
80
Suriyan Ramasamif0ec8af2013-04-11 07:17:25 +000081#endif /* _CONFIG_GOFLEXHOME_H */