 TODC_INIT(TODC_TYPE_DS1501, 0, 0, ioremap(EV64360_RTC_WINDOW_BASE, EV64360_RTC_WINDOW_SIZE), 8); 
ev64360_setup_peripherals(void){	u32 base;	/* Set up window for boot CS */	mv64x60_set_32bit_window(&bh, MV64x60_CPU2BOOT_WIN,		 EV64360_BOOT_WINDOW_BASE, EV64360_BOOT_WINDOW_SIZE, 0);	bh.ci->enable_window_32bit(&bh, MV64x60_CPU2BOOT_WIN);	/* We only use the 32-bit flash */	mv64x60_get_32bit_window(&bh, MV64x60_CPU2BOOT_WIN, &base,		&ev64360_flash_size_0);	ev64360_flash_size_1 = 0;	mv64x60_set_32bit_window(&bh, MV64x60_CPU2DEV_1_WIN,		 EV64360_RTC_WINDOW_BASE, EV64360_RTC_WINDOW_SIZE, 0);	bh.ci->enable_window_32bit(&bh, MV64x60_CPU2DEV_1_WIN);	mv64x60_set_32bit_window(&bh, MV64x60_CPU2SRAM_WIN,		 EV64360_INTERNAL_SRAM_BASE, MV64360_SRAM_SIZE, 0);	bh.ci->enable_window_32bit(&bh, MV64x60_CPU2SRAM_WIN);	sram_base = ioremap(EV64360_INTERNAL_SRAM_BASE, MV64360_SRAM_SIZE);	/* Set up Enet->SRAM window */	mv64x60_set_32bit_window(&bh, MV64x60_ENET2MEM_4_WIN,		EV64360_INTERNAL_SRAM_BASE, MV64360_SRAM_SIZE, 0x2);	bh.ci->enable_window_32bit(&bh, MV64x60_ENET2MEM_4_WIN);	/* Give enet r/w access to memory region */	mv64x60_set_bits(&bh, MV64360_ENET2MEM_ACC_PROT_0, (0x3 << (4 << 1)));	mv64x60_set_bits(&bh, MV64360_ENET2MEM_ACC_PROT_1, (0x3 << (4 << 1)));	mv64x60_set_bits(&bh, MV64360_ENET2MEM_ACC_PROT_2, (0x3 << (4 << 1)));	mv64x60_clr_bits(&bh, MV64x60_PCI1_PCI_DECODE_CNTL, (1 << 3));	mv64x60_clr_bits(&bh, MV64x60_TIMR_CNTR_0_3_CNTL,			 ((1 << 0) | (1 << 8) | (1 << 16) | (1 << 24)));#if defined(CONFIG_NOT_COHERENT_CACHE)	mv64x60_write(&bh, MV64360_SRAM_CONFIG, 0x00160000);#else	mv64x60_write(&bh, MV64360_SRAM_CONFIG, 0x001600b2);#endif	/*	 * Setting the SRAM to 0. Note that this generates parity errors on	 * internal data path in SRAM since it's first time accessing it	 * while after reset it's not configured.	 */	memset(sram_base, 0, MV64360_SRAM_SIZE);	/* set up PCI interrupt controller */	ev64360_intr_setup();}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/2104da90a9aeef31ff6441d171a7d0492088f1d0/ev64360.c/buggy/arch/ppc/platforms/ev64360.c