1 arm: kirkwood: add ZyXEL NSA310 device
3 This patch add ZyXEL NSA310 1-Bay Media Server
5 The ZyXEL NSA310 device is a Kirkwood based NAS:
7 - SoC: Marvell 88F6702 1200Mhz
8 - SDRAM memory: 256MB DDR2 400Mhz
9 - Gigabit ethernet: PHY Realtek
13 - 5 Status LED (green/red)
16 - 2 SATA II port (1 internal and 1 external eSata)
17 - 2 USB 2.0 ports (1 front and 1 back)
20 Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
22 NOTE: this patch is ready for upstream, LEDE-specific parts are in
25 diff --git a/arch/arm/mach-kirkwood/Kconfig b/arch/arm/mach-kirkwood/Kconfig
26 index 9205b1e..819bd3b 100644
27 --- a/arch/arm/mach-kirkwood/Kconfig
28 +++ b/arch/arm/mach-kirkwood/Kconfig
29 @@ -49,6 +49,9 @@ config TARGET_GOFLEXHOME
31 bool "BlackArmor NAS220"
34 + bool "Zyxel NSA310 Board"
39 @@ -72,6 +75,7 @@ source "board/raidsonic/ib62x0/Kconfig"
40 source "board/Seagate/dockstar/Kconfig"
41 source "board/Seagate/goflexhome/Kconfig"
42 source "board/Seagate/nas220/Kconfig"
43 +source "board/zyxel/nsa310/Kconfig"
44 source "board/zyxel/nsa310s/Kconfig"
47 diff --git a/board/zyxel/nsa310/Kconfig b/board/zyxel/nsa310/Kconfig
49 index 0000000..145ade6
51 +++ b/board/zyxel/nsa310/Kconfig
61 +config SYS_CONFIG_NAME
65 diff --git a/board/zyxel/nsa310/MAINTAINERS b/board/zyxel/nsa310/MAINTAINERS
67 index 0000000..d09f1ab
69 +++ b/board/zyxel/nsa310/MAINTAINERS
72 +M: Alberto Bursi <alberto.bursi@outlook.it>
74 +F: board/zyxel/nsa310/
75 +F: include/configs/nsa310.h
76 +F: configs/nsa310_defconfig
77 diff --git a/board/zyxel/nsa310/Makefile b/board/zyxel/nsa310/Makefile
79 index 0000000..dfe93cc
81 +++ b/board/zyxel/nsa310/Makefile
84 +# (C) Copyright 2015 bodhi <mibodhi@gmail.com>
88 +# Marvell Semiconductor <www.marvell.com>
89 +# Written-by: Prafulla Wadaskar <prafulla@marvell.com>
91 +# SPDX-License-Identifier: GPL-2.0+
95 diff --git a/board/zyxel/nsa310/kwbimage.cfg b/board/zyxel/nsa310/kwbimage.cfg
97 index 0000000..f60e1d2
99 +++ b/board/zyxel/nsa310/kwbimage.cfg
102 +# Copyright (C) 2013 Rafal Kazmierowski
104 +# Based on guruplug.c originally written by
105 +# Siddarth Gore <gores@marvell.com>
106 +# (C) Copyright 2009
107 +# Marvell Semiconductor <www.marvell.com>
109 +# See file CREDITS for list of people who contributed to this
112 +# This program is free software; you can redistribute it and/or
113 +# modify it under the terms of the GNU General Public License as
114 +# published by the Free Software Foundation; either version 2 of
115 +# the License, or (at your option) any later version.
117 +# This program is distributed in the hope that it will be useful,
118 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
119 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
120 +# GNU General Public License for more details.
122 +# You should have received a copy of the GNU General Public License
123 +# along with this program; if not, write to the Free Software
124 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
127 +# Refer docs/README.kwimage for more details about how-to configure
128 +# and create kirkwood boot image
131 +# Boot Media configurations
134 +NAND_ECC_MODE default
135 +NAND_PAGE_SIZE 0x0800
137 +# SOC registers configuration using bootrom header extension
138 +# Maximum KWBIMAGE_MAX_CONFIG configurations allowed
140 +# Configure RGMII-0 interface pad voltage to 1.8V
141 +DATA 0xFFD100e0 0x1b1b1b9b
143 +#Dram initalization for SINGLE x16 CL=5 @ 400MHz
144 +DATA 0xFFD01400 0x43010c30 # DDR Configuration register
145 +# bit13-0: 0xc30 (3120 DDR2 clks refresh rate)
147 +# bit24: 1= enable exit self refresh mode on DDR access
152 +DATA 0xFFD01404 0x37543000 # DDR Controller Control Low
153 +# bit 4: 0=addr/cmd in smame cycle
154 +# bit 5: 0=clk is driven during self refresh, we don't care for APX
155 +# bit 6: 0=use recommended falling edge of clk for addr/cmd
156 +# bit14: 0=input buffer always powered up
157 +# bit18: 1=cpu lock transaction enabled
158 +# bit23-20: 5=recommended value for CL=5 and STARTBURST_DEL disabled bit31=0
159 +# bit27-24: 7= CL+2, STARTBURST sample stages, for freqs 400MHz, unbuffered DIMM
160 +# bit30-28: 3 required
161 +# bit31: 0=no additional STARTBURST delay
163 +DATA 0xFFD01408 0x22125451 # DDR Timing (Low) (active cycles value +1)
174 +DATA 0xFFD0140C 0x00000a33 # DDR Timing (High)
179 +# bit31-13: zero required
181 +DATA 0xFFD01410 0x0000000c # DDR Address Control
182 +# bit1-0: 01, Cs0width=x8
183 +# bit3-2: 10, Cs0size=1Gb
184 +# bit5-4: 01, Cs1width=x8
185 +# bit7-6: 10, Cs1size=1Gb
186 +# bit9-8: 00, Cs2width=nonexistent
187 +# bit11-10: 00, Cs2size =nonexistent
188 +# bit13-12: 00, Cs3width=nonexistent
189 +# bit15-14: 00, Cs3size =nonexistent
190 +# bit16: 0, Cs0AddrSel
191 +# bit17: 0, Cs1AddrSel
192 +# bit18: 0, Cs2AddrSel
193 +# bit19: 0, Cs3AddrSel
194 +# bit31-20: 0 required
196 +DATA 0xFFD01414 0x00000000 # DDR Open Pages Control
197 +# bit0: 0, OpenPage enabled
198 +# bit31-1: 0 required
200 +DATA 0xFFD01418 0x00000000 # DDR Operation
201 +# bit3-0: 0x0, DDR cmd
202 +# bit31-4: 0 required
204 +DATA 0xFFD0141C 0x00000652 # DDR Mode
205 +# bit2-0: 2, BurstLen=2 required
206 +# bit3: 0, BurstType=0 required
208 +# bit7: 0, TestMode=0 normal
209 +# bit8: 0, DLL reset=0 normal
210 +# bit11-9: 6, auto-precharge write recovery ????????????
211 +# bit12: 0, PD must be zero
212 +# bit31-13: 0 required
214 +DATA 0xFFD01420 0x00000004 # DDR Extended Mode
215 +# bit0: 0, DDR DLL enabled
216 +# bit1: 0, DDR drive strenght normal
217 +# bit2: 0, DDR ODT control lsd (disabled)
218 +# bit5-3: 000, required
219 +# bit6: 1, DDR ODT control msb, (disabled)
220 +# bit9-7: 000, required
221 +# bit10: 0, differential DQS enabled
222 +# bit11: 0, required
223 +# bit12: 0, DDR output buffer enabled
224 +# bit31-13: 0 required
226 +DATA 0xFFD01424 0x0000F17F # DDR Controller Control High
227 +# bit2-0: 111, required
228 +# bit3 : 1 , MBUS Burst Chop disabled
229 +# bit6-4: 111, required
231 +# bit8 : 1 , add writepath sample stage, must be 1 for DDR freq >= 300MHz
232 +# bit9 : 0 , no half clock cycle addition to dataout
233 +# bit10 : 0 , 1/4 clock cycle skew enabled for addr/ctl signals
234 +# bit11 : 0 , 1/4 clock cycle skew disabled for write mesh
235 +# bit15-12: 1111 required
236 +# bit31-16: 0 required
238 +DATA 0xFFD01428 0x00085520 # DDR2 ODT Read Timing (default values)
239 +DATA 0xFFD0147C 0x00008552 # DDR2 ODT Write Timing (default values)
242 +DATA 0xFFD01504 0x0FFFFFF1 # CS[0]n Size
243 +#DATA 0xFFD01500 0x00000000 # CS[0]n Base address to 0x0
244 +# bit0: 1, Window enabled
245 +# bit1: 0, Write Protect disabled
246 +# bit3-2: 00, CS0 hit selected
247 +# bit23-4: ones, required
248 +# bit31-24: 0x0F, Size (i.e. 256MB)
250 +DATA 0xFFD01508 0x10000000 # CS[1]n Base address to 256Mb
251 +DATA 0xFFD0150C 0x00000000 # CS[2]n Size, window disabled KAZ z 400db
252 +DATA 0xFFD01514 0x00000000 # CS[3]n Size, window disabled
254 +DATA 0xFFD0151C 0x00000000 # DDR ODT Control (Low)
255 +DATA 0xFFD01494 0x00120012 # DDR ODT Control (High) KAZ z nowy STATIC_SDRAM_ODT_CTRL_LOW
256 +# bit1-0: 00, ODT0 controlled by ODT Control (low) register above
257 +# bit3-2: 01, ODT1 active NEVER!
258 +# bit31-4: zero, required
260 +DATA 0xFFD01498 0x00000000 # CPU ODT Control KAZ STATIC_SDRAM_ODT_CTRL_HI
261 +DATA 0xFFD0149C 0x0000E403 # DDR Initialization Control KAZ STATIC_SDRAM_DUNIT_ODT_CTRL
262 +DATA 0xFFD01480 0x00000001 # DDR Initialization Control
263 +#bit0=1, enable DDR init upon this register write
265 +# End of Header extension
267 diff --git a/board/zyxel/nsa310/nsa310.c b/board/zyxel/nsa310/nsa310.c
269 index 0000000..eee3f1a
271 +++ b/board/zyxel/nsa310/nsa310.c
274 + * Copyright (C) 2013 Rafal Kazmierowski
276 + * Based on NSA320.c Peter Schildmann <linux@schildmann.info>
277 + * originally written by
278 + * Marvell Semiconductor <www.marvell.com>
279 + * Written-by: Prafulla Wadaskar <prafulla@marvell.com>
281 + * See file CREDITS for list of people who contributed to this
284 + * This program is free software; you can redistribute it and/or
285 + * modify it under the terms of the GNU General Public License as
286 + * published by the Free Software Foundation; either version 2 of
287 + * the License, or (at your option) any later version.
289 + * This program is distributed in the hope that it will be useful,
290 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
291 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
292 + * GNU General Public License for more details.
294 + * You should have received a copy of the GNU General Public License
295 + * along with this program; if not, write to the Free Software
296 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
297 + * MA 02110-1301 USA
302 +#include <asm/arch/cpu.h>
303 +#include <asm/arch/soc.h>
304 +#include <asm/arch/mpp.h>
308 +DECLARE_GLOBAL_DATA_PTR;
310 +int board_early_init_f(void)
313 + * default gpio configuration
314 + * There are maximum 64 gpios controlled through 2 sets of registers
315 + * the below configuration configures mainly initial LED status
317 + mvebu_config_gpio(NSA310_VAL_LOW, NSA310_VAL_HIGH,
318 + NSA310_OE_LOW, NSA310_OE_HIGH);
320 + /* Multi-Purpose Pins Functionality configuration */
321 + /* (all LEDs & power off active high) */
322 + static const u32 kwmpp_config[] = {
331 + MPP8_TW_SDA, /* PCF8563 RTC chip */
332 + MPP9_TW_SCK, /* connected to TWSI */
335 + MPP12_GPO, /* SATA2 LED (green) */
336 + MPP13_GPIO, /* SATA2 LED (red) */
337 + MPP14_GPIO, /* MCU DATA pin (in) */
338 + MPP15_GPIO, /* USB LED (green) */
339 + MPP16_GPIO, /* MCU CLK pin (out) */
340 + MPP17_GPIO, /* MCU ACT pin (out) */
344 + MPP21_GPIO, /* USB LED (red)-Power*/
351 + MPP28_GPIO, /* SYS LED (green) */
352 + MPP29_GPIO, /* SYS LED (red) */
359 + MPP36_GPIO, /* Reset button */
360 + MPP37_GPIO, /* Copy button */
361 + MPP38_GPIO, /* VID B0 */
362 + MPP39_GPIO, /* COPY LED (green) */
363 + MPP40_GPIO, /* COPY LED (red) */
364 + MPP41_GPIO, /* SATA1 LED (green) */
365 + MPP42_GPIO, /* SATA1 LED (red) */
366 + MPP43_GPIO, /* HTP pin */
367 + MPP44_GPIO, /* Buzzer */
368 + MPP45_GPIO, /* VID B1 */
369 + MPP46_GPIO, /* Power button */
370 + MPP47_GPIO, /* Power resume data */
371 + MPP48_GPIO, /* Power off */
372 + MPP49_GPIO, /* Power resume clock */
375 + kirkwood_mpp_conf(kwmpp_config,NULL);
379 +int board_init(void)
381 + /* address of boot parameters */
382 + gd->bd->bi_boot_params = mvebu_sdram_bar(0) + 0x100;
387 +#ifdef CONFIG_RESET_PHY_R
388 +/* Configure and enable MV88E1318 PHY */
389 +void reset_phy(void)
393 + char *name = "egiga0";
395 + if (miiphy_set_current_dev(name))
398 + /* command to read PHY dev address */
399 + if (miiphy_read(name, 0xEE, 0xEE, (u16 *) &devadr)) {
400 + printf("Err..%s could not read PHY dev address\n",
405 + /* Set RGMII delay */
406 + miiphy_write(name, devadr, MV88E1318_PGADR_REG, 2);
407 + miiphy_read(name, devadr, MV88E1318_MAC_CTRL_REG, ®);
408 + reg |= (MV88E1318_RGMII_RXTM_CTRL | MV88E1318_RGMII_TXTM_CTRL);
409 + miiphy_write(name, devadr, MV88E1318_MAC_CTRL_REG, reg);
410 + miiphy_write(name, devadr, MV88E1318_PGADR_REG, 0);
412 + /* reset the phy */
413 + miiphy_reset(name, devadr);
415 + printf("MV88E1318 PHY initialized on %s\n", name);
417 +#endif /* CONFIG_RESET_PHY_R */
419 +#ifdef CONFIG_SHOW_BOOT_PROGRESS
420 +void show_boot_progress(int val)
422 + struct kwgpio_registers *gpio0 = (struct kwgpio_registers *)MVEBU_GPIO0_BASE;
423 + u32 dout0 = readl(&gpio0->dout);
424 + u32 blen0 = readl(&gpio0->blink_en);
426 + struct kwgpio_registers *gpio1 = (struct kwgpio_registers *)MVEBU_GPIO1_BASE;
427 + u32 dout1 = readl(&gpio1->dout);
428 + u32 blen1 = readl(&gpio1->blink_en);
431 + case BOOTSTAGE_ID_DECOMP_IMAGE:
432 + writel(blen0 & ~(SYS_GREEN_LED | SYS_RED_LED), &gpio0->blink_en);
433 + writel((dout0 & ~SYS_GREEN_LED) | SYS_RED_LED, &gpio0->dout);
435 + case BOOTSTAGE_ID_RUN_OS:
436 + writel(dout0 & ~SYS_RED_LED, &gpio0->dout);
437 + writel(blen0 | SYS_GREEN_LED, &gpio0->blink_en);
439 + case BOOTSTAGE_ID_NET_START:
440 + writel(dout1 & ~COPY_RED_LED, &gpio1->dout);
441 + writel((blen1 & ~COPY_RED_LED) | COPY_GREEN_LED, &gpio1->blink_en);
443 + case BOOTSTAGE_ID_NET_LOADED:
444 + writel(blen1 & ~(COPY_RED_LED | COPY_GREEN_LED), &gpio1->blink_en);
445 + writel((dout1 & ~COPY_RED_LED) | COPY_GREEN_LED, &gpio1->dout);
447 + case -BOOTSTAGE_ID_NET_NETLOOP_OK:
448 + case -BOOTSTAGE_ID_NET_LOADED:
449 + writel(dout1 & ~COPY_GREEN_LED, &gpio1->dout);
450 + writel((blen1 & ~COPY_GREEN_LED) | COPY_RED_LED, &gpio1->blink_en);
455 + printf("Error occured, error code = %d\n", -val);
456 + writel(dout0 & ~SYS_GREEN_LED, &gpio0->dout);
457 + writel(blen0 | SYS_RED_LED, &gpio0->blink_en);
463 diff --git a/board/zyxel/nsa310/nsa310.h b/board/zyxel/nsa310/nsa310.h
465 index 0000000..6634a4f
467 +++ b/board/zyxel/nsa310/nsa310.h
470 + * Copyright (C) 2013 Rafal Kazmierowski
472 + * Based on Peter Schildmann <linux@schildmann.info>
473 + * and guruplug.h originally written by
474 + * Siddarth Gore <gores@marvell.com>
475 + * (C) Copyright 2009
476 + * Marvell Semiconductor <www.marvell.com>
478 + * See file CREDITS for list of people who contributed to this
481 + * This program is free software; you can redistribute it and/or
482 + * modify it under the terms of the GNU General Public License as
483 + * published by the Free Software Foundation; either version 2 of
484 + * the License, or (at your option) any later version.
486 + * This program is distributed in the hope that it will be useful,
487 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
488 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
489 + * GNU General Public License for more details.
491 + * You should have received a copy of the GNU General Public License
492 + * along with this program; if not, write to the Free Software
493 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
494 + * MA 02110-1301 USA
501 +#define SYS_GREEN_LED (1 << 28)
502 +#define SYS_RED_LED (1 << 29)
503 +#define SATA1_GREEN_LED (1 << 41)
504 +#define SATA1_RED_LED (1 << 42)
505 +#define SATA2_GREEN_LED (1 << 12)
506 +#define SATA2_RED_LED (1 << 13)
507 +#define USB_GREEN_LED (1 << 15)
508 +#define USB_RED_LED (1 << 21)
509 +#define COPY_GREEN_LED (1 << 39)
510 +#define COPY_RED_LED (1 << 40)
512 +#define NSA310_OE_LOW (0)
513 +#define NSA310_VAL_LOW (SYS_GREEN_LED)
514 +#define NSA310_OE_HIGH ((COPY_GREEN_LED | COPY_RED_LED | \
515 + SATA1_GREEN_LED | SATA1_RED_LED))
516 +#define NSA310_VAL_HIGH (0)
519 +#define MV88E1318_MAC_CTRL_REG 21
520 +#define MV88E1318_PGADR_REG 22
521 +#define MV88E1318_RGMII_TXTM_CTRL (1 << 4)
522 +#define MV88E1318_RGMII_RXTM_CTRL (1 << 5)
524 +#endif /* __NSA310_H */
525 diff --git a/configs/nsa310_defconfig b/configs/nsa310_defconfig
527 index 0000000..d26ef35
529 +++ b/configs/nsa310_defconfig
533 +CONFIG_TARGET_NSA310=y
535 +CONFIG_SYS_PROMPT="NSA310> "
536 +# CONFIG_CMD_IMLS is not set
537 +# CONFIG_CMD_FLASH is not set
538 +CONFIG_SYS_NS16550=y
541 +CONFIG_CMD_SETEXPR=y
548 +CONFIG_USB_STORAGE=y
549 diff --git a/include/configs/nsa310.h b/include/configs/nsa310.h
551 index 0000000..86ef825
553 +++ b/include/configs/nsa310.h
555 +/* Copyright (C) 2015-2016 bodhi <mibodhi@gmail.com>
558 + * Copyright (C) 2012 Peter Schildmann <linux@schildmann.info>
560 + * Based on guruplug.h originally written by
561 + * Siddarth Gore <gores@marvell.com>
562 + * (C) Copyright 2009
563 + * Marvell Semiconductor <www.marvell.com>
565 + * See file CREDITS for list of people who contributed to this
568 + * This program is free software; you can redistribute it and/or
569 + * modify it under the terms of the GNU General Public License as
570 + * published by the Free Software Foundation; either version 2 of
571 + * the License, or (at your option) any later version.
573 + * This program is distributed in the hope that it will be useful,
574 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
575 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
576 + * GNU General Public License for more details.
578 + * You should have received a copy of the GNU General Public License
579 + * along with this program; if not, write to the Free Software
580 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
581 + * MA 02110-1301 USA
584 +#ifndef _CONFIG_NSA310_H
585 +#define _CONFIG_NSA310_H
588 + * Version number information
591 +#define CONFIG_IDENT_STRING "\nZyXEL NSA310 1-Bay Power Media Server \n"
594 + * High Level Configuration Options (easy to change)
596 +#define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */
597 +#define CONFIG_KW88F6281 /* SOC Name */
598 +#define CONFIG_MACH_NSA310 /* Machine type */
599 +#define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */
602 + * Misc Configuration Options
604 +#define CONFIG_SHOW_BOOT_PROGRESS 1 /* boot progess display (LED's) */
607 + * Commands configuration
609 +#define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */
610 +#define CONFIG_SYS_MVFS /* Picks up Filesystem from mv-common.h */
611 +#define CONFIG_CMD_DHCP
612 +#define CONFIG_CMD_ENV
613 +#define CONFIG_CMD_IDE
614 +#define CONFIG_CMD_MII
615 +#define CONFIG_CMD_NAND
616 +#define CONFIG_CMD_PING
617 +#define CONFIG_CMD_USB
618 +#define CONFIG_CMD_DATE
619 +#define CONFIG_SYS_LONGHELP
620 +#define CONFIG_PREBOOT
621 +#define CONFIG_SYS_HUSH_PARSER
622 +#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
625 + * mv-common.h should be defined after CMD configs since it used them
626 + * to enable certain macros
628 +#include "mv-common.h"
630 +/* Remove or override few declarations from mv-common.h */
631 +#undef CONFIG_SYS_PROMPT /* previously defined in mv-common.h */
632 +#define CONFIG_SYS_PROMPT "NSA310> " /* Command Prompt */
635 + * Environment variables configurations
637 +#ifdef CONFIG_CMD_NAND
638 +#define CONFIG_ENV_IS_IN_NAND 1
639 +#define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */
641 +#define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */
644 +/* max 4k env size is enough, but in case of nand
645 + * it has to be rounded to sector size
647 +#define CONFIG_ENV_SIZE 0x20000 /* 128k */
648 +#define CONFIG_ENV_ADDR 0xc0000
649 +#define CONFIG_ENV_OFFSET 0xc0000 /* env starts here */
652 + * Default environment variables
654 +#define CONFIG_BOOTCOMMAND \
656 + "ubi read 0x800000 kernel; " \
659 +#define CONFIG_MTDPARTS \
660 + "mtdparts=orion_nand:" \
661 + "0x0c0000(uboot)," \
662 + "0x80000(uboot_env)," \
665 +#define CONFIG_EXTRA_ENV_SETTINGS \
666 + "console=console=ttyS0,115200\0" \
667 + "mtdids=nand0=orion_nand\0" \
668 + "mtdparts="CONFIG_MTDPARTS \
672 + * Ethernet Driver configuration
674 +#ifdef CONFIG_CMD_NET
675 +#define CONFIG_NETCONSOLE
676 +#define CONFIG_NET_MULTI
677 +#define CONFIG_MVGBE_PORTS {1, 0} /* enable port 0 only */
678 +#define CONFIG_PHY_BASE_ADR 0x1
679 +#define CONFIG_PHY_GIGE
680 +#define CONFIG_RESET_PHY_R
681 +#endif /* CONFIG_CMD_NET */
684 + * SATA Driver configuration
686 +#ifdef CONFIG_MVSATA_IDE
687 +#define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET
688 +#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET
689 +#endif /* CONFIG_MVSATA_IDE */
694 +#define CONFIG_CMD_EXT2
695 +#define CONFIG_CMD_EXT4
696 +#define CONFIG_CMD_FAT
697 +#define CONFIG_CMD_JFFS2
698 +#define CONFIG_JFFS2_NAND
699 +#define CONFIG_JFFS2_LZO
700 +#define CONFIG_CMD_UBI
701 +#define CONFIG_CMD_UBIFS
702 +#define CONFIG_RBTREE
703 +#define CONFIG_MTD_DEVICE /* needed for mtdparts commands */
704 +#define CONFIG_MTD_PARTITIONS
705 +#define CONFIG_CMD_MTDPARTS
711 +#define CONFIG_EFI_PARTITION
716 +#ifdef CONFIG_CMD_DATE
717 +#define CONFIG_RTC_MV
718 +#define CONFIG_CMD_SNTP
719 +#define CONFIG_CMD_DNS
720 +#endif /* CONFIG_CMD_DATE */
722 +#endif /* _CONFIG_NSA310_H */