/* This function overrides the generic pixis_read() function, so that it can use PIXIS indirect mode if necessary.  */
u8 pixis_read(unsigned int reg)
/* This function overrides the generic pixis_read() function, so that it can use PIXIS indirect mode if necessary.  */
u8 pixis_read(unsigned int reg)
{
	ccsr_gur_t *gur = (void *)CONFIG_SYS_MPC85xx_GUTS_ADDR;
	if ((in_be32(&gur->pmuxcr) & PMUXCR_ELBCDIU_MASK) !=
	    PMUXCR_ELBCDIU_NOR16) {
		out_8(lbc_lcs0_ba, reg);
		return in_8(lbc_lcs1_ba);
	} else {
		void *p = (void *)PIXIS_BASE;
		return in_8(p + reg);
	}
}