19 Apr, 2015
40 commits
-
Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass
-
Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass
-
Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass
-
Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass
-
Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass
-
Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass
-
Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass
-
Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass
-
Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass
Acked-by: Heiko Schocher -
Move this over to Kconfig and tidy up.
Signed-off-by: Simon Glass
-
Move these over to Kconfig and tidy up.
Signed-off-by: Simon Glass
-
Move CONFIG_BOOT_STAGE and its associated options to Kconfig. Adjust
existing users and code.Signed-off-by: Simon Glass
-
Switch this board over to use driver model for Ethernet.
Signed-off-by: Simon Glass
-
Adjust the Ethernet initialisation code to support driver model.
It is no-longer necessary to call designware_initialize(). The device will
be probed when it is used. The PHY type and GMAC base will come from the
device tree.Signed-off-by: Simon Glass
-
Add driver model support to the designware driver. This reuses most of the
existing code except for some duplication in the probe() method.Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Adjust the error handling to use errno.h instead of returning -1. Change
leaf functions to pass in the arguments they require rather than struct
eth_device. Apart from simplifying the code it makes is easier to reuse
these functions for driver model, since mostly they actually only use
struct dw_eth_priv (which we can keep).Create a stub for each Ethernet operation function. This will allow use to
share code with the driver model versions.Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
When driver model is used for Ethernet a few functions are passed a udevice
instead of an eth_device. Also add a function to find a PHY type given its
name. This will be used to decode the device tree node.Finally, put a phy_interface field in struct eth_pdata since this is an
important part of the platform data for Ethernet.Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
This function is not supported with driver model.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
At present even with driver model is used there is still much manual init
of related devices: PHY, environment and board init. Until these requirements
are dealt with in another way we need to keep them around.Break out the init portion of the legacy eth_initialize() into a separate
function and call it from both the legacy and driver model eth_initialize()
functions.Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Since we will use these bindings on sunxi, bring them in from Linux
4.0-rc1.Signed-off-by: Simon Glass
Acked-by: Ian Campbell -
Move this to Kconfig and clean up board config files that use it. Also
rename it to CONFIG_ETH_DESIGNWARE to fit with the naming that exists
in drivers/net/Kconfig.Signed-off-by: Simon Glass
Version 1:
Acked-by: Joe Hershberger -
We currently have Linksprite_pcDuino3 and Linksprite_pcDuino3_fdt. Drop the
former in favour of the latter.Signed-off-by: Simon Glass
Acked-by: Hans de Goede
Acked-by: Ian Campbell -
More net features enabled and supported on sandbox to allow more testing
Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
When SNTP is enabled and DATE is not, to_tm() is not built in. It could
be defined when TIMESTAMP is defined, so check for that.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Convert uchar/ushort to u8/u16 respectively.
Signed-off-by: Radha Mohan Chintakuntla
Signed-off-by: Sergey Temerkhanov
Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
This commit fixes incorrect DHCP/BOOTP packet layout caused by
'ulong' type size difference on 64 and 32-bit architectures.
It also renames NetReadLong()/NetCopyLong() to
net_read_u32/net_copy_u32() accordingly.Signed-off-by: Radha Mohan Chintakuntla
Signed-off-by: Sergey Temerkhanov
Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Finish eliminating CamelCase from net.c and other failures
Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
There were still a few remaining complains in the legacy eth_device
definition that hadn't been addressed.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
There were still a few failures in net/eth.c, especially in the legacy
part of the code.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
A few new rules in checkpatch.pl since linklocal.c was added.
Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Make a thorough pass through all variables and function names contained
within common/cmd_net.c and remove CamelCase and improve naming.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Make a thorough pass through all variables and function names contained
within netconsole.c and remove CamelCase and improve naming.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Make a thorough pass through all variables and function names contained
within dns.c and remove CamelCase and improve naming.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Make a thorough pass through all variables and function names contained
within cdp.c and remove CamelCase and improve naming.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Make a thorough pass through all variables and function names contained
within ping.c and remove CamelCase and improve naming.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Make a thorough pass through all variables and function names contained
within sntp.c and remove CamelCase and improve naming.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Make a thorough pass through all variables and function names contained
within rarp.c and remove CamelCase and improve naming.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Make a thorough pass through all variables and function names contained
within nfs.c and remove CamelCase and improve naming.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Make a thorough pass through all variables and function names contained
within bootp.c and remove CamelCase and improve naming.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass -
Make a thorough pass through all variables and function names contained
within arp and remove CamelCase and improve naming.Signed-off-by: Joe Hershberger
Acked-by: Simon Glass