u-boot/drivers
Rasmus Villemoes fddf876a8f mpc83xx_clk: always treat MPC83XX_CLK_PCI as invalid
The current mpc83xx_clk driver is broken for any board for which
mpc83xx_has_pci() is true, i.e. anything not MPC8308:

When is_clk_valid() reports that MPC83XX_CLK_PCI is valid,
init_all_clks() proceeds to call init_single_clk(), but that doesn't
know about either MPC83XX_CLK_PCI or has any handling of the
TYPE_SCCR_ONOFF mode correctly returned by retrieve_mode(). Hence
init_single_clk() ends up returning -EINVAL, and the whole board hangs
in serial_init().

The quickest fix is to simply pretend that clock is invalid for
all, since nobody can have been relying on it. Adding proper support
seems to be a bit more involved than just handling TYPE_SCCR_ONOFF:

- The power-on-reset value of SCCR[PCICM] is 0, so
  mpc83xx_clk_enable() would probably need to be tought to enable the
  clock.

- The frequency of PCI_SYNC_OUT is either SYS_CLK_IN or SYS_CLK_IN/2
  depending on the CFG_CLKIN_DIV configuration input, but that can't
  be read from software, so to properly fill out
  ->speed[MPC83XX_CLK_PCI] I think one would need guidance from
  Kconfig or dtb.

Partially fixes: 07d538d281 clk: Add MPC83xx clock driver

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Mario Six <mario.six@gdsys.cc>
2020-01-08 08:14:36 +01:00
..
adc adc: stm32: Fix warnings when compiling with W=1 2019-07-12 11:50:55 +02:00
ata common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
axi drivers: cosmetic: Convert SPDX license tags to Linux Kernel style 2018-10-28 09:26:39 -04:00
bios_emulator bios_emulator: remove stray break 2019-08-09 22:24:02 +08:00
block blk: Make use of CONFIG_HAVE_BLOCK_DEVICE more 2019-12-03 08:43:24 -05:00
board board: gazerbeam: Fix SC detection 2019-05-21 08:03:38 +02:00
bootcount common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
cache dm: cache: add v5l2 cache controller driver 2019-09-03 09:31:03 +08:00
clk mpc83xx_clk: always treat MPC83XX_CLK_PCI as invalid 2020-01-08 08:14:36 +01:00
core dm: pci: Move pci_get_devfn() into a common file 2019-12-15 08:52:29 +08:00
cpu Move strtomhz() to vsprintf.h 2019-12-02 18:23:09 -05:00
crypto common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
ddr New for 2020.04 2020-01-07 08:45:43 -05:00
demo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfu dfu: add dependency on the raw NAND core 2019-12-04 17:10:51 -05:00
dma net: ti: am65-cpsw-nuss: Add new compatible for J721e 2019-12-09 09:47:43 -06:00
fastboot mtd: rename CONFIG_NAND -> CONFIG_MTD_RAW_NAND 2019-12-03 23:04:10 -05:00
firmware common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
fpga common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
gpio x86: Add a generic Intel GPIO driver 2019-12-15 11:44:25 +08:00
hwspinlock hwspinlock: add stm32 hardware spinlock support 2018-12-06 23:26:33 -05:00
i2c Merge branch 'next' of https://gitlab.denx.de/u-boot/custodians/u-boot-x86 into next 2019-12-18 07:20:19 -05:00
input input: Move input.o to be built only in some cases 2019-11-19 17:43:04 -05:00
led led: bcm6858: allow to use this driver on ARCH_963158 2019-04-23 17:57:22 -04:00
mailbox common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
memory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc Merge branch 'next' of https://gitlab.denx.de/u-boot/custodians/u-boot-x86 into next 2019-12-18 07:20:19 -05:00
mmc Merge branch 'next' 2020-01-06 17:07:49 -05:00
mtd First set of u-boot-atmel features for 2020.04 cycle 2020-01-07 08:44:56 -05:00
net Merge branch 'next' 2020-01-06 17:07:49 -05:00
nvme common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
pch x86: Allow removal of standard PCH drivers 2019-12-15 11:44:16 +08:00
pci New for 2020.04 2020-01-07 08:45:43 -05:00
pci_endpoint pci_ep: Fix Coverity warning 2019-08-07 15:31:04 -04:00
phy phy: ti-pipe3: Fix SATA & USB PHY power up sequence 2019-12-26 09:06:54 -05:00
pinctrl x86: apl: Add pinctrl driver 2019-12-15 11:44:26 +08:00
power x86: apl: Add PMC driver 2019-12-15 11:44:26 +08:00
pwm pwm: rk_pwm: Make PWM driver to support all Rockchip Socs 2019-12-06 00:06:23 +08:00
qe crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
ram rockchip: rk3308: Add sdram driver 2019-11-17 17:22:53 +08:00
remoteproc common: Move ARM cache operations out of common.h 2019-12-02 18:24:58 -05:00
reset ARC: HSDK: introduce reset driver 2019-11-01 16:45:40 +03:00
rtc rtc: rx8010js: add compatible string 2019-12-27 14:34:29 +01:00
scsi scsi: Add dma direction member to command structure 2019-10-23 20:47:12 -04:00
serial serial: sandbox: support Unicode 2019-12-10 05:54:55 -07:00
smem drivers: smem: sandbox 2018-07-19 16:31:38 -04:00
soc soc: ti: k3-navss-ringacc: fix k3_nav_ringacc_ring_reset_dma 2019-09-13 11:56:08 -04:00
sound common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
spi Merge branch 'next' 2020-01-06 17:07:49 -05:00
spmi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sysreset sysreset_mpc83xx: fix mcp83xx -> mpc83xx typo 2019-12-13 13:01:53 -05:00
tee drivers: optee: rpmb: fix returning CID to TEE 2019-12-05 10:28:38 -05:00
thermal thermal: add i.MX8 thermal driver 2019-07-19 15:17:05 +02:00
timer x86: timer: Reduce timer code size in TPL on Intel CPUs 2019-12-15 11:44:10 +08:00
tpm dm: gpio: Allow control of GPIO uclass in SPL 2019-12-15 08:52:29 +08:00
ufs ufs: Add glue layer driver for TI J721E devices 2019-10-23 20:47:12 -04:00
usb usb: dwc3: Fix UTMI/UTMIW phy interface initialization 2019-12-21 20:35:16 +01:00
video video: lg4573: convert to DM 2020-01-07 10:26:55 +01:00
virtio virtio: pci: use correct type in virtio_pci_bind() 2019-10-31 07:22:53 -04:00
w1 w1: Add driver for i.MX bus master controller 2019-01-01 14:12:18 +01:00
w1-eeprom w1-eeprom: Add support for Maxim DS2502 add only memory 2018-11-16 16:51:55 -05:00
watchdog watchdog: imx: Use immediate reset bits for expire_now 2019-11-03 17:04:16 +01:00
Kconfig ufs: Add Initial Support for UFS subsystem 2019-10-23 20:47:12 -04:00
Makefile x86: sandbox: Add a PMC emulator and test 2019-12-15 11:44:11 +08:00