• Ira W. Snyder's avatar
    edac: mpc85xx add mpc83xx support · b4846251
    Ira W. Snyder authored
    Add support for the Freescale MPC83xx memory controller to the existing
    driver for the Freescale MPC85xx memory controller.  The only difference
    between the two processors are in the CS_BNDS register parsing code, which
    has been changed so it will work on both processors.
    
    The L2 cache controller does not exist on the MPC83xx, but the OF
    subsystem will not use the driver if the device is not present in the OF
    device tree.
    
    I had to change the nr_pages calculation to make the math work out.  I
    checked it on my board and did the math by hand for a 64GB 85xx using 64K
    pages.  In both cases, nr_pages * PAGE_SIZE comes out to the correct
    value.
    Signed-off-by: default avatarIra W. Snyder <iws@ovro.caltech.edu>
    Signed-off-by: default avatarDoug Thompson <dougthompson@xmission.com>
    Cc: Kumar Gala <galak@gate.crashing.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    b4846251
Kconfig 7.37 KB