blob: ebc3d642f133cbe6900415a22a99d87f9711cac6 [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
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053014/*
15 * Version number information
16 */
17#define CONFIG_IDENT_STRING "\nMarvell-Sheevaplug"
18
19/*
20 * High Level Configuration Options (easy to change)
21 */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053022#define CONFIG_FEROCEON_88FR131 1 /* CPU Core subversion */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053023#define CONFIG_MACH_SHEEVAPLUG /* Machine type */
DrEagle9a5e0a72014-12-17 15:02:48 +010024
25/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053026 * Commands configuration
27 */
DrEagle3fe3b4f2014-07-25 21:07:30 +020028#define CONFIG_CMD_MMC
DrEagle815451e2014-12-17 15:02:44 +010029
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053030/*
Quentin Armitageea944002015-10-28 00:47:18 +000031 * Standard filesystems
32 */
33#define CONFIG_SYS_MVFS
34
35/*
Quentin Armitage38c0e862015-10-28 00:47:21 +000036 * mv-plug-common.h should be defined after CMD configs since it used them
Prafulla Wadaskar54e999a2010-09-30 22:53:43 +053037 * to enable certain macros
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053038 */
Quentin Armitage38c0e862015-10-28 00:47:21 +000039#include "mv-plug-common.h"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053040
41/*
42 * Environment variables configurations
43 */
44#ifdef CONFIG_CMD_NAND
45#define CONFIG_ENV_IS_IN_NAND 1
46#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
47#else
48#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
49#endif
50/*
51 * max 4k env size is enough, but in case of nand
52 * it has to be rounded to sector size
53 */
54#define CONFIG_ENV_SIZE 0x20000 /* 128k */
DrEagle4dfb0e42014-09-07 18:01:20 +020055#define CONFIG_ENV_ADDR 0x80000
56#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053057
58/*
59 * Default environment variables
60 */
61#define CONFIG_BOOTCOMMAND "${x_bootcmd_kernel}; " \
62 "setenv bootargs ${x_bootargs} ${x_bootargs_root}; " \
63 "${x_bootcmd_usb}; bootm 0x6400000;"
64
DrEagle1e3d6402014-09-07 18:01:23 +020065#define CONFIG_MTDPARTS \
66 "mtdparts=orion_nand:512K(uboot)," \
67 "512K(env),1M(script),6M(kernel)," \
68 "12M(ramdisk),4M(spare),-(rootfs)"
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053069
70#define CONFIG_EXTRA_ENV_SETTINGS "x_bootargs=console" \
71 "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS \
72 "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
73 "x_bootcmd_usb=usb start\0" \
74 "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
75
DrEagle65ae9522014-09-07 18:01:22 +020076#define MTDIDS_DEFAULT "nand0=orion_nand"
77
78#define MTDPARTS_DEFAULT \
79 "mtdparts="CONFIG_MTDPARTS
80
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053081/*
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053082 * Ethernet Driver configuration
83 */
84#ifdef CONFIG_CMD_NET
Albert Aribaudd44265a2010-07-12 22:24:28 +020085#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053086#define CONFIG_PHY_BASE_ADR 0
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +053087#endif /* CONFIG_CMD_NET */
88
89/*
DrEagle3fe3b4f2014-07-25 21:07:30 +020090 * SDIO/MMC Card Configuration
91 */
92#ifdef CONFIG_CMD_MMC
93#define CONFIG_MMC
94#define CONFIG_GENERIC_MMC
95#define CONFIG_MVEBU_MMC
96#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE
97#endif /* CONFIG_CMD_MMC */
98
99/*
DrEagle0f88a5a2014-09-07 18:01:21 +0200100 * SATA driver configuration
101 */
102#ifdef CONFIG_CMD_IDE
103#define __io
104#define CONFIG_IDE_PREINIT
105#define CONFIG_DOS_PARTITION
106#define CONFIG_MVSATA_IDE_USE_PORT0
107#define CONFIG_MVSATA_IDE_USE_PORT1
108#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
109#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
110#endif /* CONFIG_CMD_IDE */
111
Prafulla Wadaskar55dd4ba2009-07-16 20:58:00 +0530112#endif /* _CONFIG_SHEEVAPLUG_H */