• Vitaly Bordug's avatar
    POWERPC: Get rid of remapping the whole immr · fc8e50e3
    Vitaly Bordug authored
    The stuff below cleans up the code attempting to remap the whole cpm2_immr
    early, as well as places happily assuming that fact. This is more like the 2.4
    legacy stuff, and is at least confusing and unclear now.
    
    To keep the world comfortable, a new mechanism is introduced: before accessing
    specific immr register/register set, one needs to map it, using cpm2_map(<reg>),
    for instance, access to CPM command register will look like
    	volatile cpm_cpm2_t *cp = cpm2_map(im_cpm);
    keeping the code clear, yet without "already defined somewhere" cpm2_immr.
    
    So far, unmapping code is not implemented, but it's not a big deal to add it,
    if the whole idea makes sense.
    Signed-off-by: default avatarVitaly Bordug <vbordug@ru.mvista.com>
    fc8e50e3
cpm2.h 51.6 KB