np = of_find_compatible_node(NULL, NULL, "fsl,mcu-mpc8349emitx"); if (!np) @@ -94,29 +92,14 @@ static int mcu_gpiochip_add(struct mcu *mcu) gc->direction_output = mcu_gpio_dir_out; gc->of_gpio_n_cells = 2; gc->of_xlate = of_gpio_simple_xlate; gc->of_node = np;...
chip = pwmchip_find_by_name(chosen->provider); /* * If the lookup entry specifies a module, load the module and retry * the PWM chip lookup. This can be used to work around driver load * ordering issues if driver's can't be made to properly support the * deferred probe mechanism....
staticintmax8973_probe(struct i2c_client *client,conststruct i2c_device_id *id){structmax8973_regulator_platform_data*pdata;structregulator_init_data*ridata;structregulator_configconfig= {};structregulator_dev*rdev;structmax8973_chip*max;boolpdata_from_dt =false;unsignedintchip_id;intret; pdata...
reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ }; }; &ehci1 { status = "okay"; }; /* The ANX6345 eDP-bridge is on i2c0. There is no linux (mainline) * driver for this chip at the moment, the bootloader initializes it. * However it can be accessed with the...
#include "irqs.h" /* PXA_NR_BUILTIN_GPIO */ /* TOSA Chip selects */ #define TOSA_LCDC_PHYS PXA_CS4_PHYS /* Internel Scoop */2 changes: 2 additions & 0 deletions 2 arch/arm/mach-pxa/include/mach/trizeps4.h Original file line numberDiff line numberDiff line change @@ -10,6...
irq_set_chip_and_handler_name(irq, &dmar_msi_type, handle_edge_irq, "edge"); return 0; irq = create_irq(); if (irq > 0) { irq_set_handler_data(irq, arg); irq_set_chip_and_handler_name(irq, &dmar_msi_type, handle_edge_irq, "edge"); msi_compose_msg(NULL, irq, &msg);...
irq = irq_find_mapping(domain, bit + (i * 32)); generic_handle_irq(irq); pending &= ~BIT(bit); } } return IRQ_HANDLED; } static void intc_irq_set_mask(struct irq_chip_generic *gc, uint32_t mask) { struct irq_chip_regs *regs = &gc->chip_types->regs; writel(mask, gc-...
static int mb86s70_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) { int irq, index; for (index = 0;; index++) { irq = platform_get_irq(to_platform_device(gc->parent), index); if (irq <= 0) break; if (irq_get_irq_data(irq)->hwirq == offset) return irq; } ret...
pwm->chip.base = -1; pwm->chip.npwm = 4; pwm->chip.can_sleep = true; pwm->chip.of_xlate = of_pwm_xlate_with_flags; pwm->chip.of_pwm_n_cells = 3; ret = pwmchip_add(&pwm->chip); if (ret < 0) { dev_err(&pdev->dev, "failed to add PWM chip: %d\n", ret); clk...
spin_unlock_irqrestore(&gchip->lock, flags); } static int mb86s70_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) { int irq, index; for (index = 0;; index++) { irq = platform_get_irq(to_platform_device(gc->parent), index); if (irq <= 0) break; if (irq_get_irq_...