/* In the early version 2 core ColdFire parts the IMR register was 16 bits in size. Version 3 (and later version 2) core parts have a 32 bit sized IMR register. Provide some size independant methods to access the IMR register.  */
void mcf_setimr(int index)
/* In the early version 2 core ColdFire parts the IMR register was 16 bits in size. Version 3 (and later version 2) core parts have a 32 bit sized IMR register. Provide some size independant methods to access the IMR register.  */
void mcf_setimr(int index)
{
	u32 imr;
	imr = __raw_readl(MCF_MBAR + MCFSIM_IMR);
	__raw_writel(imr | (0x1 << index), MCF_MBAR + MCFSIM_IMR);
}