• Christophe Leroy's avatar
    powerpc/8xx: Add microcode patch to move SMC parameter RAM. · 43db76f4
    Christophe Leroy authored
    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: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    43db76f4
micropatch.c 13.4 KB