Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Suriyan Ramasami <suriyan.r@gmail.com> |
| 3 | * |
| 4 | * Based on dockstar.h originally written by |
| 5 | * Copyright (C) 2010 Eric C. Cooper <ecc@cmu.edu> |
| 6 | * |
| 7 | * Based on sheevaplug.h originally written by |
| 8 | * Prafulla Wadaskar <prafulla@marvell.com> |
| 9 | * (C) Copyright 2009 |
| 10 | * Marvell Semiconductor <www.marvell.com> |
| 11 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 12 | * SPDX-License-Identifier: GPL-2.0+ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #ifndef _CONFIG_GOFLEXHOME_H |
| 16 | #define _CONFIG_GOFLEXHOME_H |
| 17 | |
| 18 | /* |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 19 | * High Level Configuration Options (easy to change) |
| 20 | */ |
| 21 | #define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 22 | #define CONFIG_KW88F6281 1 /* SOC Name */ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 23 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
| 24 | |
| 25 | /* |
| 26 | * Default GPIO configuration and LED status |
| 27 | */ |
| 28 | #define GOFLEXHOME_OE_LOW (~(0)) |
| 29 | #define GOFLEXHOME_OE_HIGH (~(0)) |
| 30 | #define GOFLEXHOME_OE_VAL_LOW (1 << 29) /* USB_PWEN low */ |
| 31 | #define GOFLEXHOME_OE_VAL_HIGH (1 << 17) /* LED pin high */ |
| 32 | |
| 33 | /* PHY related */ |
| 34 | #define MV88E1116_LED_FCTRL_REG 10 |
| 35 | #define MV88E1116_CPRSP_CR3_REG 21 |
| 36 | #define MV88E1116_MAC_CTRL_REG 21 |
| 37 | #define MV88E1116_PGADR_REG 22 |
| 38 | #define MV88E1116_RGMII_TXTM_CTRL (1 << 4) |
| 39 | #define MV88E1116_RGMII_RXTM_CTRL (1 << 5) |
| 40 | |
| 41 | /* |
| 42 | * Commands configuration |
| 43 | */ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 44 | |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 45 | #define CONFIG_SYS_MVFS /* Picks up Filesystem from mv-common.h */ |
| 46 | |
| 47 | /* |
| 48 | * mv-common.h should be defined after CMD configs since it used them |
| 49 | * to enable certain macros |
| 50 | */ |
| 51 | #include "mv-common.h" |
| 52 | |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 53 | /* |
| 54 | * Environment variables configurations |
| 55 | */ |
| 56 | #ifdef CONFIG_CMD_NAND |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 57 | #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 58 | #endif |
| 59 | /* |
| 60 | * max 4k env size is enough, but in case of nand |
| 61 | * it has to be rounded to sector size |
| 62 | */ |
| 63 | #define CONFIG_ENV_SIZE 0x20000 /* 128k */ |
| 64 | #define CONFIG_ENV_ADDR 0xC0000 |
| 65 | #define CONFIG_ENV_OFFSET 0xC0000 /* env starts here */ |
| 66 | |
| 67 | /* |
| 68 | * Default environment variables |
| 69 | */ |
| 70 | #define CONFIG_BOOTCOMMAND \ |
| 71 | "setenv bootargs ${console} ${mtdparts} ${bootargs_root}; " \ |
| 72 | "ubi part root; " \ |
| 73 | "ubifsmount ubi:root; " \ |
| 74 | "ubifsload 0x800000 ${kernel}; " \ |
| 75 | "bootm 0x800000" |
| 76 | |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 77 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 78 | "console=console=ttyS0,115200\0" \ |
| 79 | "mtdids=nand0=orion_nand\0" \ |
Tom Rini | 5ad8e11 | 2017-10-22 17:55:07 -0400 | [diff] [blame] | 80 | "mtdparts="CONFIG_MTDPARTS_DEFAULT \ |
Suriyan Ramasami | f0ec8af | 2013-04-11 07:17:25 +0000 | [diff] [blame] | 81 | "kernel=/boot/uImage\0" \ |
| 82 | "bootargs_root=ubi.mtd=root root=ubi0:root rootfstype=ubifs ro\0" |
| 83 | |
| 84 | /* |
| 85 | * Ethernet Driver configuration |
| 86 | */ |
| 87 | #ifdef CONFIG_CMD_NET |
| 88 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
| 89 | #define CONFIG_PHY_BASE_ADR 0 |
| 90 | #endif /* CONFIG_CMD_NET */ |
| 91 | |
| 92 | /* |
| 93 | * * SATA Driver configuration |
| 94 | * */ |
| 95 | #ifdef CONFIG_MVSATA_IDE |
| 96 | #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET |
| 97 | #endif /*CONFIG_MVSATA_IDE*/ |
| 98 | |
| 99 | /* |
| 100 | * * RTC driver configuration |
| 101 | * */ |
| 102 | #ifdef CONFIG_CMD_DATE |
| 103 | #define CONFIG_RTC_MV |
| 104 | #endif /* CONFIG_CMD_DATE */ |
| 105 | |
| 106 | #endif /* _CONFIG_GOFLEXHOME_H */ |