Lines Matching refs:cs
57 __init board_nor_init(struct mtd_partition *nor_parts, u8 nr_parts, u8 cs) in board_nor_init() argument
66 err = gpmc_cs_request(cs, FLASH_SIZE_SDPV2 - 1, in board_nor_init()
71 err = gpmc_cs_request(cs, FLASH_SIZE_SDPV1 - 1, in board_nor_init()
92 u8 nr_parts, u8 cs) in board_onenand_init() argument
94 board_onenand_data.cs = cs; in board_onenand_init()
136 __init board_nand_init(struct mtd_partition *nand_parts, u8 nr_parts, u8 cs, in board_nand_init() argument
139 board_nand_data.cs = cs; in board_nand_init()
155 u8 cs = 0; in get_gpmc0_type() local
168 cs = readw_relaxed(fpga_map_addr + REG_FPGA_DIP_SWITCH_INPUT2) & 0xf; in get_gpmc0_type()
173 cs = ((cs & 8) >> 3) | ((cs & 4) >> 1) | in get_gpmc0_type()
174 ((cs & 2) << 1) | ((cs & 1) << 3); in get_gpmc0_type()
177 cs = ((cs & 4) >> 2) | (cs & 2) | ((cs & 1) << 2); in get_gpmc0_type()
180 return cs; in get_gpmc0_type()
191 u8 cs = 0; in board_flash_init() local
203 pr_err("%s: Invalid chip select: %d\n", __func__, cs); in board_flash_init()
208 while (cs < GPMC_CS_NUM) { in board_flash_init()
209 switch (config_sel[cs]) { in board_flash_init()
212 norcs = cs; in board_flash_init()
216 nandcs = cs; in board_flash_init()
220 onenandcs = cs; in board_flash_init()
223 cs++; in board_flash_init()