/* This procedure writes a 32-bit address MPC107 register. It swaps the address to little endian before writing it to config address.  */
void mpc824x_mpc107_setreg(unsigned int regNum, unsigned int regVal)
/* This procedure writes a 32-bit address MPC107 register. It swaps the address to little endian before writing it to config address.  */
void mpc824x_mpc107_setreg(unsigned int regNum, unsigned int regVal)
{
	*(volatile unsigned int *) CHRP_REG_ADDR = PCISWAP (regNum);
	*(volatile unsigned int *) CHRP_REG_DATA = PCISWAP (regVal);
	return;
}