Lines Matching refs:gpmc_cfg
71 this->IO_ADDR_W = (void __iomem *)&gpmc_cfg->cs[cs].nand_cmd; in omap_nand_hwcontrol()
74 this->IO_ADDR_W = (void __iomem *)&gpmc_cfg->cs[cs].nand_adr; in omap_nand_hwcontrol()
77 this->IO_ADDR_W = (void __iomem *)&gpmc_cfg->cs[cs].nand_dat; in omap_nand_hwcontrol()
90 return gpmc_cfg->status & (1 << (8 + info->ws)); in omap_dev_ready()
232 writel(ECCCLEAR | ECCRESULTREG1, &gpmc_cfg->ecc_control); in omap_enable_hwecc()
235 writel(ecc_size_config_val, &gpmc_cfg->ecc_size_config); in omap_enable_hwecc()
245 writel(ecc_config_val, &gpmc_cfg->ecc_config); in omap_enable_hwecc()
273 val = readl(&gpmc_cfg->ecc1_result); in omap_calculate_ecc()
282 ptr = &gpmc_cfg->bch_result_0_3[0].bch_result_x[3]; in omap_calculate_ecc()
296 val = readl(&gpmc_cfg->bch_result_4_6[0].bch_result_x[2]); in omap_calculate_ecc()
299 val = readl(&gpmc_cfg->bch_result_4_6[0].bch_result_x[1]); in omap_calculate_ecc()
304 val = readl(&gpmc_cfg->bch_result_4_6[0].bch_result_x[0]); in omap_calculate_ecc()
310 val = readl(&gpmc_cfg->bch_result_0_3[0].bch_result_x[j] in omap_calculate_ecc()
367 if (readl(&gpmc_cfg->prefetch_control)) in omap_prefetch_enable()
371 writel(count, &gpmc_cfg->prefetch_config2); in omap_prefetch_enable()
375 writel(val, &gpmc_cfg->prefetch_config1); in omap_prefetch_enable()
378 writel(1, &gpmc_cfg->prefetch_control); in omap_prefetch_enable()
388 writel(0, &gpmc_cfg->prefetch_control); in omap_prefetch_reset()
389 writel(0, &gpmc_cfg->prefetch_config1); in omap_prefetch_reset()
405 cnt = readl(&gpmc_cfg->prefetch_status); in __read_prefetch_aligned()
977 if ((readl(&gpmc_cfg->cs[cs].config1) & 0xC00) == 0x800) { in board_nand_init()
989 gpmc_config = readl(&gpmc_cfg->config); in board_nand_init()
992 writel(gpmc_config, &gpmc_cfg->config); in board_nand_init()
994 nand->IO_ADDR_R = (void __iomem *)&gpmc_cfg->cs[cs].nand_dat; in board_nand_init()
995 nand->IO_ADDR_W = (void __iomem *)&gpmc_cfg->cs[cs].nand_cmd; in board_nand_init()
1006 gpmc_config = readl(&gpmc_cfg->cs[cs].config1); in board_nand_init()
1009 writel(gpmc_config | (0x1 << 12), &gpmc_cfg->cs[cs].config1); in board_nand_init()
1012 writel(gpmc_config & ~(0x1 << 12), &gpmc_cfg->cs[cs].config1); in board_nand_init()