/openbmc/linux/arch/powerpc/platforms/52xx/ |
H A D | mpc52xx_gpt.c | 8 * This file is a driver for the General Purpose Timer (gpt) devices 14 * This driver supports the GPIO and IRQ controller functions of the GPT 18 * this prevents the use of any gpt0 gpt function (i.e. they will fail with 19 * -EBUSY). Thus, the safety wdt function always has precedence over the gpt 25 * to the device tree node for the gpt device (typically in the .dts file 33 * be added to the device tree node for the gpt device: 38 * the IRQ number because the GPT only has a single IRQ source. For flags, 72 MODULE_DESCRIPTION("Freescale MPC52xx gpt driver"); 77 * struct mpc52xx_gpt - Private data structure for MPC52xx GPT driver 79 * @regs: virtual address of GPT registers [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/timer/ |
H A D | fsl,imxgpt.yaml | 7 title: Freescale i.MX General Purpose Timer (GPT) 15 - const: fsl,imx1-gpt 16 - const: fsl,imx21-gpt 18 - const: fsl,imx27-gpt 19 - const: fsl,imx21-gpt 20 - const: fsl,imx31-gpt 23 - fsl,imx25-gpt 24 - fsl,imx50-gpt 25 - fsl,imx51-gpt 26 - fsl,imx53-gpt [all …]
|
H A D | mediatek,mtk-timer.txt | 6 - GPT (General Purpose Timer) 13 For those SoCs that use GPT 14 * "mediatek,mt2701-timer" for MT2701 compatible timers (GPT) 15 * "mediatek,mt6580-timer" for MT6580 compatible timers (GPT) 16 * "mediatek,mt6582-timer" for MT6582 compatible timers (GPT) 17 * "mediatek,mt6589-timer" for MT6589 compatible timers (GPT) 18 * "mediatek,mt7623-timer" for MT7623 compatible timers (GPT) 19 * "mediatek,mt8127-timer" for MT8127 compatible timers (GPT) 20 * "mediatek,mt8135-timer" for MT8135 compatible timers (GPT) 21 * "mediatek,mt8173-timer" for MT8173 compatible timers (GPT) [all …]
|
/openbmc/linux/drivers/clk/spear/ |
H A D | clk-gpt-synth.c | 9 #define pr_fmt(fmt) "clk-gpt-synth: " fmt 24 * Calculates gpt synth clk rate for different values of mscale and nscale 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() [all …]
|
/openbmc/linux/block/partitions/ |
H A D | efi.c | 19 * AGPT, allow override with 'gpt' kernel command line option. 40 * - moved le_efi_guid_to_cpus() back into this file. GPT is the only 42 * - Changed gpt structure names and members to be simpler and more Linux-like. 64 * - Added kernel command line option 'gpt' to override valid PMBR test. 93 /* This allows a kernel command line option 'gpt' to override 104 __setup("gpt", force_gpt_fn); 145 /* set to 0x00000001 (i.e., the LBA of the GPT Partition Header) */ in pmbr_part_valid() 167 * marked out by up to three GPT partitions. 217 pr_debug("GPT: mbr size in lba (%u) different than whole disk (%u).\n", in is_pmbr_valid() 265 * @gpt: GPT header [all …]
|
/openbmc/u-boot/doc/ |
H A D | README.gpt | 13 - GPT (GUID Partition Table) - it is the EFI standard part 19 This document describes the GPT partition table format and usage of 20 the gpt command in u-boot. 25 GPT for marking disks/partitions is using the UUID. It is supposed to be a 42 GPT brief explanation: 51 LBA 1 |Primary GPT Header | Primary 52 -------------------------------------------------- GPT 69 -------------------------------------------------- GPT 75 LBA -1 |Backup GPT Header | 78 For a legacy reasons, GPT's LBA 0 sector has a MBR structure. It is called [all …]
|
/openbmc/u-boot/test/py/tests/ |
H A D | test_gpt.py | 5 # Test GPT manipulation commands. 17 """Disk Image used by the GPT tests.""" 76 """Test the gpt read command.""" 79 output = u_boot_console.run_command('gpt read host 0') 92 """Test the gpt verify command.""" 95 output = u_boot_console.run_command('gpt verify host 0') 96 assert 'Verify GPT: success!' in output 102 """Test the gpt guid command.""" 105 output = u_boot_console.run_command('gpt guid host 0') 112 """Test the gpt guid command to save GUID into a string.""" [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() 206 /* Disable interrupt in GPT module */ in mxc_shutdown() 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() 227 /* Disable interrupt in GPT module */ in mxc_set_oneshot() 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() [all …]
|
/openbmc/u-boot/disk/ |
H A D | part_efi.c | 84 /* Check the GPT header signature */ in validate_gpt_header() 110 * Check that the my_lba entry points to the LBA that contains the GPT in validate_gpt_header() 113 printf("GPT: my_lba incorrect: %llX != " LBAF "\n", in validate_gpt_header() 124 printf("GPT: first_usable_lba incorrect: %llX > " LBAF "\n", in validate_gpt_header() 129 printf("GPT: last_usable_lba incorrect: %llX > " LBAF "\n", in validate_gpt_header() 134 debug("GPT: first_usable_lba: %llX last_usable_lba: %llX last lba: " in validate_gpt_header() 166 /* recalculate the values for the Backup GPT Header */ in prepare_backup_gpt_header() 194 /* This function validates AND fills in the GPT header and PTE */ in get_disk_guid() 197 printf("%s: *** ERROR: Invalid GPT ***\n", __func__); in get_disk_guid() 200 printf("%s: *** ERROR: Invalid Backup GPT ***\n", in get_disk_guid() [all …]
|
H A D | Kconfig | 18 - CONFIG_EFI_PARTITION GPT partition table, common when EFI is the 74 bool "Enable EFI GPT partition table" 81 were partitioned using EFI GPT. 91 Specify the number of partition entries in the GPT. This is 94 middle of a regular GPT. 110 entries at the first possible LBA following the GPT header). 113 bool "Enable EFI GPT partition table for SPL"
|
/openbmc/qemu/include/hw/timer/ |
H A D | imx_gpt.h | 2 * i.MX GPT Timer 38 * GPT : General purpose timer 48 #define GPT_CR_EN (1 << 0) /* GPT Enable */ 49 #define GPT_CR_ENMOD (1 << 1) /* GPT Enable Mode */ 50 #define GPT_CR_DBGEN (1 << 2) /* GPT Debug mode enable */ 51 #define GPT_CR_WAITEN (1 << 3) /* GPT Wait Mode Enable */ 52 #define GPT_CR_DOZEN (1 << 4) /* GPT Doze mode enable */ 53 #define GPT_CR_STOPEN (1 << 5) /* GPT Stop Mode Enable */ 78 #define TYPE_IMX25_GPT "imx25.gpt" 79 #define TYPE_IMX31_GPT "imx31.gpt" [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | renesas,rzg2l-poeg.yaml | 7 title: Renesas RZ/G2L Port Output Enable for GPT (POEG) 13 The output pins(GTIOCxA and GTIOCxB) of the general PWM timer (GPT) can be 14 disabled by using the port output enabling function for the GPT (POEG). 17 * Output-disable request from the GPT. 21 are controlled by the GPT module. 46 renesas,gpt: 48 description: phandle to gpt instance that serves the pwm operation. 68 - renesas,gpt 85 renesas,gpt = <&gpt>;
|
/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/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/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/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/include/ |
H A D | part.h | 305 * @param gpt_h - pointer to GPT header representation 306 * @param gpt_e - pointer to GPT partition table entries 314 * gpt_fill_pte(): Fill the GPT partition table entry 317 * @param gpt_h - GPT header representation 318 * @param gpt_e - GPT partition table entries 329 * gpt_fill_header(): Fill the GPT header 332 * @param gpt_h - GPT header representation 342 * gpt_restore(): Restore GPT partition table 355 * is_valid_gpt_buf() - Ensure that the Primary GPT information is valid 358 * @param buf - buffer which contains the MBR and Primary GPT info [all …]
|
/openbmc/openbmc/poky/scripts/lib/wic/plugins/imager/ |
H A D | direct.py | 292 # Overhead of the GPT partitioning scheme 353 if self.ptable_format in ('gpt', 'gpt-hybrid'): 409 if part.mbr and self.ptable_format != 'gpt-hybrid': 411 "a gpt-hybrid partition table") 421 elif self.ptable_format in ("gpt", "gpt-hybrid"): 505 if self.ptable_format in ("gpt", "gpt-hybrid"): 543 if self.ptable_format in ('gpt', 'gpt-hybrid'): 556 "gpt" if self.ptable_format == "gpt-hybrid" else self.ptable_format, 562 if self.ptable_format == "gpt-hybrid": 615 if self.ptable_format == "gpt-hybrid" and part.mbr: [all …]
|
/openbmc/openbmc/meta-evb/meta-evb-arm/meta-evb-fvp-base/wic/ |
H A D | emmc-fvp.wks.in | 9 # |GPT| | env | boot-a | boot-b | rofs-a | rofs-b | rwfs | hostfw |GPT-sec| 15 # Primary GPT size (Beginning of image): 19 # Secondary GPT size (End of image): 22 bootloader --ptable gpt
|
/openbmc/openbmc/meta-nuvoton/wic/ |
H A D | emmc-nuvoton.wks.in | 9 # |GPT| | reserved | boot-a | boot-b | rofs-a | rofs-b | rwfs |GPT-sec| 15 # Primary GPT size (Beginning of image): 19 # Secondary GPT size (End of image): 22 bootloader --ptable gpt
|
/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 107 the watchdog. The timer will function as a GPT if the timer api is used, and 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 [all …]
|
/openbmc/openbmc/meta-aspeed/wic/ |
H A D | emmc-aspeed.wks.in | 9 # |GPT| | env | boot-a | boot-b | rofs-a | rofs-b | rwfs | hostfw |GPT-sec| 15 # Primary GPT size (Beginning of image): 19 # Secondary GPT size (End of image): 22 bootloader --ptable gpt
|
/openbmc/u-boot/drivers/fastboot/ |
H A D | Kconfig | 107 string "Target name for updating GPT" 109 default "gpt" 117 The default target name for updating GPT is "gpt". 135 partitions as required by the gpt command.
|
/openbmc/u-boot/cmd/ |
H A D | gpt.c | 3 * cmd_gpt.c -- GPT (GUID Partition Table) handling command 255 * create the string that upstream 'gpt write' command will accept as an 258 * From doc/README.gpt, Format of partitions layout: 690 * Uncomment the following line to print a string that 'gpt write' in do_rename_gpt_parts() 691 * or 'gpt verify' will accept as input. in do_rename_gpt_parts() 807 * do_gpt(): Perform GPT operations 843 printf("Writing GPT: "); in do_gpt() 847 printf("Verify GPT: "); in do_gpt() 870 U_BOOT_CMD(gpt, CONFIG_SYS_MAXARGS, 1, do_gpt, 874 " Restore or verify GPT information on a device connected\n" [all …]
|