With this change Synopsys DesignWare SDP board is switched to driver model for both serial port (serial_dw) and Ethernet (Designware GMAC). This simplifies include/configs/axs101.h and allows for reuse of Linux's Device Tree description. For simplicity Linux's .dts files are not blindly copied but only very few extracts of them are really used (those that are supported in U-Boot at the moment). Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Reviewed-by: Simon Glass <sjg@chromium.org> Cc: Masahiro Yamada <yamada.masahiro@socionext.com>master
parent
db1f17f894
commit
fb2dea60e8
@ -0,0 +1,45 @@ |
||||
/* |
||||
* Copyright (C) 2015 Synopsys, Inc. All rights reserved. |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
/dts-v1/; |
||||
|
||||
#include "skeleton.dtsi" |
||||
|
||||
/ { |
||||
#address-cells = <1>; |
||||
#size-cells = <1>; |
||||
|
||||
aliases { |
||||
console = &uart0; |
||||
}; |
||||
|
||||
clocks { |
||||
apbclk: apbclk { |
||||
compatible = "fixed-clock"; |
||||
clock-frequency = <50000000>; |
||||
#clock-cells = <0>; |
||||
}; |
||||
}; |
||||
|
||||
uart0: serial0@e0022000 { |
||||
compatible = "snps,dw-apb-uart"; |
||||
reg = <0xe0022000 0x1000>; |
||||
reg-shift = <2>; |
||||
reg-io-width = <4>; |
||||
}; |
||||
|
||||
ethernet@e0018000 { |
||||
#interrupt-cells = <1>; |
||||
compatible = "altr,socfpga-stmmac"; |
||||
reg = < 0xe0018000 0x2000 >; |
||||
interrupts = < 25 >; |
||||
interrupt-names = "macirq"; |
||||
phy-mode = "gmii"; |
||||
snps,pbl = < 32 >; |
||||
clocks = <&apbclk>; |
||||
clock-names = "stmmaceth"; |
||||
max-speed = <100>; |
||||
}; |
||||
}; |
@ -1,12 +1,21 @@ |
||||
CONFIG_ARC=y |
||||
CONFIG_SYS_DCACHE_OFF=y |
||||
CONFIG_ARC_CACHE_LINE_SHIFT=5 |
||||
CONFIG_DM_SERIAL=y |
||||
CONFIG_SYS_CLK_FREQ=750000000 |
||||
CONFIG_SYS_TEXT_BASE=0x81000000 |
||||
CONFIG_DEFAULT_DEVICE_TREE="axs10x" |
||||
CONFIG_SYS_PROMPT="AXS# " |
||||
# CONFIG_CMD_IMLS is not set |
||||
# CONFIG_CMD_FLASH is not set |
||||
# CONFIG_CMD_SETEXPR is not set |
||||
CONFIG_NETDEVICES=y |
||||
CONFIG_CMD_DHCP=y |
||||
CONFIG_CMD_PING=y |
||||
CONFIG_OF_CONTROL=y |
||||
CONFIG_OF_EMBED=y |
||||
CONFIG_NET_RANDOM_ETHADDR=y |
||||
CONFIG_DM=y |
||||
CONFIG_CLK=y |
||||
CONFIG_DM_ETH=y |
||||
CONFIG_ETH_DESIGNWARE=y |
||||
CONFIG_USE_PRIVATE_LIBGCC=y |
||||
|
@ -1,11 +1,20 @@ |
||||
CONFIG_ARC=y |
||||
CONFIG_ISA_ARCV2=y |
||||
CONFIG_DM_SERIAL=y |
||||
CONFIG_SYS_CLK_FREQ=50000000 |
||||
CONFIG_SYS_TEXT_BASE=0x81000000 |
||||
CONFIG_DEFAULT_DEVICE_TREE="axs10x" |
||||
CONFIG_SYS_PROMPT="AXS# " |
||||
# CONFIG_CMD_IMLS is not set |
||||
# CONFIG_CMD_FLASH is not set |
||||
# CONFIG_CMD_SETEXPR is not set |
||||
CONFIG_NETDEVICES=y |
||||
CONFIG_CMD_DHCP=y |
||||
CONFIG_CMD_PING=y |
||||
CONFIG_OF_CONTROL=y |
||||
CONFIG_OF_EMBED=y |
||||
CONFIG_NET_RANDOM_ETHADDR=y |
||||
CONFIG_DM=y |
||||
CONFIG_CLK=y |
||||
CONFIG_DM_ETH=y |
||||
CONFIG_ETH_DESIGNWARE=y |
||||
CONFIG_USE_PRIVATE_LIBGCC=y |
||||
|
Loading…
Reference in new issue