Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 2 | /* |
| 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 Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 12 | */ |
| 13 | |
| 14 | #ifndef _CONFIG_GOFLEXHOME_H |
| 15 | #define _CONFIG_GOFLEXHOME_H |
| 16 | |
| 17 | /* |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 18 | * High Level Configuration Options (easy to change) |
| 19 | */ |
| 20 | #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 21 | #define CONFIG_KW88F6281 1 /* SOC Name */ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 22 | |
| 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 Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 39 | #include "mv-common.h" |
| 40 | |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 41 | /* |
| 42 | * Environment variables configurations |
| 43 | */ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 44 | /* |
| 45 | * max 4k env size is enough, but in case of nand |
| 46 | * it has to be rounded to sector size |
| 47 | */ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 48 | |
| 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 Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 59 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 60 | "console=console=ttyS0,115200\0" \ |
| 61 | "mtdids=nand0=orion_nand\0" \ |
Tom Rini | 5ad8e11 | 2017-10-22 17:55:07 -0400 | [diff] [blame] | 62 | "mtdparts="CONFIG_MTDPARTS_DEFAULT \ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 63 | "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 Dinh | d02d14d | 2021-07-29 20:02:42 -0700 | [diff] [blame] | 74 | /* 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 Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 80 | #endif /* _CONFIG_GOFLEXHOME_H */ |