Lines Matching refs:cs
93 static int burst_mode(unsigned int cs, int burst_on);
94 static int intel_flash_data_width_mode(unsigned int cs, int flash_16bit);
363 unsigned int cs;
374 cs = (gpio_data & _SB_MAKEMASK1(GPIO_BOOT_SELECT)) ?
385 intel_flash_data_width_mode(cs, flash_16bit);
393 burst_mode(cs, burst_on);
404 static int intel_flash_data_width_mode(unsigned int cs, int flash_16bit)
411 io_ext_cfg = SBREADCSR(A_IO_EXT_CS_BASE(cs));
418 if (DEBUG_CS) xprintf("FLASH CS %d: 16-BIT MODE\n", cs);
424 SBWRITECSR(A_IO_EXT_CS_BASE(cs),io_ext_cfg);
430 if (DEBUG_CS) xprintf("FLASH CS %d: 8-BIT MODE\n", cs);
435 SBWRITECSR(A_IO_EXT_CS_BASE(cs),io_ext_cfg);
440 static int burst_mode(unsigned int cs, int burst_on)
445 io_ext_cfg = SBREADCSR(A_IO_EXT_CS_BASE(cs));
449 SBWRITECSR(A_IO_EXT_CS_BASE(cs), io_ext_cfg);
450 if (DEBUG_CS) xprintf("FLASH CS %d: BURST ON\n",cs);
454 SBWRITECSR(A_IO_EXT_CS_BASE(cs),io_ext_cfg);
455 if (DEBUG_CS) xprintf("FLASH CS %d: BURST OFF\n",cs);