Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 1 | /* |
| 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 Schocher | bbe3109 | 2010-03-05 07:36:33 +0100 | [diff] [blame] | 23 | /* include common defines/options for all imx27lite related boards */ |
| 24 | #include "imx27lite-common.h" |
Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 25 | /* |
| 26 | * SoC Configuration |
| 27 | */ |
Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 28 | #define CONFIG_IMX27LITE |
Heiko Schocher | bbe3109 | 2010-03-05 07:36:33 +0100 | [diff] [blame] | 29 | #define CONFIG_HOSTNAME imx27 |
| 30 | #define CONFIG_BOARDNAME "LogicPD imx27lite\n" |
Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 31 | |
| 32 | /* |
| 33 | * Flash & Environment |
| 34 | */ |
Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 35 | #define CONFIG_SYS_FLASH_SECT_SZ 0x2000 /* 8KB sect size Intel Flash */ |
Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 36 | #define CONFIG_ENV_OFFSET (PHYS_FLASH_SIZE - 0x20000) |
Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 37 | #define PHYS_FLASH_SIZE 0x200000 |
Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 38 | #define CONFIG_ENV_SECT_SIZE 0x10000 /* Env sector Size */ |
Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 39 | |
| 40 | /* |
| 41 | * SD/MMC |
| 42 | */ |
Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 43 | #define CONFIG_MXC_MCI_REGS_BASE 0x10014000 |
Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 44 | |
| 45 | /* |
| 46 | * MTD partitions |
| 47 | */ |
Ilya Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 48 | #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 Yanok | 10bc241 | 2009-08-11 02:32:09 +0400 | [diff] [blame] | 62 | #endif /* __CONFIG_H */ |