/* Adapted from ATI's sys.c */

#include <iostypes.h>
#include <ios.h>
#include <iop.h>
#include <ioslibc.h>

#include <ahb_fdl_defs.h>
#include <mem_reg.h>
#include "sys_int.h"
#include <sys.h>

/*
 * For verification and bringup, the system should allow access by PPC and
 * iop user access.  The POR values do this except for a few special areas.
 */
void
initSecuritySettings()
{
    u32 reg; 

    reg = busRd32(ACR_PROT_REGS_BASE + ACRSRNPROT_OFFSET);
    ACRSRNPROT_SET_AHPEN(reg, 1);
    busWrt32(ACR_PROT_REGS_BASE + ACRSRNPROT_OFFSET, reg);
}
