]>
git.ipfire.org Git - people/ms/u-boot.git/blob - include/configs/nas220.h
2 * Copyright (C) 2014 Evgeni Dobrev <evgeni@studio-punkt.com>
6 * Marvell Semiconductor <www.marvell.com>
7 * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
9 * SPDX-License-Identifier: GPL-2.0+
12 #ifndef _CONFIG_NAS220_H
13 #define _CONFIG_NAS220_H
16 * Machine type definition and ID
18 #define MACH_TYPE_NAS220 MACH_TYPE_RD88F6192_NAS
19 #define CONFIG_MACH_TYPE MACH_TYPE_NAS220
20 #define CONFIG_IDENT_STRING "\nNAS 220"
23 * High Level Configuration Options (easy to change)
25 #define CONFIG_FEROCEON_88FR131 /* #define CPU Core subversion */
26 #define CONFIG_KW88F6192 /* SOC Name */
27 #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
29 /* power-on led, regulator, sata0, sata1 */
30 #define NAS220_GE_OE_VAL_LOW ((1 << 12)|(1 << 14)|(1 << 24)|(1 << 28))
31 #define NAS220_GE_OE_VAL_HIGH (0)
32 #define NAS220_GE_OE_LOW (~((1 << 12)|(1 << 14)|(1 << 24)|(1 << 28)))
33 #define NAS220_GE_OE_HIGH (~(0))
36 #define MV88E1116_LED_FCTRL_REG 10
37 #define MV88E1116_CPRSP_CR3_REG 21
38 #define MV88E1116_MAC_CTRL_REG 21
39 #define MV88E1116_PGADR_REG 22
40 #define MV88E1116_RGMII_TXTM_CTRL (1 << 4)
41 #define MV88E1116_RGMII_RXTM_CTRL (1 << 5)
44 * Commands configuration
46 #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
47 #define CONFIG_CMD_DHCP
48 #define CONFIG_CMD_MII
49 #define CONFIG_CMD_NAND
50 #define CONFIG_CMD_PING
51 #define CONFIG_CMD_USB
52 #define CONFIG_CMD_DATE
53 #define CONFIG_CMD_IDE
54 #define CONFIG_SYS_LONGHELP
55 #define CONFIG_AUTO_COMPLETE
56 #define CONFIG_CMDLINE_EDITING
59 * mv-common.h should be defined after CMD configs since it used them
60 * to enable certain macros
62 #include "mv-common.h"
65 * Environment variables configurations
67 #ifdef CONFIG_CMD_NAND
68 #define CONFIG_ENV_IS_IN_NAND
69 #define CONFIG_ENV_SECT_SIZE 0x10000
71 #define CONFIG_ENV_IS_NOWHERE
74 #define CONFIG_ENV_SIZE 0x10000
75 #define CONFIG_ENV_OFFSET 0xa0000
78 * Default environment variables
80 #define CONFIG_BOOTCOMMAND ""
82 #define CONFIG_EXTRA_ENV_SETTINGS \
83 "bootargs=console=ttyS0,115200\0" \
84 "mtdparts=mtdparts=orion_nand:0xa0000@0x0(uboot),"\
85 "0x010000@0xa0000(env),"\
86 "0x500000@0xc0000(uimage),"\
87 "0x1a40000@0x5c0000(rootfs)\0" \
88 "mtdids=nand0=orion_nand\0"\
94 * Ethernet Driver configuration
97 #define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
98 #define CONFIG_PHY_BASE_ADR 8
99 #endif /* CONFIG_CMD_NET */
104 #ifdef CONFIG_CMD_USB
105 #define CONFIG_USB_EHCI /* Enable EHCI USB support */
106 #define CONFIG_USB_EHCI_KIRKWOOD /* on Kirkwood platform */
107 #define CONFIG_EHCI_IS_TDI
108 #define CONFIG_USB_STORAGE
109 #define CONFIG_DOS_PARTITION
110 #define CONFIG_SUPPORT_VFAT
111 #endif /* CONFIG_CMD_USB */
116 #define CONFIG_CMD_EXT2
117 #define CONFIG_CMD_EXT4
118 #define CONFIG_CMD_FAT
119 #define CONFIG_CMD_JFFS2
120 #define CONFIG_JFFS2_NAND
121 #define CONFIG_JFFS2_LZO
122 #define CONFIG_CMD_UBI
123 #define CONFIG_CMD_UBIFS
124 #define CONFIG_RBTREE
125 #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
126 #define CONFIG_MTD_PARTITIONS
127 #define CONFIG_CMD_MTDPARTS
133 #ifdef CONFIG_MVSATA_IDE
134 #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
135 #define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
141 #define CONFIG_EFI_PARTITION
146 #ifdef CONFIG_CMD_DATE
147 #define CONFIG_RTC_MV
148 #endif /* CONFIG_CMD_DATE */
150 #define CONFIG_KIRKWOOD_GPIO
152 #endif /* _CONFIG_NAS220_H */