android_kernel_xiaomi_sm8350/arch/powerpc/platforms/pasemi
Olof Johansson 38958dd911 [POWERPC] pasemi: Implement MSI support
Implement MSI support for PA Semi PWRficient platforms. MSI is done
through a special range of sources on the openpic controller, and they're
unfortunately breaking the usual concepts of how sources are programmed:

* The source is calculated as 512 + the value written into the MSI
  register
* The vector for this source is added to the source and reported
  through IACK

This means that for simplicity, it makes much more sense to just set the
vector to 0 for the source, since that's really the vector we expect to
see from IACK.

Also, the affinity/priority registers will affect 16 sources at a
time. To avoid most (simple) users from being limited by this, allocate
16 sources per device but use only one. This means that there's a total
of 32 sources.

If we get usage scenarions that need more sources, the allocator should
probably be revised to take an alignment argument and size, not just do
natural alignment.

Finally, since I'm already touching the MPIC names on pasemi, rename
the base one from the somewhat odd " PAS-OPIC  " to "PASEMI-OPIC".

Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-12-20 16:15:23 +11:00
..
cpufreq.c [POWERPC] pasemi: Don't enter powersaving states from elevated astates 2007-12-01 13:03:40 -06:00
electra_ide.c [POWERPC] pasemi: Electra IDE/pata_platform glue 2007-06-25 16:58:05 +10:00
gpio_mdio.c [POWERPC] Clean out asm/of_{platform, device}.h 2007-12-06 14:44:30 +11:00
idle.c [POWERPC] pasemi: Move pasemi_idle_init() to late_initcall() 2007-09-14 01:33:22 +10:00
iommu.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc 2007-10-11 21:55:47 -07:00
Kconfig [POWERPC] pasemi: Broaden specific references to 1682M 2007-11-29 22:30:47 -06:00
Makefile [POWERPC] pasemi: Electra IDE/pata_platform glue 2007-06-25 16:58:05 +10:00
pasemi.h [POWERPC] pasemi: Don't enter powersaving states from elevated astates 2007-12-01 13:03:40 -06:00
pci.c [POWERPC] pasemi: Add workaround for erratum 5945 2007-09-14 01:33:21 +10:00
powersave.S [POWERPC] pasemi: Don't enter powersaving states from elevated astates 2007-12-01 13:03:40 -06:00
setup.c [POWERPC] pasemi: Implement MSI support 2007-12-20 16:15:23 +11:00
time.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00