Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Evgeni Dobrev | 9637c4b | 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 | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #ifndef _CONFIG_NAS220_H |
| 12 | #define _CONFIG_NAS220_H |
| 13 | |
| 14 | /* |
Tom Rini | 92a1bab | 2017-01-25 20:42:36 -0500 | [diff] [blame] | 15 | * Machine type ID |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 16 | */ |
Tom Rini | 92a1bab | 2017-01-25 20:42:36 -0500 | [diff] [blame] | 17 | #define CONFIG_MACH_TYPE MACH_TYPE_RD88F6192_NAS |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 18 | |
| 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 Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 24 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
| 25 | |
| 26 | /* power-on led, regulator, sata0, sata1 */ |
| 27 | #define NAS220_GE_OE_VAL_LOW ((1 << 12)|(1 << 14)|(1 << 24)|(1 << 28)) |
| 28 | #define NAS220_GE_OE_VAL_HIGH (0) |
| 29 | #define NAS220_GE_OE_LOW (~((1 << 12)|(1 << 14)|(1 << 24)|(1 << 28))) |
| 30 | #define NAS220_GE_OE_HIGH (~(0)) |
| 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 | |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 40 | #include "mv-common.h" |
| 41 | |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 42 | /* |
| 43 | * Environment variables configurations |
| 44 | */ |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 45 | |
| 46 | /* |
| 47 | * Default environment variables |
| 48 | */ |
| 49 | #define CONFIG_BOOTCOMMAND "" |
| 50 | |
| 51 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 52 | "bootargs=console=ttyS0,115200\0" \ |
| 53 | "mtdparts=mtdparts=orion_nand:0xa0000@0x0(uboot),"\ |
| 54 | "0x010000@0xa0000(env),"\ |
| 55 | "0x500000@0xc0000(uimage),"\ |
| 56 | "0x1a40000@0x5c0000(rootfs)\0" \ |
| 57 | "mtdids=nand0=orion_nand\0"\ |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 58 | "autostart=no\0"\ |
| 59 | "autoload=no\0" |
| 60 | |
| 61 | /* |
| 62 | * Ethernet Driver configuration |
| 63 | */ |
| 64 | #ifdef CONFIG_CMD_NET |
| 65 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
| 66 | #define CONFIG_PHY_BASE_ADR 8 |
| 67 | #endif /* CONFIG_CMD_NET */ |
| 68 | |
| 69 | /* |
| 70 | * USB/EHCI |
| 71 | */ |
| 72 | #ifdef CONFIG_CMD_USB |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 73 | #define CONFIG_USB_EHCI_KIRKWOOD /* on Kirkwood platform */ |
| 74 | #define CONFIG_EHCI_IS_TDI |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 75 | #endif /* CONFIG_CMD_USB */ |
| 76 | |
| 77 | /* |
| 78 | * File system |
| 79 | */ |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 80 | #define CONFIG_JFFS2_NAND |
| 81 | #define CONFIG_JFFS2_LZO |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 82 | |
| 83 | /* |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 84 | * EFI partition |
| 85 | */ |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 86 | |
Evgeni Dobrev | 9637c4b | 2014-12-08 17:49:42 +0100 | [diff] [blame] | 87 | #define CONFIG_KIRKWOOD_GPIO |
| 88 | |
| 89 | #endif /* _CONFIG_NAS220_H */ |
| 90 | |