/openbmc/linux/arch/powerpc/platforms/52xx/ |
H A D | mpc52xx_gpt.c | 139 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); in mpc52xx_gpt_irq_unmask() local 142 raw_spin_lock_irqsave(&gpt->lock, flags); in mpc52xx_gpt_irq_unmask() 143 setbits32(&gpt->regs->mode, MPC52xx_GPT_MODE_IRQ_EN); in mpc52xx_gpt_irq_unmask() 144 raw_spin_unlock_irqrestore(&gpt->lock, flags); in mpc52xx_gpt_irq_unmask() 149 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); in mpc52xx_gpt_irq_mask() local 152 raw_spin_lock_irqsave(&gpt->lock, flags); in mpc52xx_gpt_irq_mask() 153 clrbits32(&gpt->regs->mode, MPC52xx_GPT_MODE_IRQ_EN); in mpc52xx_gpt_irq_mask() 154 raw_spin_unlock_irqrestore(&gpt->lock, flags); in mpc52xx_gpt_irq_mask() 159 struct mpc52xx_gpt_priv *gpt = irq_data_get_irq_chip_data(d); in mpc52xx_gpt_irq_ack() local 161 out_be32(&gpt->regs->status, MPC52xx_GPT_STATUS_IRQMASK); in mpc52xx_gpt_irq_ack() [all …]
|
H A D | Kconfig | 20 gpt nodes, then it is safe to use such gpt to reset the board,
|
/openbmc/linux/drivers/clk/spear/ |
H A D | clk-gpt-synth.c | 34 struct clk_gpt *gpt = to_clk_gpt(hw); in gpt_calc_rate() local 35 struct gpt_rate_tbl *rtbl = gpt->rtbl; in gpt_calc_rate() 45 struct clk_gpt *gpt = to_clk_gpt(hw); in clk_gpt_round_rate() local 49 gpt->rtbl_cnt, &unused); in clk_gpt_round_rate() 55 struct clk_gpt *gpt = to_clk_gpt(hw); in clk_gpt_recalc_rate() local 59 if (gpt->lock) in clk_gpt_recalc_rate() 60 spin_lock_irqsave(gpt->lock, flags); in clk_gpt_recalc_rate() 62 val = readl_relaxed(gpt->reg); in clk_gpt_recalc_rate() 64 if (gpt->lock) in clk_gpt_recalc_rate() 65 spin_unlock_irqrestore(gpt->lock, flags); in clk_gpt_recalc_rate() [all …]
|
/openbmc/linux/block/partitions/ |
H A D | efi.c | 272 gpt_header *gpt) in alloc_read_gpt_entries() argument 277 if (!gpt) in alloc_read_gpt_entries() 280 count = (size_t)le32_to_cpu(gpt->num_partition_entries) * in alloc_read_gpt_entries() 281 le32_to_cpu(gpt->sizeof_partition_entry); in alloc_read_gpt_entries() 288 if (read_lba(state, le64_to_cpu(gpt->partition_entry_lba), in alloc_read_gpt_entries() 309 gpt_header *gpt; in alloc_read_gpt_header() local 312 gpt = kmalloc(ssz, GFP_KERNEL); in alloc_read_gpt_header() 313 if (!gpt) in alloc_read_gpt_header() 316 if (read_lba(state, lba, (u8 *) gpt, ssz) < ssz) { in alloc_read_gpt_header() 317 kfree(gpt); in alloc_read_gpt_header() [all …]
|
/openbmc/u-boot/arch/arm/cpu/arm926ejs/mx25/ |
H A D | timer.c | 31 struct gpt_regs *gpt = (struct gpt_regs *)IMX_GPT1_BASE; in timer_init() local 35 writel(GPT_CTRL_SWR, &gpt->ctrl); in timer_init() 40 writel(0, &gpt->ctrl); /* We have no udelay by now */ in timer_init() 41 writel(0, &gpt->pre); /* prescaler = 1 */ in timer_init() 43 writel(readl(&gpt->ctrl) | GPT_CTRL_CLKSOURCE_32 | GPT_CTRL_FRR, in timer_init() 44 &gpt->ctrl); in timer_init() 45 writel(readl(&gpt->ctrl) | GPT_CTRL_TEN, &gpt->ctrl); in timer_init()
|
/openbmc/u-boot/arch/arm/cpu/arm1136/mx35/ |
H A D | timer.c | 27 struct gpt_regs *gpt = (struct gpt_regs *)GPT1_BASE_ADDR; in timer_init() local 31 writel(GPTCR_SWR, &gpt->ctrl); in timer_init() 36 writel(0, &gpt->ctrl); /* We have no udelay by now */ in timer_init() 37 writel(0, &gpt->pre); /* prescaler = 1 */ in timer_init() 39 writel(readl(&gpt->ctrl) | GPTCR_CLKSOURCE_32 | GPTCR_FRR, in timer_init() 40 &gpt->ctrl); in timer_init() 41 writel(readl(&gpt->ctrl) | GPTCR_TEN, &gpt->ctrl); in timer_init()
|
/openbmc/qemu/hw/ppc/ |
H A D | ppc405_uc.c | 502 static int ppc4xx_gpt_compare(Ppc405GptState *gpt, int n) in ppc4xx_gpt_compare() argument 508 static void ppc4xx_gpt_set_output(Ppc405GptState *gpt, int n, int level) in ppc4xx_gpt_set_output() argument 513 static void ppc4xx_gpt_set_outputs(Ppc405GptState *gpt) in ppc4xx_gpt_set_outputs() argument 520 if (gpt->oe & mask) { in ppc4xx_gpt_set_outputs() 522 if (ppc4xx_gpt_compare(gpt, i)) { in ppc4xx_gpt_set_outputs() 524 ppc4xx_gpt_set_output(gpt, i, gpt->ol & mask); in ppc4xx_gpt_set_outputs() 527 ppc4xx_gpt_set_output(gpt, i, gpt->ol & mask ? 0 : 1); in ppc4xx_gpt_set_outputs() 534 static void ppc4xx_gpt_set_irqs(Ppc405GptState *gpt) in ppc4xx_gpt_set_irqs() argument 541 if (gpt->is & gpt->im & mask) { in ppc4xx_gpt_set_irqs() 542 qemu_irq_raise(gpt->irqs[i]); in ppc4xx_gpt_set_irqs() [all …]
|
/openbmc/linux/drivers/clocksource/ |
H A D | timer-imx-gpt.c | 73 const struct imx_gpt_data *gpt; member 155 void __iomem *reg = imxtm->base + imxtm->gpt->reg_tcn; in mxc_clocksource_init() 207 imxtm->gpt->gpt_irq_disable(imxtm); in mxc_shutdown() 209 tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn); in mxc_shutdown() 211 writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp); in mxc_shutdown() 214 imxtm->gpt->gpt_irq_acknowledge(imxtm); in mxc_shutdown() 228 imxtm->gpt->gpt_irq_disable(imxtm); in mxc_set_oneshot() 231 u32 tcn = readl_relaxed(imxtm->base + imxtm->gpt->reg_tcn); in mxc_set_oneshot() 233 writel_relaxed(tcn - 3, imxtm->base + imxtm->gpt->reg_tcmp); in mxc_set_oneshot() 236 imxtm->gpt->gpt_irq_acknowledge(imxtm); in mxc_set_oneshot() [all …]
|
/openbmc/linux/arch/powerpc/boot/dts/ |
H A D | mpc5200b.dtsi | 64 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; 72 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; 79 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; 86 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; 93 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; 100 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; 107 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; 114 compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
|
H A D | lite5200.dts | 63 compatible = "fsl,mpc5200-gpt"; 70 compatible = "fsl,mpc5200-gpt"; 76 compatible = "fsl,mpc5200-gpt"; 82 compatible = "fsl,mpc5200-gpt"; 88 compatible = "fsl,mpc5200-gpt"; 94 compatible = "fsl,mpc5200-gpt"; 100 compatible = "fsl,mpc5200-gpt"; 106 compatible = "fsl,mpc5200-gpt";
|
/openbmc/u-boot/doc/ |
H A D | README.gpt | 20 the gpt command in u-boot. 172 the generated UUID. The 'gpt guid' command reads the current value of the 185 gpt write mmc 0 $partitions 193 gpt verify mmc 0 [$partitions] 208 U-BOOT> gpt verify mmc 0 $partitions 215 communicate about software updates and boot failure. The 'gpt guid', 216 'gpt read', 'gpt rename' and 'gpt swap' commands facilitate 221 U-BOOT> gpt swap mmc 0 primary backup 228 U-BOOT> gpt rename mmc 0 1 primary 235 => gpt read host 0 [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx27.dtsi | 110 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt"; 119 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt"; 128 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt"; 387 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt"; 396 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt"; 447 compatible = "fsl,imx27-gpt", "fsl,imx21-gpt";
|
H A D | imxrt1050.dtsi | 152 gpt: timer@401ec000 { label 153 compatible = "fsl,imxrt1050-gpt", "fsl,imx6dl-gpt", "fsl,imx6sl-gpt";
|
H A D | imx25.dtsi | 355 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt"; 363 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt"; 371 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt"; 379 compatible = "fsl,imx25-gpt", "fsl,imx31-gpt";
|
/openbmc/qemu/hw/arm/ |
H A D | fsl-imx31.c | 46 object_initialize_child(obj, "gpt", &s->gpt, TYPE_IMX31_GPT); in fsl_imx31_init() 108 s->gpt.ccm = IMX_CCM(&s->ccm); in fsl_imx31_realize() 110 if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpt), errp)) { in fsl_imx31_realize() 114 sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpt), 0, FSL_IMX31_GPT_ADDR); in fsl_imx31_realize() 115 sysbus_connect_irq(SYS_BUS_DEVICE(&s->gpt), 0, in fsl_imx31_realize()
|
H A D | fsl-imx25.c | 51 object_initialize_child(obj, "gpt[*]", &s->gpt[i], TYPE_IMX25_GPT); in fsl_imx25_init() 140 s->gpt[i].ccm = IMX_CCM(&s->ccm); in fsl_imx25_realize() 142 if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpt[i]), errp)) { in fsl_imx25_realize() 145 sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpt[i]), 0, gpt_table[i].addr); in fsl_imx25_realize() 146 sysbus_connect_irq(SYS_BUS_DEVICE(&s->gpt[i]), 0, in fsl_imx25_realize()
|
H A D | fsl-imx6.c | 65 object_initialize_child(obj, "gpt", &s->gpt, TYPE_IMX6_GPT); in fsl_imx6_init() 200 s->gpt.ccm = IMX_CCM(&s->ccm); in fsl_imx6_realize() 202 if (!sysbus_realize(SYS_BUS_DEVICE(&s->gpt), errp)) { in fsl_imx6_realize() 206 sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpt), 0, FSL_IMX6_GPT_ADDR); in fsl_imx6_realize() 207 sysbus_connect_irq(SYS_BUS_DEVICE(&s->gpt), 0, in fsl_imx6_realize()
|
H A D | fsl-imx7.c | 68 object_initialize_child(obj, name, &s->gpt[i], TYPE_IMX7_GPT); in fsl_imx7_init() 252 s->gpt[i].ccm = IMX_CCM(&s->ccm); in fsl_imx7_realize() 253 sysbus_realize(SYS_BUS_DEVICE(&s->gpt[i]), &error_abort); in fsl_imx7_realize() 254 sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpt[i]), 0, FSL_IMX7_GPTn_ADDR[i]); in fsl_imx7_realize() 255 sysbus_connect_irq(SYS_BUS_DEVICE(&s->gpt[i]), 0, in fsl_imx7_realize()
|
H A D | fsl-imx6ul.c | 80 object_initialize_child(obj, name, &s->gpt[i], TYPE_IMX6UL_GPT); in fsl_imx6ul_init() 240 s->gpt[i].ccm = IMX_CCM(&s->ccm); in fsl_imx6ul_realize() 241 sysbus_realize(SYS_BUS_DEVICE(&s->gpt[i]), &error_abort); in fsl_imx6ul_realize() 243 sysbus_mmio_map(SYS_BUS_DEVICE(&s->gpt[i]), 0, in fsl_imx6ul_realize() 246 sysbus_connect_irq(SYS_BUS_DEVICE(&s->gpt[i]), 0, in fsl_imx6ul_realize()
|
/openbmc/linux/drivers/gpu/drm/i915/gvt/ |
H A D | trace.h | 191 TP_PROTO(int id, const char *tag, int page_id, void *gpt, int type), 193 TP_ARGS(id, tag, page_id, gpt, type), 202 id, tag, page_id, gpt, type); 209 TP_PROTO(int id, int page_id, void *gpt, int type, u64 v, 212 TP_ARGS(id, page_id, gpt, type, v, index), 221 id, page_id, gpt, type, v, index);
|
/openbmc/linux/Documentation/devicetree/bindings/powerpc/fsl/ |
H A D | mpc5200.txt | 84 timer@<addr> fsl,mpc5200-gpt General purpose timers 102 fsl,mpc5200-gpt nodes 109 mode has priority over the gpt mode, i.e. if the watchdog is activated, any 110 gpt api call to this timer will fail with -EBUSY. 114 GPT0 will be marked as in-use watchdog, i.e. blocking every gpt access to it. 117 - just mark GPT0 as watchdog, blocking gpt accesses, and configure it later; 123 An mpc5200-gpt can be used as a single line GPIO controller. To do so, 124 add the following properties to the gpt node: 131 An mpc5200-gpt can be used as a single line edge sensitive interrupt 132 controller. To do so, add the following properties to the gpt node:
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/u-boot/u-boot/corstone1000/ |
H A D | 0025-corstone1000-add-nvmxip-fwu-mdata-and-gpt-options.patch | 4 Subject: [PATCH] corstone1000: add nvmxip, fwu-mdata and gpt options 7 gpt. Commands to print the partition info, gpt info
|
/openbmc/linux/arch/powerpc/include/asm/ |
H A D | mpc52xx.h | 283 extern int mpc52xx_gpt_start_timer(struct mpc52xx_gpt_priv *gpt, u64 period, 285 extern u64 mpc52xx_gpt_timer_period(struct mpc52xx_gpt_priv *gpt); 286 extern int mpc52xx_gpt_stop_timer(struct mpc52xx_gpt_priv *gpt);
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | imx7s.dtsi | 470 gpt1: gpt@302d0000 { 471 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt"; 479 gpt2: gpt@302e0000 { 480 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt"; 489 gpt3: gpt@302f0000 { 490 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt"; 499 gpt4: gpt@30300000 { 500 compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt";
|
/openbmc/u-boot/drivers/fastboot/ |
H A D | Kconfig | 109 default "gpt" 117 The default target name for updating GPT is "gpt". 135 partitions as required by the gpt command.
|