Lines Matching refs:kbc
46 struct kbc_tegra *kbc; /* tegra keyboard controller */ member
79 kp_ent = readl(&priv->kbc->kp_ent[i / 4]); in tegra_kbc_find_keys()
144 fifo_cnt = (readl(&priv->kbc->interrupt) >> 4) & 0xf; in check_for_keys()
193 static void config_kbc_gpio(struct tegra_kbd_priv *priv, struct kbc_tegra *kbc) in config_kbc_gpio() argument
206 row_cfg = readl(&kbc->row_cfg[r_offs]); in config_kbc_gpio()
207 col_cfg = readl(&kbc->col_cfg[c_offs]); in config_kbc_gpio()
219 writel(row_cfg, &kbc->row_cfg[r_offs]); in config_kbc_gpio()
220 writel(col_cfg, &kbc->col_cfg[c_offs]); in config_kbc_gpio()
229 struct kbc_tegra *kbc = priv->kbc; in tegra_kbc_open() local
238 writel(scan_period * KBC_CLOCK_KHZ, &kbc->rpt_dly); in tegra_kbc_open()
239 writel(scan_period * KBC_CLOCK_KHZ, &kbc->init_dly); in tegra_kbc_open()
249 writel(val, &kbc->control); in tegra_kbc_open()
264 config_kbc_gpio(priv, priv->kbc); in tegra_kbd_start()
292 priv->kbc = (struct kbc_tegra *)devfdt_get_addr(dev); in tegra_kbd_probe()
293 if ((fdt_addr_t)priv->kbc == FDT_ADDR_T_NONE) { in tegra_kbd_probe()