/*
 *               Copyright (C) 2005, BroadOn Communications Corp.
 *
 *  These coded instructions, statements, and computer programs contain
 *  unpublished  proprietary information of BroadOn Communications Corp.,
 *  and  are protected by Federal copyright law. They may not be disclosed
 *  to  third  parties or copied or duplicated in any form, in whole or in
 *  part, without the prior written consent of BroadOn Communications Corp.
 *
 */
#include <iostypes.h>
#include <ios.h>
#include <iop.h>
#include <ioslibc.h>
#include <ahb_fdl_defs.h>

/* Put some legacy blocks into reset for switch to compat mode */
void
resetLegacyBlocks(void)
{
    u32 val = busRd32(ACR_PROT_REGS_BASE + ACRRSTCTRL_OFFSET);
    val &= ~( 
             ACRRSTCTRL_RSTB_IOMEM_MASK 
//            | ACRRSTCTRL_RSTB_IOEXI_MASK
            | ACRRSTCTRL_RSTB_IOSI_MASK
            );
    busWrt32(ACR_PROT_REGS_BASE + ACRRSTCTRL_OFFSET, val);
}
