android_kernel_xiaomi_sm8350/arch/powerpc/platforms
Anton Vorontsov 1a9ebc0cd2 [POWERPC] 83xx: mpc8315 - fix USB UTMI Host setup
Currently USB Host isn't functional on the MPC8315E boards, for two
reasons as described below.

MPC8315 Reference Manual says:
"The USB DR unit must have the same clock ratio as the encryption core
unit, unless one of them has its clock disabled."

The encryption core also drives I2C clock, so it is enabled and is equal
to 01. That means USBDRCM should be 01 here.

Plus, according to MPC8315E-RDB schematics, USB unit consumes CLK_IN
clock from the 24.00MHz oscillator, which means we must adjust REFSEL
bits as well.

p.s.
Idially we should rework whole 83xx/usb.c code, in two steps:
1. Move SCCR code to the U-Boot;
2. Implement fsl,usb-clock property in the device tree, so usb.c could
   decide what clock exactly to use on per-board basis.

Though, today we're not in a hurry since there is just one 8315e board
out there.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
2008-04-17 09:52:50 -05:00
..
8xx [POWERPC] CPM: Always use new binding. 2008-04-17 01:01:40 -05:00
40x [POWERPC] 4xx: Create common ppc4xx_reset_system() in ppc4xx_soc.c 2008-04-02 20:44:56 -05:00
44x [POWERPC] 4xx: Add idle wait support for 44x platforms 2008-04-16 07:32:06 -05:00
52xx [POWERPC] Replace remaining __FUNCTION__ occurrences 2008-04-01 20:43:09 +11:00
82xx [POWERPC] CPM: Always use new binding. 2008-04-17 01:01:40 -05:00
83xx [POWERPC] 83xx: mpc8315 - fix USB UTMI Host setup 2008-04-17 09:52:50 -05:00
85xx [POWERPC] 85xx: Fix compile warning 2008-04-17 01:01:41 -05:00
86xx [POWERPC] 86xx: mpc86xx_hpcn - Temporarily accept old dts node identifier. 2008-04-17 09:51:59 -05:00
512x [POWERPC] Remove unused CONFIG_WANT_DEVICE_TREE 2008-02-14 22:11:03 +11:00
cell [POWERPC] Replace remaining __FUNCTION__ occurrences 2008-04-01 20:43:09 +11:00
celleb [POWERPC] celleb: Coding style cleanup 2008-04-17 07:46:10 +10:00
chrp
embedded6xx [POWERPC] mv64x60: Fix FDT compatible names: mv64x60 => mv64360 2008-04-15 21:21:24 +10:00
iseries [POWERPC] iSeries: Localise and constify some iSeries data 2008-04-15 21:21:25 +10:00
maple [POWERPC] maple: Kill fixup_maple_ide 2008-03-26 08:44:04 +11:00
pasemi [POWERPC] pasemi: Minor iommu cleanup 2008-04-07 09:16:28 -05:00
powermac Merge branch 'linux-2.6' 2008-03-13 15:26:33 +11:00
prep
ps3 [POWERPC] Replace remaining __FUNCTION__ occurrences 2008-04-01 20:43:09 +11:00
pseries [POWERPC] Always add preferred consoles in platforms/pseries/lpar.c 2008-04-17 10:00:59 +10:00
fsl_uli1575.c
Kconfig [POWERPC] CPM: Always use new binding. 2008-04-17 01:01:40 -05:00
Kconfig.cputype [POWERPC] 4xx: Create common ppc4xx_reset_system() in ppc4xx_soc.c 2008-04-02 20:44:56 -05:00
Makefile [POWERPC] mpc512x: Basic platform support 2008-02-06 14:03:10 -07:00