03 Jun, 2017
1 commit
-
Always search the PHY to determine the macb->phy_addr before using
the PHY to fix "No PHY present" error.Fix the wrong test of the GMAC's phy interface mode, it should be
PHY_INTERFACE_MODE_RGMII.Signed-off-by: Wenyou Yang
Reviewed-by: Simon Glass
Acked-by: Joe Hershberger
01 Jun, 2017
1 commit
-
These support the flat device tree. We want to use the dev_read_..()
prefix for functions that support both flat tree and live tree. So rename
the existing functions to avoid confusion.In the end we will have:
1. dev_read_addr...() - works on devices, supports flat/live tree
2. devfdt_get_addr...() - current functions, flat tree only
3. of_get_address() etc. - new functions, live tree onlyAll drivers will be written to use 1. That function will in turn call
either 2 or 3 depending on whether the flat or live tree is in use.Note this involves changing some dead code - the imx_lpi2c.c file.
Signed-off-by: Simon Glass
10 May, 2017
2 commits
-
Add the compatibles to align with the kernel.
Signed-off-by: Wenyou Yang
Acked-by: Joe Hershberger -
To avoid the failure of mdio_register(), add the remove callback
to unregister the mii_dev when removing the ethernet device.Signed-off-by: Wenyou Yang
Acked-by: Joe Hershberger
Fixed up unused variable warning, e.g. for gurnard:
Signed-off-by: Simon Glass
02 Mar, 2017
1 commit
-
For the boards such as smartweb on which the clock driver isn't
supported, the ethernet fail to be found when booting up with
the below log.
---88---Signed-off-by: Wenyou Yang
Tested-by: Heiko Schocher
Acked-by: Joe Hershberger
10 Feb, 2017
1 commit
08 Feb, 2017
3 commits
-
At present devices use a simple integer offset to record the device tree
node associated with the device. In preparation for supporting a live
device tree, which uses a node pointer instead, refactor existing code to
access this field through an inline function.Signed-off-by: Simon Glass
-
Remove the redundant #ifdef CONFIG_DM_ETH/#endif.
Signed-off-by: Wenyou Yang
Acked-by: Joe Hershberger -
Due to introducing the at91 clock driver, add the clock support.
Signed-off-by: Wenyou Yang
Acked-by: Joe Hershberger
02 Oct, 2016
1 commit
-
when using tftp on the smartweb board, it prints a lot of
CACHE: Misaligned operation at range [23b2e000, 23b2e100]
warnings ... fixed them.
Signed-off-by: Heiko Schocher
24 Sep, 2016
1 commit
-
Now, include/linux/errno.h is a wrapper of .
Replace all include directives for with
.is supposed to be included from when
arch-headers fall back into generic implementation. Generally, they
should not be directly included from .c files.Signed-off-by: Masahiro Yamada
[trini: Add drivers/usb/host/xhci-rockchip.c]
Signed-off-by: Tom Rini
16 Aug, 2016
2 commits
-
Run scripts/coccinelle/net/mdio_register.cocci on the U-Boot code base.
Signed-off-by: Joe Hershberger
Reviewed-by: Bin Meng -
Use the right phy_connect() prototype for CONFIGF_DM_ETH.
Support to get the phy interface from dt and set GMAC_UR.Signed-off-by: Wenyou Yang
Acked-by: Joe Hershberger
13 Jun, 2016
3 commits
-
Add driver-model support to this driver. The old code remains for now so
that we can convert boards one at a time.Signed-off-by: Simon Glass
Reviewed-by: Heiko Schocher
Tested-on: smartweb, corvus, taurus, axm
Tested-by: Heiko Schocher
Acked-by: Joe Hershberger
Reviewed-by: Andreas Bießmann -
The end address of the cache flush must be cache-line-aligned since
otherwise (at least on ARM926-EJS) the request is ignored. When the cache
is enabled this means that packets are not sent.Signed-off-by: Simon Glass
Reviewed-by: Heiko Schocher
Acked-by: Joe Hershberger
Reviewed-by: Andreas Bießmann -
Adjust this driver to avoid using struct netdev in functions that driver
model will call. Also refactor the receive function to be compatible with
driver model.Signed-off-by: Simon Glass
Reviewed-by: Heiko Schocher
Tested-on: smartweb, corvus, taurus, axm
Tested-by: Heiko Schocher
Reviewed-by: Joe Hershberger
Acked-by: Joe Hershberger
Reviewed-by: Andreas Bießmann
06 May, 2016
1 commit
-
Spelling corrections for (among other things):
* environment
* override
* variable
* ftd (should be "fdt", for flattened device tree)
* embedded
* FTDI
* emulation
* controller
27 Jan, 2016
1 commit
-
During the initialization of PHY the gigabit bit capable is set if the
controller is a GEM. However, for sama5d2 and sama5d4, the GEM is
configured to support only 10/100.Improperly setting the GBE capability leads to an unresponsive MAC
controller. This patch fixes this behavior allowing using the gmac with
these SoCs.Suggested-by: Nicolas Ferre
Signed-off-by: Gregory CLEMENT
Acked-by: Nicolas Ferre
Acked-by: Joe Hershberger
Reviewed-by: Andreas Bießmann
[fixed minor checkpatch warning]
Signed-off-by: Andreas Bießmann
12 Aug, 2015
1 commit
-
This patch refer to linux kernel commit: d8b763e1e79f
net/macb: add TX multiqueue support for gem
by: Cyrille Pitchen1. macb driver will check the register to find how many queues support for
this chip.2. Then as we only use queue0 for tx, so we will set up all other queues
use a dummy descriptor, which USED bit is set. So those queues are not used.Signed-off-by: Josh Wu
Acked-by: Joe Hershberger
20 May, 2015
1 commit
-
When the ethaddr changes in the env, the hardware should also be updated
so that MAC filtering will work properly without resetting U-Boot.Also remove the manual calls to set the hwaddr that was included in a
few drivers as a result of the framework not doing it.Reported-by: Michal Simek
Signed-off-by: Joe Hershberger
Tested-by: Michal Simek
19 Apr, 2015
2 commits
-
Update the naming convention used in the network stack functions and
variables that Ethernet drivers use to interact with it.This cleans up the temporary hacks that were added to this interface
along with the DM support.This patch has a few remaining checkpatch.pl failures that would be out
of the scope of this patch to fix (drivers that are in gross violation
of checkpatch.pl).Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Use "_ethaddr" at the end of variables and drop CamelCase.
Make constant values actually 'const'.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass
19 Mar, 2015
1 commit
-
If the GBE bit is set, when do next time autonegotiation,
if the result is not 1000Mbps, it will fallback to 100Mbps
checking. So, we need to clear the GBE bit.Signed-off-by: Bo Shen
17 Nov, 2014
2 commits
-
The User Register in GMAC IP is used to select interface type.
When with GE feature, it is used to select interface between
RGMII and GMII. If without GE feature, it is used to select
interface between MII and RMII.Signed-off-by: Bo Shen
Signed-off-by: Andreas Bießmann -
When boot up without mac address setting, it will give the warning
message like: "Warning: failed to set MAC address", however when
execute network related command, it still execute them without any
warning information.With this patch, it will exit directly with following information:
"gmac0: mac address is not valid"It also solve the problem after bootup then set mac address and the
mac address won't set to net device issue.Signed-off-by: Bo Shen
Tested-by: Boris Brezillon
Signed-off-by: Andreas Bießmann
11 Oct, 2014
1 commit
-
Signed-off-by: Andreas Bießmann
Cc: Joe Hershberger
Cc: Bo Shen
15 Jun, 2014
2 commits
-
Add to code to flush the dcache after we writing in DMA buffer.
Also we need invalidate the dcache before we check the status in the
DMA buffer.Tested in SAMA5D3x-EK with gmac0. Tftp download speed shows in below:
Disable DCache: 1.1 MiB/s
Enable DCache: 1.6 MiB/s
Increase speed with about 40%.The code should have no impact with the boards which are not
enable_dcache().
Tested in AT91SAM9M10G45EK.Signed-off-by: Josh Wu
Signed-off-by: Andreas Bießmann -
This also renames the CONFIG_SYS_MACB_xx defines. They are used just local and
therefore don't need the CONFIG_SYS_ prefix.Signed-off-by: Andreas Bießmann
Reviewed-by: Josh Wu
05 Nov, 2013
1 commit
-
Get DMA bus width from design config register
Signed-off-by: Bo Shen
Signed-off-by: Andreas Bießmann
22 Aug, 2013
1 commit
-
fix the following building warning
---8>---
macb.c: In function 'macb_init':
macb.c:400:14: warning: 'phydev' may be used uninitialized in this function
macb.c:377:21: note: 'phydev' was declared here
---
Signed-off-by: Andreas Bießmann
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
25 Jun, 2013
5 commits
-
Add gigabit MAC support in macb driver
- using IP version to distinguish whether MAC is GMACSigned-off-by: Bo Shen
-
using phylib to configure phy device in macb driver
Signed-off-by: Bo Shen
-
Using CONFIG_AT91FAMILY replace #ifdeferry for atmel SoC
Signed-off-by: Bo Shen
Acked-by: Andreas Bießmann -
The added weak symbol must not be static.
This was introduced in 416ce623fbad51af57660346ebb6f7befb88b3c9
Signed-off-by: Joe Hershberger
-
SPEAr310 and SPEAr320 Ethernet interfaces share same MDIO lines to control their
respective phys. Currently there is a fixed configuration in which only a
particular MAC can use the MDIO lines.Call an arch specific function to take control of specific mdio lines at
runtime.Signed-off-by: Shiraz Hashim
Signed-off-by: Vipin Kumar
Acked-by: Stefan Roese
05 Nov, 2012
1 commit
-
u-boot's byteorder headers did not contain endianness attributions
for use with sparse, causing a lot of false positives. Import the
kernel's latest definitions, and enable them by including compiler.h
and types.h. They come with 'const' added for some swab functions, so
fix those up, too:include/linux/byteorder/big_endian.h:46:2: warning: passing argument 1 of '__swab64p' discards 'const' qualifier from pointer target type [enabled by default]
Also, note: u-boot's historic __BYTE_ORDER definition has been
preserved (for the time being at least).We also remove ad-hoc barrier() definitions, since we're including
compiler.h in files that hadn't in the past:macb.c:54:0: warning: "barrier" redefined [enabled by default]
In addition, including compiler.h in byteorder changes the 'noinline'
definition to expand to __attribute__((noinline)). This fixes
arch/powerpc/lib/bootm.c:bootm.c:329:16: error: attribute '__attribute__': unknown attribute
bootm.c:329:16: error: expected ')' before '__attribute__'
bootm.c:329:25: error: expected identifier or '(' before ')' tokenpowerpc sparse builds yield:
include/common.h:356:22: error: marked inline, but without a definition
the unknown-reason inlining without a definition is considered obsolete
given it was part of the 2002 initial commit, and no arm version was
'fixed.'also fixed:
ydirectenv.h:60:0: warning: "inline" redefined [enabled by default]and:
Configuring for devconcenter - Board: intip, Options: DEVCONCENTER
make[1]: *** [4xx_ibm_ddr2_autocalib.o] Error 1
make: *** [arch/powerpc/cpu/ppc4xx/libppc4xx.o] Error 2
powerpc-fsl-linux-size: './u-boot': No such file
4xx_ibm_ddr2_autocalib.c: In function 'DQS_autocalibration':
include/asm/ppc4xx-sdram.h:1407:13: sorry, unimplemented: inlining failed in call to 'ppc4xx_ibm_ddr2_register_dump': function body not available
4xx_ibm_ddr2_autocalib.c:1243:32: sorry, unimplemented: called from hereand:
In file included from crc32.c:50:0:
crc32table.h:4:1: warning: implicit declaration of function '___constant_swab32' [-Wimplicit-function-declaration]
crc32table.h:4:1: error: initializer element is not constant
crc32table.h:4:1: error: (near initialization for 'crc32table_le[0]')Signed-off-by: Kim Phillips
[trini: Remove '#endif' in include/common.h around setenv portion]
Signed-off-by: Tom Rini
04 Sep, 2012
2 commits
-
* 'master' of git://git.denx.de/u-boot-avr32:
net:macb: add line break
avr32:portmux: fix setup for macb1
avr32: Remove redundant LDSCRIPT definitionSigned-off-by: Wolfgang Denk
-
Without this patch we see annoying output like this:
---8 dhcp
macb1: PHY not foundmacb0: PHY present at 1
macb0: Starting autonegotiation...
--->8---Signed-off-by: Andreas Bießmann
cc: Joe Hershberger
01 Sep, 2012
1 commit
-
Add at91sam9x5ek board support, this board support the following SoCs
AT91SAM9G15, AT91SAM9G25, AT91SAM9G35, AT91SAM9X25, AT91SAM9X35Using at91sam9x5ek_nandflash to configure for the board
Now only supports NAND with software ECC boot upSigned-off-by: Bo Shen
[move MAINTAINERS entry to right place]
Signed-off-by: Andreas Bießmann