blob: b7b46b4a50017b777addb8f68e54c1ee83cb6660 [file] [log] [blame]
Marek Vasut4e3349b2012-08-07 00:01:52 +00001/*
2 * SchulerControl GmbH, SC_SPS_1 module config
3 *
4 * Copyright (C) 2012 Marek Vasut <marex@denx.de>
5 * on behalf of DENX Software Engineering GmbH
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
Marek Vasut5434caf2013-06-16 15:39:02 +020022#ifndef __CONFIGS_SC_SPS_1_H__
23#define __CONFIGS_SC_SPS_1_H__
Marek Vasut4e3349b2012-08-07 00:01:52 +000024
Marek Vasut5434caf2013-06-16 15:39:02 +020025/* System configuration */
Marek Vasut4e3349b2012-08-07 00:01:52 +000026#define CONFIG_MX28 /* i.MX28 SoC */
Marek Vasut4e3349b2012-08-07 00:01:52 +000027#define MACH_TYPE_SC_SPS_1 4172
Marek Vasut4e3349b2012-08-07 00:01:52 +000028#define CONFIG_MACH_TYPE MACH_TYPE_SC_SPS_1
29
Marek Vasut5434caf2013-06-16 15:39:02 +020030/* U-Boot Commands */
Marek Vasut4e3349b2012-08-07 00:01:52 +000031#define CONFIG_SYS_NO_FLASH
Marek Vasut4e3349b2012-08-07 00:01:52 +000032#include <config_cmd_default.h>
33#define CONFIG_DISPLAY_CPUINFO
34#define CONFIG_DOS_PARTITION
35
36#define CONFIG_CMD_CACHE
37#define CONFIG_CMD_DHCP
38#define CONFIG_CMD_EXT2
39#define CONFIG_CMD_FAT
40#define CONFIG_CMD_GPIO
41#define CONFIG_CMD_MII
42#define CONFIG_CMD_MMC
43#define CONFIG_CMD_NET
44#define CONFIG_CMD_NFS
45#define CONFIG_CMD_PING
46#define CONFIG_CMD_SETEXPR
47#define CONFIG_CMD_USB
48
Marek Vasut5434caf2013-06-16 15:39:02 +020049/* Memory configuration */
Marek Vasut4e3349b2012-08-07 00:01:52 +000050#define CONFIG_NR_DRAM_BANKS 1 /* 1 bank of DRAM */
51#define PHYS_SDRAM_1 0x40000000 /* Base address */
52#define PHYS_SDRAM_1_SIZE 0x40000000 /* Max 1 GB RAM */
Marek Vasut4e3349b2012-08-07 00:01:52 +000053#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
54
Marek Vasut5434caf2013-06-16 15:39:02 +020055/* Environment */
Marek Vasut4e3349b2012-08-07 00:01:52 +000056#define CONFIG_ENV_SIZE (16 * 1024)
Marek Vasut5434caf2013-06-16 15:39:02 +020057#define CONFIG_ENV_IS_IN_MMC
58
59/* Environment is in MMC */
60#if defined(CONFIG_CMD_MMC) && defined(CONFIG_ENV_IS_IN_MMC)
Marek Vasut4e3349b2012-08-07 00:01:52 +000061#define CONFIG_ENV_OFFSET (256 * 1024)
62#define CONFIG_SYS_MMC_ENV_DEV 0
63#else
64#define CONFIG_ENV_IS_NOWHERE
65#endif
66
Marek Vasut5434caf2013-06-16 15:39:02 +020067/* FEC Ethernet on SoC */
Marek Vasut4e3349b2012-08-07 00:01:52 +000068#ifdef CONFIG_CMD_NET
Marek Vasut4e3349b2012-08-07 00:01:52 +000069#define CONFIG_FEC_MXC
Marek Vasut4e3349b2012-08-07 00:01:52 +000070#define CONFIG_PHYLIB
71#define CONFIG_PHY_SMSC
72#endif
73
Marek Vasut5434caf2013-06-16 15:39:02 +020074/* USB */
Marek Vasut4e3349b2012-08-07 00:01:52 +000075#ifdef CONFIG_CMD_USB
Marek Vasutafa87212013-02-23 02:43:02 +000076#define CONFIG_EHCI_MXS_PORT0
77#define CONFIG_USB_MAX_CONTROLLER_COUNT 1
Marek Vasut4e3349b2012-08-07 00:01:52 +000078#define CONFIG_USB_STORAGE
79#endif
80
Marek Vasut5434caf2013-06-16 15:39:02 +020081/* Booting Linux */
Marek Vasut4e3349b2012-08-07 00:01:52 +000082#define CONFIG_BOOTDELAY 3
83#define CONFIG_BOOTFILE "uImage"
84#define CONFIG_BOOTARGS "console=ttyAMA0,115200"
Marek Vasut5434caf2013-06-16 15:39:02 +020085#define CONFIG_BOOTCOMMAND "bootm"
Marek Vasut4e3349b2012-08-07 00:01:52 +000086#define CONFIG_LOADADDR 0x42000000
87#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
88
Marek Vasut5434caf2013-06-16 15:39:02 +020089/* Extra Environment */
Marek Vasut4e3349b2012-08-07 00:01:52 +000090#define CONFIG_EXTRA_ENV_SETTINGS \
91 "update_sd_firmware_filename=u-boot.sd\0" \
92 "update_sd_firmware=" /* Update the SD firmware partition */ \
93 "if mmc rescan ; then " \
94 "if tftp ${update_sd_firmware_filename} ; then " \
95 "setexpr fw_sz ${filesize} / 0x200 ; " /* SD block size */ \
96 "setexpr fw_sz ${fw_sz} + 1 ; " \
97 "mmc write ${loadaddr} 0x800 ${fw_sz} ; " \
98 "fi ; " \
99 "fi\0"
100
Marek Vasut5434caf2013-06-16 15:39:02 +0200101/* The rest of the configuration is shared */
102#include <configs/mxs.h>
103
104#endif /* __CONFIGS_SC_SPS_1_H__ */