/* This function overrides the generic pixis_write() function, so that it can use PIXIS indirect mode if necessary.  */
void pixis_write(unsigned int reg, u8 value)
/* This function overrides the generic pixis_write() function, so that it can use PIXIS indirect mode if necessary.  */
void pixis_write(unsigned int reg, u8 value)
{
	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);
		out_8(lbc_lcs1_ba, value);
		in_8(lbc_lcs1_ba);
	} else {
		void *p = (void *)PIXIS_BASE;
		out_8(p + reg, value);
	}
}