Lines Matching defs:pm_cfg
498 static void plat_marvell_power_off_gpio(struct power_off_method *pm_cfg,
510 assert((pm_cfg->cfg.gpio.pin_count < PMIC_GPIO_MAX_NUMBER) &&
511 (pm_cfg->cfg.gpio.step_count < PMIC_GPIO_MAX_TOGGLE_STEP));
514 for (gpio = 0; gpio < pm_cfg->cfg.gpio.pin_count; gpio++) {
515 info = &pm_cfg->cfg.gpio.info[gpio];
532 mdelay(pm_cfg->cfg.gpio.delay_ms);
537 for (idx = 0; idx < pm_cfg->cfg.gpio.step_count; idx++) {
538 tog_bits = pm_cfg->cfg.gpio.seq[idx];
543 info = &pm_cfg->cfg.gpio.info[0];
548 for (gpio = 0; gpio < pm_cfg->cfg.gpio.pin_count; gpio++) {
549 shift = pm_cfg->cfg.gpio.info[gpio].gpio_index % 32;
559 if (idx < pm_cfg->cfg.gpio.step_count - 1) {
562 mdelay(pm_cfg->cfg.gpio.delay_ms);
576 static void plat_marvell_power_off_prepare(struct power_off_method *pm_cfg,
579 switch (pm_cfg->type) {
581 plat_marvell_power_off_gpio(pm_cfg, addr, data);
738 struct power_off_method *pm_cfg;
748 pm_cfg = (struct power_off_method *)plat_marvell_get_pm_cfg();
751 plat_marvell_power_off_prepare(pm_cfg, &gpio_addr, &gpio_data);