]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - include/configs/rd6281a.h
Merge branch 'master' of git://git.denx.de/u-boot
[karo-tx-uboot.git] / include / configs / rd6281a.h
1 /*
2  * (C) Copyright 2009
3  * Marvell Semiconductor <www.marvell.com>
4  * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
5  *
6  * SPDX-License-Identifier:     GPL-2.0+
7  */
8
9 #ifndef _CONFIG_RD6281A_H
10 #define _CONFIG_RD6281A_H
11
12 /*
13  * Version number information
14  */
15 #define CONFIG_IDENT_STRING     "\nMarvell-RD6281A"
16
17 /*
18  * High Level Configuration Options (easy to change)
19  */
20 #define CONFIG_FEROCEON_88FR131 1       /* CPU Core subversion */
21 #define CONFIG_KIRKWOOD         1       /* SOC Family Name */
22 #define CONFIG_KW88F6281        1       /* SOC Name */
23 #define CONFIG_MACH_RD6281A             /* Machine type */
24 #define CONFIG_SKIP_LOWLEVEL_INIT       /* disable board lowlevel_init */
25
26 /*
27  * Commands configuration
28  */
29 #define CONFIG_SYS_NO_FLASH             /* Declare no flash (NOR/SPI) */
30 #include <config_cmd_default.h>
31 #define CONFIG_CMD_DHCP
32 #define CONFIG_CMD_ENV
33 #define CONFIG_CMD_FAT
34 #define CONFIG_CMD_NAND
35 #define CONFIG_CMD_PING
36 #define CONFIG_CMD_USB
37 #define CONFIG_CMD_IDE
38
39 /*
40  * mv-common.h should be defined after CMD configs since it used them
41  * to enable certain macros
42  */
43 #include "mv-common.h"
44
45 /*
46  * Environment variables configurations
47  */
48 #ifdef CONFIG_CMD_NAND
49 #define CONFIG_ENV_IS_IN_NAND           1
50 #define CONFIG_ENV_SECT_SIZE            0x20000 /* 128K */
51 #else
52 #define CONFIG_ENV_IS_NOWHERE           1       /* if env in SDRAM */
53 #endif
54 /*
55  * max 4k env size is enough, but in case of nand
56  * it has to be rounded to sector size
57  */
58 #define CONFIG_ENV_SIZE                 0x20000 /* 128k */
59 #define CONFIG_ENV_ADDR                 0x40000
60 #define CONFIG_ENV_OFFSET               0x40000 /* env starts here */
61
62 /*
63  * Default environment variables
64  */
65 #define CONFIG_BOOTCOMMAND              "${x_bootcmd_kernel}; " \
66         "setenv bootargs ${x_bootargs} ${x_bootargs_root}; "    \
67         "${x_bootcmd_usb}; bootm 0x6400000;"
68
69 #define CONFIG_MTDPARTS         "orion_nand:512k(uboot),"       \
70         "3m@1m(kernel),1m@4m(psm),13m@5m(rootfs) rw\0"
71
72 #define CONFIG_EXTRA_ENV_SETTINGS       "x_bootargs=console"    \
73         "=ttyS0,115200 mtdparts="CONFIG_MTDPARTS        \
74         "x_bootcmd_kernel=nand read 0x6400000 0x100000 0x300000\0" \
75         "x_bootcmd_usb=usb start\0" \
76         "x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2\0"
77
78 /*
79  * Ethernet Driver configuration
80  */
81 #ifdef CONFIG_CMD_NET
82 #define CONFIG_MVGBE_PORTS      {1, 1}  /* enable both ports */
83 #define CONFIG_MV88E61XX_MULTICHIP_ADRMODE
84 #define CONFIG_DIS_AUTO_NEG_SPEED_GMII /*Disable Auto speed negociation */
85 #define CONFIG_PHY_SPEED        _1000BASET      /*Force PHYspeed to 1GBPs */
86 #define CONFIG_PHY_BASE_ADR     0x0A
87 #define CONFIG_MV88E61XX_SWITCH /* Enable MV88E61XX switch driver */
88 #endif /* CONFIG_CMD_NET */
89
90 /*
91  * SATA Driver configuration
92  */
93 #ifdef CONFIG_MVSATA_IDE
94 #define CONFIG_SYS_ATA_IDE0_OFFSET      MV_SATA_PORT0_OFFSET
95 #define CONFIG_SYS_ATA_IDE1_OFFSET      MV_SATA_PORT1_OFFSET
96 #endif /*CONFIG_MVSATA_IDE*/
97
98 #endif /* _CONFIG_RD6281A_H */