Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 2 | /* |
| 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 Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef _CONFIG_NAS220_H |
| 12 | #define _CONFIG_NAS220_H |
| 13 | |
| 14 | /* |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 15 | * High Level Configuration Options (easy to change) |
| 16 | */ |
| 17 | #define CONFIG_FEROCEON_88FR131 /* #define CPU Core subversion */ |
| 18 | #define CONFIG_KW88F6192 /* SOC Name */ |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 19 | |
| 20 | /* power-on led, regulator, sata0, sata1 */ |
| 21 | #define NAS220_GE_OE_VAL_LOW ((1 << 12)|(1 << 14)|(1 << 24)|(1 << 28)) |
| 22 | #define NAS220_GE_OE_VAL_HIGH (0) |
| 23 | #define NAS220_GE_OE_LOW (~((1 << 12)|(1 << 14)|(1 << 24)|(1 << 28))) |
| 24 | #define NAS220_GE_OE_HIGH (~(0)) |
| 25 | |
| 26 | /* PHY related */ |
| 27 | #define MV88E1116_LED_FCTRL_REG 10 |
| 28 | #define MV88E1116_CPRSP_CR3_REG 21 |
| 29 | #define MV88E1116_MAC_CTRL_REG 21 |
| 30 | #define MV88E1116_PGADR_REG 22 |
| 31 | #define MV88E1116_RGMII_TXTM_CTRL (1 << 4) |
| 32 | #define MV88E1116_RGMII_RXTM_CTRL (1 << 5) |
| 33 | |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 34 | #include "mv-common.h" |
| 35 | |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 36 | /* |
| 37 | * Environment variables configurations |
| 38 | */ |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 39 | |
| 40 | /* |
| 41 | * Default environment variables |
| 42 | */ |
| 43 | #define CONFIG_BOOTCOMMAND "" |
| 44 | |
| 45 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 46 | "bootargs=console=ttyS0,115200\0" \ |
| 47 | "mtdparts=mtdparts=orion_nand:0xa0000@0x0(uboot),"\ |
| 48 | "0x010000@0xa0000(env),"\ |
| 49 | "0x500000@0xc0000(uimage),"\ |
| 50 | "0x1a40000@0x5c0000(rootfs)\0" \ |
| 51 | "mtdids=nand0=orion_nand\0"\ |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 52 | "autostart=no\0"\ |
| 53 | "autoload=no\0" |
| 54 | |
| 55 | /* |
| 56 | * Ethernet Driver configuration |
| 57 | */ |
| 58 | #ifdef CONFIG_CMD_NET |
| 59 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
| 60 | #define CONFIG_PHY_BASE_ADR 8 |
| 61 | #endif /* CONFIG_CMD_NET */ |
| 62 | |
| 63 | /* |
| 64 | * USB/EHCI |
| 65 | */ |
| 66 | #ifdef CONFIG_CMD_USB |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 67 | #define CONFIG_USB_EHCI_KIRKWOOD /* on Kirkwood platform */ |
| 68 | #define CONFIG_EHCI_IS_TDI |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 69 | #endif /* CONFIG_CMD_USB */ |
| 70 | |
| 71 | /* |
| 72 | * File system |
| 73 | */ |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 74 | #define CONFIG_JFFS2_NAND |
| 75 | #define CONFIG_JFFS2_LZO |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 76 | |
| 77 | /* |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 78 | * EFI partition |
| 79 | */ |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 80 | |
Evgeni Dobrev | e80958b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 81 | #define CONFIG_KIRKWOOD_GPIO |
| 82 | |
| 83 | #endif /* _CONFIG_NAS220_H */ |