05 Mar, 2018
1 commit
-
Thomas reported U-Boot failed to build host tools if libfdt-devel
package is installed because tools include libfdt headers from
/usr/include/ instead of using internal ones.This commit moves the header code:
include/libfdt.h -> include/linux/libfdt.h
include/libfdt_env.h -> include/linux/libfdt_env.hand replaces include directives:
#include -> #include
#include -> #includeReported-by: Thomas Petazzoni
Signed-off-by: Masahiro Yamada
06 Nov, 2017
1 commit
-
Uniformize all STMicroelectronics copyrights headers for STi
related code.Signed-off-by: Patrice Chotard
04 Oct, 2017
1 commit
-
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in
include/linux/compiler-gcc.h:# define __compiletime_error(message) __attribute__((error(message)))
This prevents us from using __compiletime_error(), and makes it
difficult to fully sync BUILD_BUG macros with Linux. (Notice
Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)Let's convert error() into now treewide-available pr_err().
Done with the help of Coccinelle, excluing tools/ directory.
The semantic patch I used is as follows:
//
@@@@
-error
+pr_err
(...)
//Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
[trini: Re-run Coccinelle]
Signed-off-by: Tom Rini
22 Sep, 2017
1 commit
-
This is the generic phy driver for the picoPHY ports
used by USB2/1.1 controllers. It is found on STiH407 SoC
family from STMicroelectronics.Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
29 Jul, 2017
2 commits
-
This driver is used to stub PHY operations in a driver (USB, SATA).
This is useful when the 'client' driver (USB, SATA, ...) uses the PHY
framework and there is no actual PHY harwdare to drive.Signed-off-by: Jean-Jacques Hiblot
-
phy->dev need to be set to NULL in case of generic_phy_get_by_index()
fails. Then phy->dev can be used to check if the phy is validReported-by: Jean-Jacques Hiblot
Signed-off-by: Patrice Chotard
Reviewed-by: Simon Glass
11 Jul, 2017
1 commit
-
ARCH_OMAP2 has been renamed ARCH_OMAP2PLUS in commit a93fbf4a7892
("ARM: omap2+: rename config to ARCH_OMAP2PLUS and consolidate Kconfig")Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
01 Jun, 2017
5 commits
-
Update the sandbox phy driver to support livetree.
Signed-off-by: Simon Glass
-
Update the phy uclass to support livetree. Fix the xlate() method
which has no callers.Signed-off-by: Simon Glass
-
The of_ prefix conflicts with the livetree version of this function.
Rename it to avoid problems when we add livetree support.Signed-off-by: Simon Glass
-
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
-
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
4 commits
-
This phy is found on omap platforms with sata capabilities.
Except for the part related to the DM and the PHY framework, the code is
basically a copy paste from arch/arm/mach-omap2/pipe3-phy.cSigned-off-by: Jean-Jacques Hiblot
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass -
Those tests check:
- the ability for a phy-user to get a phy based on its name or its index
- the ability of a phy device (provider) to manage multiple ports
- the ability to perform operations on the phy (init,deinit,on,off)
- the behavior of the uclass when optional operations are not implementedSigned-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass -
The PHY framework provides a set of APIs to control a PHY. This API is
derived from the linux version of the generic PHY framework.
Currently the API supports init(), deinit(), power_on, power_off() and
reset(). The framework provides a way to get a reference to a phy from the
device-tree.Signed-off-by: Jean-Jacques Hiblot
Reviewed-by: Simon Glass
09 May, 2017
14 commits
-
Add PCIE analog parameters initialization values according to
latest ETP.Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
No functional change.
The variable name "comphy_index" is misleading, it represents
cp index and not comphy index.Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
Add SFI analog parameters initialization values according to
latest ETP.Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
since now the COMPHY can also be ignored, we must know the
state of the COMPHY. we cannot assume anymore that a missing
COMPHY is unconnected.Signed-off-by: Yehuda Yitschak
Signed-off-by: Stefan Roese
Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
The comphy configuration is incorrect.
Set the correct values for SGMII.In addition, remove xaui from the comment as it is not supported.
Signed-off-by: Yoav Gvili
Signed-off-by: Stefan Roese
Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
This patch adds the option to configure a comphy to 5G XFI mode.
In order to configure the comphy to 5G XFI, update
the comphy node in the device-tree:
phy2 {
phy-type = ;
phy-speed = ;
};Signed-off-by: Igal Liberman
Signed-off-by: Stefan Roese
Reviewed-by: Stefan Roese -
Align PHY selectors register with Armada-CP-110 functional SPEC
update all relevant device trees with this change.Signed-off-by: Hanna Hawa
Signed-off-by: Stefan Roese
Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
Add SATA analog parameters initialization values according to
latest ETP.Signed-off-by: Konstantin Porotchkin
Signed-off-by: Stefan Roese
Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
This patch fixes the following:
1. KR/SFI on lane #4 mux selector is 0x2 and not 0x1
2. Comment typoSigned-off-by: Rabeeh Khoury
Signed-off-by: Stefan Roese
Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
This type tells u-boot to preserve the COMPHY settings as is
it is usefull in situations where the COMPHY was initialized by
earlier firmware.
Note that IGNORE is different from UNCONNECTED since setting
UNCONNECTED type will disconnect the COMPHY in the COMPHY MUX
which is a desired behaviourSigned-off-by: Yehuda Yitschak
Signed-off-by: Stefan Roese
Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
UTMI_PHY_TO_USB_HOST was used in USB3 UTMI dts node only, but there will
be USB2 UTMI dts node for some SoCs that have got USB2 controller, so rename
TO_USB_HOST to TO_USB3_HOST to distinguish TO_USB2_HOST in later on patches.Signed-off-by: zachary
Signed-off-by: Stefan Roese
Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
The serdes was always configured in root complex mode.
this patch add new entry in device tree (per serdes)
which indicates whether the serdes is in end point mode.
if so, it skips the root complex configuration.Signed-off-by: Haim Boot
Signed-off-by: Stefan Roese
Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
Use correct naming as done in the latest Marvell U-Boot version as well.
Signed-off-by: Stefan Roese
Signed-off-by: Igal Liberman
Reviewed-by: Stefan Roese -
Use local static counter for maintaining the COMPHY chip-ID
upon its initialization.
The dev->seq originally used as the COMPHY chip-ID depends
on the device tree scan order and produces wrong results
that breaks the deficated PHYs init flow, which in turn
breaks the USB support.Change-Id: I4e3f7ec36590a7f95dc94d9269a3c47fb708c4a9
Signed-off-by: Konstantin Porotchkin
Cc: Stefan Roese
Cc: Igal Liberman
Cc: Stefan Chulski
Cc: Nadav Haklai
Reviewed-by: Stefan Roese
08 Feb, 2017
1 commit
-
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
01 Feb, 2017
1 commit
-
Now that the SD/SDIO/MMC DT properties are updated in the Marvell
A3700 and A7/8k DT files, we need to match the checks for compatible
node in the PHY driver as well.Signed-off-by: Stefan Roese
Cc: Kostya Porotchkin
Cc: Nadav Haklai
Reviewed-by: Jaehoon Chung
05 Dec, 2016
2 commits
-
With the support for the Armada 8k, a 2nd COMPHY controller now needs
to get supported from the CP110 slave controller. This patch adds support
for this 2nd contoller in the COMPHY driver.Signed-off-by: Stefan Roese
Cc: Nadav Haklai
Cc: Neta Zur Hershkovits
Cc: Kostya Porotchkin
Cc: Omri Itach
Cc: Igal Liberman
Cc: Haim Boot
Cc: Hanna Hawa -
Obviously the mask for the rx and tx select field cannot be right,
as it would overlap in one and exceed the 32-bit register in the other
case. From looking at the neighbouring bits it looks like the mask
should be really 4 bits wide instead of 8.Pointed out by a GCC 6.2 (default) warning.
Signed-off-by: Andre Przywara
Reviewed-by: Stefan Roese
Reviewed-by: Stefan Roese
14 Oct, 2016
1 commit
-
The signature for this macro has changed. Bring in the upstream version and
adjust U-Boot's usages to suit.Signed-off-by: Simon Glass
Update to drivers/power/pmic/palmas.c:
Signed-off-by: KeerthyChange-Id: I6cc9021339bfe686f9df21d61a1095ca2b3776e8
27 Sep, 2016
2 commits
-
This version is based on the Marvell U-Boot version with this patch
applied as latest patch:Git ID 7f408573: "fix: comphy: cp110: add comphy initialization for usb
device mode" from 2016-07-05.Signed-off-by: Stefan Roese
Cc: Nadav Haklai
Cc: Neta Zur Hershkovits
Cc: Kostya Porotchkin
Cc: Omri Itach
Cc: Igal Liberman
Cc: Haim Boot
Cc: Hanna Hawa -
This version is based on the Marvell U-Boot version with this patch
applied as latest patch:Git ID 7f408573: "fix: comphy: cp110: add comphy initialization for usb
device mode" from 2016-07-05.Signed-off-by: Stefan Roese
Cc: Nadav Haklai
Cc: Kostya Porotchkin
Cc: Wilson Ding
Cc: Victor Gu
Cc: Hua Jing
Cc: Terry Zhou
Cc: Hanna Hawa
Cc: Haim Boot