blob: 1a43587c40af52d4a6162a280ff3f1eba62eae9d [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +01002/*
3 * Copyright (C) 2014 Evgeni Dobrev <evgeni@studio-punkt.com>
4 *
5 * based on work from:
6 * (C) Copyright 2009
7 * Marvell Semiconductor <www.marvell.com>
8 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +01009 */
10
11#ifndef _CONFIG_NAS220_H
12#define _CONFIG_NAS220_H
13
14/*
Tom Rini92a1bab2017-01-25 20:42:36 -050015 * Machine type ID
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010016 */
Tom Rini92a1bab2017-01-25 20:42:36 -050017#define CONFIG_MACH_TYPE MACH_TYPE_RD88F6192_NAS
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010018
19/*
20 * High Level Configuration Options (easy to change)
21 */
22#define CONFIG_FEROCEON_88FR131 /* #define CPU Core subversion */
23#define CONFIG_KW88F6192 /* SOC Name */
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010024
25/* power-on led, regulator, sata0, sata1 */
26#define NAS220_GE_OE_VAL_LOW ((1 << 12)|(1 << 14)|(1 << 24)|(1 << 28))
27#define NAS220_GE_OE_VAL_HIGH (0)
28#define NAS220_GE_OE_LOW (~((1 << 12)|(1 << 14)|(1 << 24)|(1 << 28)))
29#define NAS220_GE_OE_HIGH (~(0))
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
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010039#include "mv-common.h"
40
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010041/*
42 * Environment variables configurations
43 */
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010044
45/*
46 * Default environment variables
47 */
48#define CONFIG_BOOTCOMMAND ""
49
50#define CONFIG_EXTRA_ENV_SETTINGS \
51 "bootargs=console=ttyS0,115200\0" \
52 "mtdparts=mtdparts=orion_nand:0xa0000@0x0(uboot),"\
53 "0x010000@0xa0000(env),"\
54 "0x500000@0xc0000(uimage),"\
55 "0x1a40000@0x5c0000(rootfs)\0" \
56 "mtdids=nand0=orion_nand\0"\
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010057 "autostart=no\0"\
58 "autoload=no\0"
59
60/*
61 * Ethernet Driver configuration
62 */
63#ifdef CONFIG_CMD_NET
64#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
65#define CONFIG_PHY_BASE_ADR 8
66#endif /* CONFIG_CMD_NET */
67
68/*
69 * USB/EHCI
70 */
71#ifdef CONFIG_CMD_USB
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010072#define CONFIG_USB_EHCI_KIRKWOOD /* on Kirkwood platform */
73#define CONFIG_EHCI_IS_TDI
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010074#endif /* CONFIG_CMD_USB */
75
76/*
77 * File system
78 */
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010079#define CONFIG_JFFS2_NAND
80#define CONFIG_JFFS2_LZO
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010081
82/*
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010083 * EFI partition
84 */
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010085
Evgeni Dobrev9637c4b2014-12-08 17:49:42 +010086#define CONFIG_KIRKWOOD_GPIO
87
88#endif /* _CONFIG_NAS220_H */
89