]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/sc_sps_1.h
mxc_ipuv3: fix memory alignment of framebuffer
[karo-tx-uboot.git] / include / configs / sc_sps_1.h
1 /*
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  */
22 #ifndef __CONFIGS_SC_SPS_1_H__
23 #define __CONFIGS_SC_SPS_1_H__
24
25 /* System configuration */
26 #define CONFIG_MX28                             /* i.MX28 SoC */
27 #define MACH_TYPE_SC_SPS_1      4172
28 #define CONFIG_MACH_TYPE        MACH_TYPE_SC_SPS_1
29
30 /* U-Boot Commands */
31 #define CONFIG_SYS_NO_FLASH
32 #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
49 /* Memory configuration */
50 #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 */
53 #define CONFIG_SYS_SDRAM_BASE           PHYS_SDRAM_1
54
55 /* Environment */
56 #define CONFIG_ENV_SIZE                 (16 * 1024)
57 #define CONFIG_ENV_IS_IN_MMC
58
59 /* Environment is in MMC */
60 #if defined(CONFIG_CMD_MMC) && defined(CONFIG_ENV_IS_IN_MMC)
61 #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
67 /* FEC Ethernet on SoC */
68 #ifdef CONFIG_CMD_NET
69 #define CONFIG_FEC_MXC
70 #define CONFIG_PHYLIB
71 #define CONFIG_PHY_SMSC
72 #endif
73
74 /* USB */
75 #ifdef CONFIG_CMD_USB
76 #define CONFIG_EHCI_MXS_PORT0
77 #define CONFIG_USB_MAX_CONTROLLER_COUNT 1
78 #define CONFIG_USB_STORAGE
79 #endif
80
81 /* Booting Linux */
82 #define CONFIG_BOOTDELAY        3
83 #define CONFIG_BOOTFILE         "uImage"
84 #define CONFIG_BOOTARGS         "console=ttyAMA0,115200"
85 #define CONFIG_BOOTCOMMAND      "bootm"
86 #define CONFIG_LOADADDR         0x42000000
87 #define CONFIG_SYS_LOAD_ADDR    CONFIG_LOADADDR
88
89 /* Extra Environment */
90 #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
101 /* The rest of the configuration is shared */
102 #include <configs/mxs.h>
103
104 #endif /* __CONFIGS_SC_SPS_1_H__ */