08 May, 2017
3 commits
-
Invoke enable_usb_clocks during board_usb_init and disable_usb_clocks
during board_usb_exit to enable and disable clocks respectively.Modifications:
* Enable USB clocks in the OMAP version of the function
board_usb_init.
* Disable USB clocks in the OMAP version of the function
board_usb_cleanup.Cc: Marek Vasut
Signed-off-by: Uri Mashiach
Reviewed-by: Marek Vasut
Reviewed-by: Tom Rini -
A weak version of the function board_usb_init is implemented in:
common/usb.c
drivers/usb/host/xhci-omap.cTo fix the double implementations:
* Convert the board_usb_init function in drivers/usb/host/xhci-omap.c
normal (not weak).
* The function board_usb_init in drivers/usb/host/xhci-omap.c calls to
the weak function omap_xhci_board_usb_init.
* Rename board version of the function board_usb_init to
omap_xhci_board_usb_init.
Done only for boards that defines CONFIG_USB_XHCI_OMAP.To achieve the same flexibility with the function board_usb_cleanup:
* Add a normal (not weak) implementation of the function
board_usb_cleanup in drivers/usb/host/xhci-omap.c
* The function board_usb_cleanup in drivers/usb/host/xhci-omap.c calls
to the weak function omap_xhci_board_usb_cleanup.
* Rename board version of the function board_usb_cleanup to
omap_xhci_board_usb_cleanup.
Done only for boards that defines CONFIG_USB_XHCI_OMAP.Cc: Lokesh Vutla
Signed-off-by: Uri Mashiach
Acked-by: Marek Vasut
Reviewed-by: Tom Rini
Reviewed-by: Roger Quadros -
Modify the determination of the base address of xHCI registers of DRA7XX
targets.
Before the commit: by the target.
After the commit: by the USB port index.Cc: Lokesh Vutla
Cc: Marek Vasut
Cc: Roger Quadros
Signed-off-by: Uri Mashiach
Reviewed-by: Marek Vasut
Reviewed-by: Tom Rini
Reviewed-by: Roger Quadros
Acked-by: Marek Vasut
Acked-by: Marek Vasut
03 May, 2017
3 commits
-
.probe method has been assigned twice when declaring
a driver with U_BOOT_DRIVER(). Removed one of them.
Here is the last commit which had the duplicate entry:
"spi: omap3: Convert to driver model"
(sha1: 77b8d04854f486741471ad02b93b473b5b3d72f8)Signed-off-by: Suniel Mahesh
Reviewed-by: Jagan Teki -
This is not currently implemented. Add support for this so that the
Chrome OS EC can be used reliably.Signed-off-by: Moritz Fischer
Acked-by: Simon Glass
Reviewed-by: Jagan Teki -
Before using the cs_gpio, check if the GPIO is valid or not.
Signed-off-by: Wenyou Yang
Reviewed-by: Jagan Teki
01 May, 2017
2 commits
-
This is not used in U-Boot.
Signed-off-by: Simon Glass
-
This converts the following to Kconfig:
CONFIG_SYS_WHITE_ON_BLACKSigned-off-by: Simon Glass
[trini: Make this default y on various SoCs]
Signed-off-by: Tom Rini
30 Apr, 2017
3 commits
-
This converts the following to Kconfig:
CONFIG_PMIC_AS3722Signed-off-by: Simon Glass
-
Most of the PMICs are in the drivers/power/pmic/ directory. Move this one
there.Signed-off-by: Simon Glass
-
Before converting this to Kconfig, rename it to match the other PMICs.
Signed-off-by: Simon Glass
28 Apr, 2017
2 commits
-
This originally started out as
"pinctrl: Kconfig: reorder to keep Rockchip options together"
and tried to keep the Rockchip-related config options together.However, we now rewrite all chip-specific driver selections to start
with CONFIG_PINCTRL_ (with the inadvertent changes to related
Makefiles) and sort those alphabetically. And as this already means
touching most of the file, we also reformat the help text to not exceed
80 characters (but make full use of those 80 characters).Signed-off-by: Philipp Tomsich
Acked-by: Simon Glass -
Unfortunately a test for the PWM uclass was not included when it was
submitted. This was noticed when trying to add more functionality:http://patchwork.ozlabs.org/patch/748172/
Add a simple test to get us started.
Signed-off-by: Simon Glass
26 Apr, 2017
1 commit
25 Apr, 2017
4 commits
-
We used to have opencoded ehci_readl()/writel() which required no
external functions to be called.Now with attempt to switch to generic readl()/writel() accessors
we see a missing declaration of those accessors in ehci-ppc4xx.
Something like that happens if applied
http://patchwork.ozlabs.org/patch/726714/:
---------------->8---------------
CC drivers/usb/host/ehci-ppc4xx.o
drivers/usb/host/ehci-ppc4xx.c: In function 'ehci_hcd_init':
drivers/usb/host/ehci-ppc4xx.c:23:3: warning: implicit declaration of function 'readl' [-Wimplicit-function-declaration]
HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
^
---------------->8---------------Signed-off-by: Alexey Brodkin
Cc: Tom Rini
Cc: Marek Vasut
Cc: Stefan Roese
Reviewed-by: Stefan Roese -
For id = 15 an out of bound access occurs in udc_setup_ep().
Increase the size of epinfo[] from 30 to 32 to encompass
ids 0..15.The problem was highlighted by cppcheck.
Signed-off-by: Heinrich Schuchardt
-
We want to check the result of musb_init_controller
and not the address were the result is stored.Signed-off-by: Heinrich Schuchardt
-
Only A23/A33 in SUN8I want a default value of CONS_INDEX of 5, for other
chips the default value is 1 like other Allwinner SoCs.Fix this default value.
The original wrong value has lead to wrong console on H3 Orange Pi
boards.Fixes: 7095f8641863 ("sunxi: Convert CONS_INDEX to Kconfig")
Signed-off-by: Icenowy Zheng
Signed-off-by: Maxime Ripard
20 Apr, 2017
9 commits
-
This is needed for HDMI, which will be added later.
Signed-off-by: Jernej Skrabec
Reviewed-by: Simon Glass
Signed-off-by: Maxime Ripard -
Video driver for older Allwinner SoCs uses cfb console framework which
in turn uses struct ctfb_res_modes to hold timing informations. However,
DM video framework uses different structure - struct display_timing.It makes more sense to convert lcdc to use new timing structure because
all new drivers should use DM video framework and older drivers might be
rewritten to use new framework too.Signed-off-by: Jernej Skrabec
Acked-by: Maxime Ripard
Signed-off-by: Maxime Ripard -
TCON unit has similar layout and functionality also on newer SoCs. This
commit splits out TCON code for easier reuse later.Signed-off-by: Jernej Skrabec
Acked-by: Maxime Ripard
Signed-off-by: Maxime Ripard -
The PIO on the R40 SoC is mostly compatible with the A20.
Only a few pin functions for mmc2 were added to the PC
pingroup, to support 8 bit eMMCs.Signed-off-by: Chen-Yu Tsai
Acked-by: Maxime Ripard -
The R40 SoC uses the AXP221s in I2C mode to supply power.
Some regulator's common usages have changed, and also the recommended
voltage for existing usages have changed. Update the defaults to match.Signed-off-by: Chen-Yu Tsai
Acked-by: Maxime Ripard -
Convert the CONS_INDEX configuration to Kconfig.
Update sunxi's defconfigs to remove SYS_EXTRA_OPTIONS variable not
needed anymore.
Default value is 1 except for sun5i (equals 2) and sun8i (equals 5).Signed-off-by: Mylène Josserand
[Maxime: Added a depends on ARCH_SUNXI to avoid build breakages]
Signed-off-by: Maxime Ripard -
Convert CONFIG_RGMII to Kconfig. Thanks to that, it is possible to
update defconfig files of SYS_EXTRA_OPTIONS accordingly and
remove it when it is possible.Signed-off-by: Mylène Josserand
Signed-off-by: Maxime Ripard -
Convert the SUNXI_EMAC config to Kconfig. Remove it from SYS_EXTRA_OPTIONS
from many sunxi defconfig and renamed it into SUN4I_EMAC to not confuse it
with SUN8I_EMAC.Signed-off-by: Mylène Josserand
Signed-off-by: Maxime Ripard -
Move the SUNXI_GMAC config option to Kconfig, remove it
from SYS_EXTRA_OPTIONS and rename it into SUN7I_GMAC.Signed-off-by: Mylène Josserand
Signed-off-by: Maxime Ripard
18 Apr, 2017
13 commits
-
'A || (!A && B)' is equivalent to 'A || B'.
Let's reduce the complexity of the statement in start_jr0().The problem was indicated by cppcheck.
Signed-off-by: Heinrich Schuchardt
Reviewed-by: York Sun
Reviewed-by: Simon Glass -
After allocating sata->cmd_hdr_tbl_offset we have to check
this variable and not variable sata.The problem was indicated by cppcheck.
Signed-off-by: Heinrich Schuchardt
Reviewed-by: Tom Rini -
(pdimm[0].data_width >= 32) || (pdimm[0].data_width
Reviewed-by: Tom Rini
Reviewed-by: York Sun -
The number of arguments for printf does not match the
format string.The problem was indicated by cppcheck.
Signed-off-by: Heinrich Schuchardt
Reviewed-by: Tom Rini -
If current_urb is NULL it should not be dereferenced.
The problem was indicated by cppcheck.
Signed-off-by: Heinrich Schuchardt
Reviewed-by: Tom Rini -
If the system is running PSCI firmware, the System Reset function
(func ID: 0x80000009) is supposed to be handled by PSCI, that is,
the SoC/board specific reset implementation should be moved to PSCI.
U-Boot should call the PSCI service according to the arm-smccc
manner.The arm-smccc is supported on ARMv7 or later. Especially, ARMv8
generation SoCs are likely to run ARM Trusted Firmware BL31. In
this case, U-Boot is a non-secure world boot loader, so it should
not be able to reset the system directly.Signed-off-by: Masahiro Yamada
-
These drivers have no user since commit ea3310e8aafa ("Blackfin:
Remove").Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
Acked-by: Michal Simek
Acked-by: Jaehoon Chung -
Use CONFIG_ARCH_LS1021A instead.
Signed-off-by: York Sun
-
Use CONFIG_ARCH_LS1043A instead.
Signed-off-by: York Sun
-
Use CONFIG_ARCH_LS2080A instead.
Signed-off-by: York Sun
-
- Add SD secure boot target for ls1046ardb.
- Change the u-boot size defined by a macro for copying the main
U-Boot by SPL to also include the u-boot Secure Boot header size
as header is appended to u-boot image. So header will also be
copied from SD to DDR.
- CONFIG_MAX_SPL_SIZE is limited to 90KB. SPL is copied to OCRAM
(128K) where 32K are reserved for use by boot ROM and 6K for the
header.
- Reduce the size of CAAM driver for SPL Blobification functions
and descriptors, that are not required at the time of SPL are
disabled. Further error code conversion to strings is disabled
for SPL build.Signed-off-by: Vinitha Pillai
Signed-off-by: Sumit Garg
Signed-off-by: Ruchika Gupta
Reviewed-by: York Sun -
Depending on DDR configuration, gcc-6.x will show up unused-const-
variable messages. Use __maybe_unused specifier for all dynamic_odt
variable definitions to remove these warnings.Memory footprint will not increase as gcc will optimize out unused
constants.Signed-off-by: Thomas Schaefer
Signed-off-by: York Sun