Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2009 Ilya Yanok <yanok@emcraft.com> |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __CONFIG_H |
| 8 | #define __CONFIG_H |
| 9 | |
Heiko Schocher | c8f5112 | 2010-03-05 07:36:33 +0100 | [diff] [blame] | 10 | /* include common defines/options for all imx27lite related boards */ |
| 11 | #include "imx27lite-common.h" |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 12 | /* |
| 13 | * SoC Configuration |
| 14 | */ |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 15 | #define CONFIG_IMX27LITE |
Heiko Schocher | c8f5112 | 2010-03-05 07:36:33 +0100 | [diff] [blame] | 16 | #define CONFIG_HOSTNAME imx27 |
| 17 | #define CONFIG_BOARDNAME "LogicPD imx27lite\n" |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 18 | |
| 19 | /* |
| 20 | * Flash & Environment |
| 21 | */ |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 22 | #define CONFIG_SYS_FLASH_SECT_SZ 0x2000 /* 8KB sect size Intel Flash */ |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 23 | #define CONFIG_ENV_OFFSET (PHYS_FLASH_SIZE - 0x20000) |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 24 | #define PHYS_FLASH_SIZE 0x200000 |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 25 | #define CONFIG_ENV_SECT_SIZE 0x10000 /* Env sector Size */ |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 26 | |
| 27 | /* |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 28 | * SD/MMC |
| 29 | */ |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 30 | #define CONFIG_MXC_MCI_REGS_BASE 0x10014000 |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 31 | |
| 32 | /* |
| 33 | * MTD partitions |
| 34 | */ |
Ilya Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 35 | #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 Yanok | 016b702 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 49 | #endif /* __CONFIG_H */ |