Searched refs:lpc32xx (Results 1 - 26 of 26) sorted by relevance

/linux-4.4.14/drivers/pwm/
H A Dpwm-lpc32xx.c37 struct lpc32xx_pwm_chip *lpc32xx = to_lpc32xx_pwm_chip(chip); lpc32xx_pwm_config() local
42 c = clk_get_rate(lpc32xx->clk) / 256; lpc32xx_pwm_config()
72 val = readl(lpc32xx->base + (pwm->hwpwm << 2)); lpc32xx_pwm_config()
75 writel(val, lpc32xx->base + (pwm->hwpwm << 2)); lpc32xx_pwm_config()
82 struct lpc32xx_pwm_chip *lpc32xx = to_lpc32xx_pwm_chip(chip); lpc32xx_pwm_enable() local
86 ret = clk_enable(lpc32xx->clk); lpc32xx_pwm_enable()
90 val = readl(lpc32xx->base + (pwm->hwpwm << 2)); lpc32xx_pwm_enable()
92 writel(val, lpc32xx->base + (pwm->hwpwm << 2)); lpc32xx_pwm_enable()
99 struct lpc32xx_pwm_chip *lpc32xx = to_lpc32xx_pwm_chip(chip); lpc32xx_pwm_disable() local
102 val = readl(lpc32xx->base + (pwm->hwpwm << 2)); lpc32xx_pwm_disable()
104 writel(val, lpc32xx->base + (pwm->hwpwm << 2)); lpc32xx_pwm_disable()
106 clk_disable(lpc32xx->clk); lpc32xx_pwm_disable()
118 struct lpc32xx_pwm_chip *lpc32xx; lpc32xx_pwm_probe() local
122 lpc32xx = devm_kzalloc(&pdev->dev, sizeof(*lpc32xx), GFP_KERNEL); lpc32xx_pwm_probe()
123 if (!lpc32xx) lpc32xx_pwm_probe()
127 lpc32xx->base = devm_ioremap_resource(&pdev->dev, res); lpc32xx_pwm_probe()
128 if (IS_ERR(lpc32xx->base)) lpc32xx_pwm_probe()
129 return PTR_ERR(lpc32xx->base); lpc32xx_pwm_probe()
131 lpc32xx->clk = devm_clk_get(&pdev->dev, NULL); lpc32xx_pwm_probe()
132 if (IS_ERR(lpc32xx->clk)) lpc32xx_pwm_probe()
133 return PTR_ERR(lpc32xx->clk); lpc32xx_pwm_probe()
135 lpc32xx->chip.dev = &pdev->dev; lpc32xx_pwm_probe()
136 lpc32xx->chip.ops = &lpc32xx_pwm_ops; lpc32xx_pwm_probe()
137 lpc32xx->chip.npwm = 2; lpc32xx_pwm_probe()
138 lpc32xx->chip.base = -1; lpc32xx_pwm_probe()
140 ret = pwmchip_add(&lpc32xx->chip); lpc32xx_pwm_probe()
146 platform_set_drvdata(pdev, lpc32xx); lpc32xx_pwm_probe()
153 struct lpc32xx_pwm_chip *lpc32xx = platform_get_drvdata(pdev); lpc32xx_pwm_remove() local
156 for (i = 0; i < lpc32xx->chip.npwm; i++) lpc32xx_pwm_remove()
157 pwm_disable(&lpc32xx->chip.pwms[i]); lpc32xx_pwm_remove()
159 return pwmchip_remove(&lpc32xx->chip); lpc32xx_pwm_remove()
170 .name = "lpc32xx-pwm",
178 MODULE_ALIAS("platform:lpc32xx-pwm");
/linux-4.4.14/arch/arm/mach-lpc32xx/include/mach/
H A Dboard.h2 * arm/arch/mach-lpc32xx/include/mach/board.h
H A Dentry-macro.S2 * arch/arm/mach-lpc32xx/include/mach/entry-macro.S
H A Dhardware.h2 * arch/arm/mach-lpc32xx/include/mach/hardware.h
H A Duncompress.h2 * arch/arm/mach-lpc32xx/include/mach/uncompress.h
H A Dirqs.h2 * arch/arm/mach-lpc32xx/include/mach/irqs.h
H A Dplatform.h2 * arch/arm/mach-lpc32xx/include/mach/platform.h
/linux-4.4.14/arch/arm/mach-lpc32xx/
H A Dclock.h2 * arch/arm/mach-lpc32xx/clock.h
H A Dcommon.h2 * arch/arm/mach-lpc32xx/common.h
H A Dserial.c2 * arch/arm/mach-lpc32xx/serial.c
H A Dtimer.c2 * arch/arm/mach-lpc32xx/timer.c
H A Dcommon.c2 * arch/arm/mach-lpc32xx/common.c
H A Dpm.c2 * arch/arm/mach-lpc32xx/pm.c
H A Dsuspend.S2 * arch/arm/mach-lpc32xx/suspend.S
H A Dirq.c2 * arch/arm/mach-lpc32xx/irq.c
H A Dphy3250.c39 #include <linux/platform_data/gpio-lpc32xx.h>
H A Dclock.c2 * arch/arm/mach-lpc32xx/clock.c
/linux-4.4.14/drivers/rtc/
H A Drtc-lpc32xx.c50 #define RTC_NAME "rtc-lpc32xx"
392 MODULE_ALIAS("platform:rtc-lpc32xx");
H A DMakefile78 obj-$(CONFIG_RTC_DRV_LPC32XX) += rtc-lpc32xx.o
/linux-4.4.14/drivers/staging/iio/adc/
H A Dlpc32xx_adc.c59 #define MOD_NAME "lpc32xx-adc"
/linux-4.4.14/drivers/input/touchscreen/
H A Dlpc32xx_ts.c66 #define MOD_NAME "ts-lpc32xx"
260 input->phys = "lpc32xx/input0"; lpc32xx_ts_probe()
/linux-4.4.14/drivers/gpio/
H A Dgpio-lpc32xx.c28 #include <linux/platform_data/gpio-lpc32xx.h>
571 .name = "lpc32xx-gpio",
/linux-4.4.14/drivers/input/keyboard/
H A Dlpc32xx-keys.c215 input->phys = "lpc32xx/input0"; lpc32xx_kscan_probe()
/linux-4.4.14/drivers/clocksource/
H A Dtime-lpc32xx.c8 * mach-lpc32xx/timer.c Copyright (C) 2009 - 2010 NXP Semiconductors
/linux-4.4.14/arch/arm/
H A DMakefile183 machine-$(CONFIG_ARCH_LPC32XX) += lpc32xx
/linux-4.4.14/drivers/mtd/nand/
H A Dlpc32xx_slc.c42 #define LPC32XX_MODNAME "lpc32xx-nand"

Completed in 726 milliseconds