blob: 72f6e80ede967f6675823fb06b36fae7d26b3bc4 [file] [log] [blame]
Ilya Yanok016b7022009-08-11 02:32:09 +04001/*
2 * Copyright (C) 2009 Ilya Yanok <yanok@emcraft.com>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
17 * MA 02111-1307 USA
18 */
19
20#ifndef __CONFIG_H
21#define __CONFIG_H
22
Heiko Schocherc8f51122010-03-05 07:36:33 +010023/* include common defines/options for all imx27lite related boards */
24#include "imx27lite-common.h"
Ilya Yanok016b7022009-08-11 02:32:09 +040025/*
26 * SoC Configuration
27 */
Ilya Yanok016b7022009-08-11 02:32:09 +040028#define CONFIG_IMX27LITE
Heiko Schocherc8f51122010-03-05 07:36:33 +010029#define CONFIG_HOSTNAME imx27
30#define CONFIG_BOARDNAME "LogicPD imx27lite\n"
Ilya Yanok016b7022009-08-11 02:32:09 +040031
32/*
33 * Flash & Environment
34 */
Ilya Yanok016b7022009-08-11 02:32:09 +040035#define CONFIG_SYS_FLASH_SECT_SZ 0x2000 /* 8KB sect size Intel Flash */
Ilya Yanok016b7022009-08-11 02:32:09 +040036#define CONFIG_ENV_OFFSET (PHYS_FLASH_SIZE - 0x20000)
Ilya Yanok016b7022009-08-11 02:32:09 +040037#define PHYS_FLASH_SIZE 0x200000
Ilya Yanok016b7022009-08-11 02:32:09 +040038#define CONFIG_ENV_SECT_SIZE 0x10000 /* Env sector Size */
Ilya Yanok016b7022009-08-11 02:32:09 +040039
40/*
Ilya Yanok016b7022009-08-11 02:32:09 +040041 * SD/MMC
42 */
Ilya Yanok016b7022009-08-11 02:32:09 +040043#define CONFIG_MXC_MCI_REGS_BASE 0x10014000
Ilya Yanok016b7022009-08-11 02:32:09 +040044
45/*
46 * MTD partitions
47 */
Ilya Yanok016b7022009-08-11 02:32:09 +040048#define MTDIDS_DEFAULT "nor0=physmap-flash.0,nand0=mxc_nand.0"
49#define MTDPARTS_DEFAULT \
50 "mtdparts=" \
51 "physmap-flash.0:" \
52 "256k(U-Boot)," \
53 "1664k(user)," \
54 "64k(env1)," \
55 "64k(env2);" \
56 "mxc_nand.0:" \
57 "128k(IPL-SPL)," \
58 "4m(kernel)," \
59 "22m(rootfs)," \
60 "-(userfs)"
61
Ilya Yanok016b7022009-08-11 02:32:09 +040062#endif /* __CONFIG_H */