blob: 21c8bda9f30452b0c8f3de97673563a3001ce2b6 [file] [log] [blame]
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +05301/*
DrEagle0f88a5a2014-09-07 18:01:21 +02002 * (C) Copyright 2009-2014
3 * Gerald Kerma <dreagle@doukki.net>
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +05304 * Marvell Semiconductor <www.marvell.com>
5 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
6 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +05308 */
9
10#ifndef _CONFIG_SHEEVAPLUG_H
11#define _CONFIG_SHEEVAPLUG_H
12
Luka Perkovd4d8f1b2014-11-30 02:41:49 +010013#define CONFIG_SYS_GENERIC_BOARD
14
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053015/*
16 * Version number information
17 */
18#define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug"
19
20/*
21 * High Level Configuration Options (easy to change)
22 */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053023#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053024#define CONFIG_KW88F6281 1 /* SOC Name */
25#define CONFIG_MACH_SHEEVAPLUG /* Machine type */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053026#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
Frans Meulenbroeks5414fec2010-04-06 18:26:19 +053027
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053028/*
DrEagle0f88a5a2014-09-07 18:01:21 +020029 * Compression configuration
30 */
31#define CONFIG_BZIP2
32#define CONFIG_LZMA
33#define CONFIG_LZO
34
35/*
DrEagle8ca21cb2014-09-07 18:01:24 +020036 * Miscellaneous configurable options
37 */
38#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
39
40/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053041 * Commands configuration
42 */
43#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
44#include <config_cmd_default.h>
DrEagle0f88a5a2014-09-07 18:01:21 +020045#define CONFIG_CMD_BOOTZ
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053046#define CONFIG_CMD_DHCP
47#define CONFIG_CMD_ENV
DrEagle0f88a5a2014-09-07 18:01:21 +020048#define CONFIG_CMD_IDE
Frans Meulenbroeks5414fec2010-04-06 18:26:19 +053049#define CONFIG_CMD_MII
DrEagle3fe3b4f2014-07-25 21:07:30 +020050#define CONFIG_CMD_MMC
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053051#define CONFIG_CMD_NAND
52#define CONFIG_CMD_PING
53#define CONFIG_CMD_USB
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053054/*
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053055 * mv-common.h should be defined after CMD configs since it used them
56 * to enable certain macros
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053057 */
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053058#include "mv-common.h"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053059
60/*
61 * Environment variables configurations
62 */
63#ifdef CONFIG_CMD_NAND
64#define CONFIG_ENV_IS_IN_NAND 1
65#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
66#else
67#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
68#endif
69/*
70 * max 4k env size is enough, but in case of nand
71 * it has to be rounded to sector size
72 */
73#define CONFIG_ENV_SIZE 0x20000 /* 128k */
DrEagle4dfb0e42014-09-07 18:01:20 +020074#define CONFIG_ENV_ADDR 0x80000
75#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053076
77/*
78 * Default environment variables
79 */
80#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
81 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
82 "${x_bootcmd_usb}; bootm 0x6400000;"
83
DrEagle1e3d6402014-09-07 18:01:23 +020084#define CONFIG_MTDPARTS \
85 "mtdparts=orion_nand:512K(uboot)," \
86 "512K(env),1M(script),6M(kernel)," \
87 "12M(ramdisk),4M(spare),-(rootfs)"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053088
89#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
90 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
91 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
92 "x_bootcmd_usb=usb start\0" \
93 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
94
DrEagle65ae9522014-09-07 18:01:22 +020095#define MTDIDS_DEFAULT "nand0=orion_nand"
96
97#define MTDPARTS_DEFAULT \
98 "mtdparts="CONFIG_MTDPARTS
99
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +0530100/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +0530101 * Ethernet Driver configuration
102 */
103#ifdef CONFIG_CMD_NET
Albert Aribaudd44265a2010-07-12 22:24:28 +0200104#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +0530105#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +0530106#endif /* CONFIG_CMD_NET */
107
108/*
DrEagle3fe3b4f2014-07-25 21:07:30 +0200109 * SDIO/MMC Card Configuration
110 */
111#ifdef CONFIG_CMD_MMC
112#define CONFIG_MMC
113#define CONFIG_GENERIC_MMC
114#define CONFIG_MVEBU_MMC
115#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
116#endif /* CONFIG_CMD_MMC */
117
118/*
DrEagle0f88a5a2014-09-07 18:01:21 +0200119 * SATA driver configuration
120 */
121#ifdef CONFIG_CMD_IDE
122#define __io
123#define CONFIG_IDE_PREINIT
124#define CONFIG_DOS_PARTITION
125#define CONFIG_MVSATA_IDE_USE_PORT0
126#define CONFIG_MVSATA_IDE_USE_PORT1
127#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
128#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
129#endif /* CONFIG_CMD_IDE */
130
131/*
Frans Meulenbroeks5414fec2010-04-06 18:26:19 +0530132 * File system
133 */
134#define CONFIG_CMD_EXT2
DrEagle0f88a5a2014-09-07 18:01:21 +0200135#define CONFIG_CMD_EXT4
Frans Meulenbroeks5414fec2010-04-06 18:26:19 +0530136#define CONFIG_CMD_FAT
137#define CONFIG_CMD_JFFS2
138#define CONFIG_CMD_UBI
139#define CONFIG_CMD_UBIFS
140#define CONFIG_RBTREE
141#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
142#define CONFIG_MTD_PARTITIONS
143#define CONFIG_CMD_MTDPARTS
144#define CONFIG_LZO
145
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +0530146#endif /* _CONFIG_SHEEVAPLUG_H */