Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
David Purdy | 415d07e | 2012-03-27 16:01:09 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2012 |
| 4 | * David Purdy <david.c.purdy@gmail.com> |
| 5 | * |
| 6 | * Based on Kirkwood support: |
| 7 | * (C) Copyright 2009 |
| 8 | * Marvell Semiconductor <www.marvell.com> |
| 9 | * Written-by: Prafulla Wadaskar <prafulla@marvell.com> |
David Purdy | 415d07e | 2012-03-27 16:01:09 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef _CONFIG_POGO_E02_H |
| 13 | #define _CONFIG_POGO_E02_H |
| 14 | |
| 15 | /* |
| 16 | * Machine type definition and ID |
| 17 | */ |
David Purdy | 415d07e | 2012-03-27 16:01:09 +0000 | [diff] [blame] | 18 | #define CONFIG_MACH_TYPE MACH_TYPE_POGO_E02 |
David Purdy | 415d07e | 2012-03-27 16:01:09 +0000 | [diff] [blame] | 19 | |
| 20 | /* |
| 21 | * High Level Configuration Options (easy to change) |
| 22 | */ |
| 23 | #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */ |
David Purdy | 415d07e | 2012-03-27 16:01:09 +0000 | [diff] [blame] | 24 | #define CONFIG_KW88F6281 /* SOC Name */ |
| 25 | #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |
| 26 | |
| 27 | /* |
| 28 | * Commands configuration |
| 29 | */ |
David Purdy | 415d07e | 2012-03-27 16:01:09 +0000 | [diff] [blame] | 30 | |
| 31 | /* |
| 32 | * mv-common.h should be defined after CMD configs since it used them |
| 33 | * to enable certain macros |
| 34 | */ |
| 35 | #include "mv-common.h" |
| 36 | |
David Purdy | 415d07e | 2012-03-27 16:01:09 +0000 | [diff] [blame] | 37 | /* |
| 38 | * Environment variables configurations |
| 39 | */ |
David Purdy | 415d07e | 2012-03-27 16:01:09 +0000 | [diff] [blame] | 40 | |
| 41 | /* |
| 42 | * Default environment variables |
| 43 | */ |
| 44 | #define CONFIG_BOOTCOMMAND \ |
| 45 | "setenv bootargs $(bootargs_console); " \ |
| 46 | "run bootcmd_usb; " \ |
| 47 | "bootm 0x00800000 0x01100000" |
| 48 | |
| 49 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 50 | "mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage)," \ |
| 51 | "32M(rootfs),-(data)\0"\ |
| 52 | "mtdids=nand0=orion_nand\0"\ |
| 53 | "bootargs_console=console=ttyS0,115200\0" \ |
| 54 | "bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; " \ |
| 55 | "ext2load usb 0:1 0x01100000 /uInitrd\0" |
| 56 | |
| 57 | /* |
| 58 | * Ethernet Driver configuration |
| 59 | */ |
| 60 | #ifdef CONFIG_CMD_NET |
| 61 | #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */ |
| 62 | #define CONFIG_PHY_BASE_ADR 0 |
| 63 | #endif /* CONFIG_CMD_NET */ |
| 64 | |
| 65 | /* |
| 66 | * File system |
| 67 | */ |
David Purdy | 415d07e | 2012-03-27 16:01:09 +0000 | [diff] [blame] | 68 | |
| 69 | #endif /* _CONFIG_POGO_E02_H */ |