powerpc/8xx: Add microcode patch to move SMC parameter RAM.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 14 Jun 2019 06:41:47 +0000 (06:41 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Jul 2019 16:06:38 +0000 (02:06 +1000)
commit43db76f41824aea0a31f817e69ad304a95cf068a
tree4493604476c20c66799a9c444b8adc618f0c53de
parentc3eec5d7da3f77c6e505b44241205ca0aff1df24
powerpc/8xx: Add microcode patch to move SMC parameter RAM.

Some SCC functions like the QMC requires an extended parameter RAM.
On modern 8xx (ie 866 and 885), SPI area can already be relocated,
allowing the use of those functions on SCC2. But SCC3 and SCC4
parameter RAM collide with SMC1 and SMC2 parameter RAMs.

This patch adds microcode to allow the relocation of both SMC1 and
SMC2, and relocate them at offsets 0x1ec0 and 0x1fc0.
Those offsets are by default for the CPM1 DSP1 and DSP2, but there
is no kernel driver using them at the moment so this area can be
reused.

This microcode is provided by Freescale/NXP in Engineering Bulletin
EB662 ("MPC8xx I2C/SPI and SMC Relocation Microcode Packages")
dated 2006. The binary code is public. The source is not available.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/8xx/Kconfig
arch/powerpc/platforms/8xx/micropatch.c