/* Set CCAT mode @mode: use CCAT_MODE_CONFIG or CCAT_MODE_RUN  */
void weim_cs0_settings(u32 mode)
/* Set CCAT mode @mode: use CCAT_MODE_CONFIG or CCAT_MODE_RUN  */
void weim_cs0_settings(u32 mode)
{
	struct weim *weim_regs = (struct weim *)WEIM_BASE_ADDR;
	writel(0x0, &weim_regs->cs0gcr1);
	writel(mode, &weim_regs->cs0gcr1);
	writel(0x00001002, &weim_regs->cs0gcr2);
	writel(0x04000000, &weim_regs->cs0rcr1);
	writel(0x00000000, &weim_regs->cs0rcr2);
	writel(0x04000000, &weim_regs->cs0wcr1);
	writel(0x00000000, &weim_regs->cs0wcr2);
}