blob: 71be8238998b7a077bfa32d42e4f6922d8c230ef [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
13/*
14 * Version number information
15 */
16#define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug"
17
18/*
19 * High Level Configuration Options (easy to change)
20 */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053021#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053022#define CONFIG_KW88F6281 1 /* SOC Name */
23#define CONFIG_MACH_SHEEVAPLUG /* Machine type */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053024#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
Frans Meulenbroeks5414fec2010-04-06 18:26:19 +053025
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053026/*
DrEagle0f88a5a2014-09-07 18:01:21 +020027 * Compression configuration
28 */
29#define CONFIG_BZIP2
30#define CONFIG_LZMA
31#define CONFIG_LZO
32
33/*
DrEagle8ca21cb2014-09-07 18:01:24 +020034 * Miscellaneous configurable options
35 */
36#define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
37
38/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053039 * Commands configuration
40 */
41#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
42#include <config_cmd_default.h>
DrEagle0f88a5a2014-09-07 18:01:21 +020043#define CONFIG_CMD_BOOTZ
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053044#define CONFIG_CMD_DHCP
45#define CONFIG_CMD_ENV
DrEagle0f88a5a2014-09-07 18:01:21 +020046#define CONFIG_CMD_IDE
Frans Meulenbroeks5414fec2010-04-06 18:26:19 +053047#define CONFIG_CMD_MII
DrEagle3fe3b4f2014-07-25 21:07:30 +020048#define CONFIG_CMD_MMC
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053049#define CONFIG_CMD_NAND
50#define CONFIG_CMD_PING
51#define CONFIG_CMD_USB
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053052/*
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053053 * mv-common.h should be defined after CMD configs since it used them
54 * to enable certain macros
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053055 */
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053056#include "mv-common.h"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053057
58/*
59 * Environment variables configurations
60 */
61#ifdef CONFIG_CMD_NAND
62#define CONFIG_ENV_IS_IN_NAND 1
63#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
64#else
65#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
66#endif
67/*
68 * max 4k env size is enough, but in case of nand
69 * it has to be rounded to sector size
70 */
71#define CONFIG_ENV_SIZE 0x20000 /* 128k */
DrEagle4dfb0e42014-09-07 18:01:20 +020072#define CONFIG_ENV_ADDR 0x80000
73#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053074
75/*
76 * Default environment variables
77 */
78#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
79 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
80 "${x_bootcmd_usb}; bootm 0x6400000;"
81
DrEagle1e3d6402014-09-07 18:01:23 +020082#define CONFIG_MTDPARTS \
83 "mtdparts=orion_nand:512K(uboot)," \
84 "512K(env),1M(script),6M(kernel)," \
85 "12M(ramdisk),4M(spare),-(rootfs)"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053086
87#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
88 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
89 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
90 "x_bootcmd_usb=usb start\0" \
91 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
92
DrEagle65ae9522014-09-07 18:01:22 +020093#define MTDIDS_DEFAULT "nand0=orion_nand"
94
95#define MTDPARTS_DEFAULT \
96 "mtdparts="CONFIG_MTDPARTS
97
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053098/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053099 * Ethernet Driver configuration
100 */
101#ifdef CONFIG_CMD_NET
Albert Aribaudd44265a2010-07-12 22:24:28 +0200102#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +0530103#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +0530104#endif /* CONFIG_CMD_NET */
105
106/*
DrEagle3fe3b4f2014-07-25 21:07:30 +0200107 * SDIO/MMC Card Configuration
108 */
109#ifdef CONFIG_CMD_MMC
110#define CONFIG_MMC
111#define CONFIG_GENERIC_MMC
112#define CONFIG_MVEBU_MMC
113#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
114#endif /* CONFIG_CMD_MMC */
115
116/*
DrEagle0f88a5a2014-09-07 18:01:21 +0200117 * SATA driver configuration
118 */
119#ifdef CONFIG_CMD_IDE
120#define __io
121#define CONFIG_IDE_PREINIT
122#define CONFIG_DOS_PARTITION
123#define CONFIG_MVSATA_IDE_USE_PORT0
124#define CONFIG_MVSATA_IDE_USE_PORT1
125#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
126#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
127#endif /* CONFIG_CMD_IDE */
128
129/*
Frans Meulenbroeks5414fec2010-04-06 18:26:19 +0530130 * File system
131 */
132#define CONFIG_CMD_EXT2
DrEagle0f88a5a2014-09-07 18:01:21 +0200133#define CONFIG_CMD_EXT4
Frans Meulenbroeks5414fec2010-04-06 18:26:19 +0530134#define CONFIG_CMD_FAT
135#define CONFIG_CMD_JFFS2
136#define CONFIG_CMD_UBI
137#define CONFIG_CMD_UBIFS
138#define CONFIG_RBTREE
139#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
140#define CONFIG_MTD_PARTITIONS
141#define CONFIG_CMD_MTDPARTS
142#define CONFIG_LZO
143
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +0530144#endif /* _CONFIG_SHEEVAPLUG_H */