/linux-4.4.14/drivers/pwm/ |
H A D | pwm-lpc32xx.c | 37 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 D | board.h | 2 * arm/arch/mach-lpc32xx/include/mach/board.h
|
H A D | entry-macro.S | 2 * arch/arm/mach-lpc32xx/include/mach/entry-macro.S
|
H A D | hardware.h | 2 * arch/arm/mach-lpc32xx/include/mach/hardware.h
|
H A D | uncompress.h | 2 * arch/arm/mach-lpc32xx/include/mach/uncompress.h
|
H A D | irqs.h | 2 * arch/arm/mach-lpc32xx/include/mach/irqs.h
|
H A D | platform.h | 2 * arch/arm/mach-lpc32xx/include/mach/platform.h
|
/linux-4.4.14/arch/arm/mach-lpc32xx/ |
H A D | clock.h | 2 * arch/arm/mach-lpc32xx/clock.h
|
H A D | common.h | 2 * arch/arm/mach-lpc32xx/common.h
|
H A D | serial.c | 2 * arch/arm/mach-lpc32xx/serial.c
|
H A D | timer.c | 2 * arch/arm/mach-lpc32xx/timer.c
|
H A D | common.c | 2 * arch/arm/mach-lpc32xx/common.c
|
H A D | pm.c | 2 * arch/arm/mach-lpc32xx/pm.c
|
H A D | suspend.S | 2 * arch/arm/mach-lpc32xx/suspend.S
|
H A D | irq.c | 2 * arch/arm/mach-lpc32xx/irq.c
|
H A D | phy3250.c | 39 #include <linux/platform_data/gpio-lpc32xx.h>
|
H A D | clock.c | 2 * arch/arm/mach-lpc32xx/clock.c
|
/linux-4.4.14/drivers/rtc/ |
H A D | rtc-lpc32xx.c | 50 #define RTC_NAME "rtc-lpc32xx" 392 MODULE_ALIAS("platform:rtc-lpc32xx");
|
H A D | Makefile | 78 obj-$(CONFIG_RTC_DRV_LPC32XX) += rtc-lpc32xx.o
|
/linux-4.4.14/drivers/staging/iio/adc/ |
H A D | lpc32xx_adc.c | 59 #define MOD_NAME "lpc32xx-adc"
|
/linux-4.4.14/drivers/input/touchscreen/ |
H A D | lpc32xx_ts.c | 66 #define MOD_NAME "ts-lpc32xx" 260 input->phys = "lpc32xx/input0"; lpc32xx_ts_probe()
|
/linux-4.4.14/drivers/gpio/ |
H A D | gpio-lpc32xx.c | 28 #include <linux/platform_data/gpio-lpc32xx.h> 571 .name = "lpc32xx-gpio",
|
/linux-4.4.14/drivers/input/keyboard/ |
H A D | lpc32xx-keys.c | 215 input->phys = "lpc32xx/input0"; lpc32xx_kscan_probe()
|
/linux-4.4.14/drivers/clocksource/ |
H A D | time-lpc32xx.c | 8 * mach-lpc32xx/timer.c Copyright (C) 2009 - 2010 NXP Semiconductors
|
/linux-4.4.14/arch/arm/ |
H A D | Makefile | 183 machine-$(CONFIG_ARCH_LPC32XX) += lpc32xx
|
/linux-4.4.14/drivers/mtd/nand/ |
H A D | lpc32xx_slc.c | 42 #define LPC32XX_MODNAME "lpc32xx-nand"
|