blob: 805c05d77ec458a53cce76cc7b38567281be6997 [file] [log] [blame]
Ilya Yanok016b7022009-08-11 02:32:09 +04001/*
2 * Copyright (C) 2009 Ilya Yanok <yanok@emcraft.com>
3 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004 * SPDX-License-Identifier: GPL-2.0+
Ilya Yanok016b7022009-08-11 02:32:09 +04005 */
6
7#ifndef __CONFIG_H
8#define __CONFIG_H
9
Heiko Schocherc8f51122010-03-05 07:36:33 +010010/* include common defines/options for all imx27lite related boards */
11#include "imx27lite-common.h"
Ilya Yanok016b7022009-08-11 02:32:09 +040012/*
13 * SoC Configuration
14 */
Ilya Yanok016b7022009-08-11 02:32:09 +040015#define CONFIG_IMX27LITE
Heiko Schocherc8f51122010-03-05 07:36:33 +010016#define CONFIG_HOSTNAME imx27
17#define CONFIG_BOARDNAME "LogicPD imx27lite\n"
Ilya Yanok016b7022009-08-11 02:32:09 +040018
19/*
20 * Flash & Environment
21 */
Ilya Yanok016b7022009-08-11 02:32:09 +040022#define CONFIG_SYS_FLASH_SECT_SZ 0x2000 /* 8KB sect size Intel Flash */
Ilya Yanok016b7022009-08-11 02:32:09 +040023#define CONFIG_ENV_OFFSET (PHYS_FLASH_SIZE - 0x20000)
Ilya Yanok016b7022009-08-11 02:32:09 +040024#define PHYS_FLASH_SIZE 0x200000
Ilya Yanok016b7022009-08-11 02:32:09 +040025#define CONFIG_ENV_SECT_SIZE 0x10000 /* Env sector Size */
Ilya Yanok016b7022009-08-11 02:32:09 +040026
27/*
Ilya Yanok016b7022009-08-11 02:32:09 +040028 * SD/MMC
29 */
Ilya Yanok016b7022009-08-11 02:32:09 +040030#define CONFIG_MXC_MCI_REGS_BASE 0x10014000
Ilya Yanok016b7022009-08-11 02:32:09 +040031
32/*
33 * MTD partitions
34 */
Ilya Yanok016b7022009-08-11 02:32:09 +040035#define MTDIDS_DEFAULT "nor0=physmap-flash.0,nand0=mxc_nand.0"
36#define MTDPARTS_DEFAULT \
37 "mtdparts=" \
38 "physmap-flash.0:" \
39 "256k(U-Boot)," \
40 "1664k(user)," \
41 "64k(env1)," \
42 "64k(env2);" \
43 "mxc_nand.0:" \
44 "128k(IPL-SPL)," \
45 "4m(kernel)," \
46 "22m(rootfs)," \
47 "-(userfs)"
48
Ilya Yanok016b7022009-08-11 02:32:09 +040049#endif /* __CONFIG_H */