blob: 43027a506a5fab9f039f8217b3b86a1d4cd9c8a3 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Suriyan Ramasami0ad6c342013-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 Ramasami0ad6c342013-04-11 07:17:25 +000012 */
13
14#ifndef _CONFIG_GOFLEXHOME_H
15#define _CONFIG_GOFLEXHOME_H
16
17/*
Suriyan Ramasami0ad6c342013-04-11 07:17:25 +000018 * High Level Configuration Options (easy to change)
19 */
20#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Suriyan Ramasami0ad6c342013-04-11 07:17:25 +000021#define CONFIG_KW88F6281 1 /* SOC Name */
Suriyan Ramasami0ad6c342013-04-11 07:17:25 +000022
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
Suriyan Ramasami0ad6c342013-04-11 07:17:25 +000039#include "mv-common.h"
40
Suriyan Ramasami0ad6c342013-04-11 07:17:25 +000041/*
42 * Environment variables configurations
43 */
Suriyan Ramasami0ad6c342013-04-11 07:17:25 +000044/*
45 * max 4k env size is enough, but in case of nand
46 * it has to be rounded to sector size
47 */
Suriyan Ramasami0ad6c342013-04-11 07:17:25 +000048
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
Suriyan Ramasami0ad6c342013-04-11 07:17:25 +000059#define CONFIG_EXTRA_ENV_SETTINGS \
60 "console=console=ttyS0,115200\0" \
61 "mtdids=nand0=orion_nand\0" \
Tom Rini43ede0b2017-10-22 17:55:07 -040062 "mtdparts="CONFIG_MTDPARTS_DEFAULT \
Suriyan Ramasami0ad6c342013-04-11 07:17:25 +000063 "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
Tony Dinh296c32b2021-07-29 20:02:42 -070074/* SATA driver configuration */
75#ifdef CONFIG_SATA
76#define CONFIG_SYS_SATA_MAX_DEVICE 1
77#define CONFIG_LBA48
78#endif /* CONFIG_SATA */
79
Suriyan Ramasami0ad6c342013-04-11 07:17:25 +000080#endif /* _CONFIG_GOFLEXHOME_H */