#ifndef __DTS_MARVELL_PXA910_CLOCK_H #define __DTS_MARVELL_PXA910_CLOCK_H /* fixed clocks and plls */ #define PXA910_CLK_CLK32 1 #define PXA910_CLK_VCTCXO 2 #define PXA910_CLK_PLL1 3 #define PXA910_CLK_PLL1_2 8 #define PXA910_CLK_PLL1_4 9 #define PXA910_CLK_PLL1_8 10 #define PXA910_CLK_PLL1_16 11 #define PXA910_CLK_PLL1_6 12 #define PXA910_CLK_PLL1_12 13 #define PXA910_CLK_PLL1_24 14 #define PXA910_CLK_PLL1_48 15 #define PXA910_CLK_PLL1_96 16 #define PXA910_CLK_PLL1_13 17 #define PXA910_CLK_PLL1_13_1_5 18 #define PXA910_CLK_PLL1_2_1_5 19 #define PXA910_CLK_PLL1_3_16 20 #define PXA910_CLK_PLL1_192 21 #define PXA910_CLK_UART_PLL 27 #define PXA910_CLK_USB_PLL 28 /* apb periphrals */ #define PXA910_CLK_TWSI0 60 #define PXA910_CLK_TWSI1 61 #define PXA910_CLK_TWSI2 62 #define PXA910_CLK_TWSI3 63 #define PXA910_CLK_GPIO 64 #define PXA910_CLK_KPC 65 #define PXA910_CLK_RTC 66 #define PXA910_CLK_PWM0 67 #define PXA910_CLK_PWM1 68 #define PXA910_CLK_PWM2 69 #define PXA910_CLK_PWM3 70 #define PXA910_CLK_UART0 71 #define PXA910_CLK_UART1 72 #define PXA910_CLK_UART2 73 #define PXA910_CLK_SSP0 74 #define PXA910_CLK_SSP1 75 #define PXA910_CLK_TIMER0 76 #define PXA910_CLK_TIMER1 77 /* axi periphrals */ #define PXA910_CLK_DFC 100 #define PXA910_CLK_SDH0 101 #define PXA910_CLK_SDH1 102 #define PXA910_CLK_SDH2 103 #define PXA910_CLK_USB 104 #define PXA910_CLK_SPH 105 #define PXA910_CLK_DISP0 106 #define PXA910_CLK_CCIC0 107 #define PXA910_CLK_CCIC0_PHY 108 #define PXA910_CLK_CCIC0_SPHY 109 #define PXA910_NR_CLKS 200 #endif t.git/'>summaryrefslogtreecommitdiff
path: root/include/dt-bindings/clock/mt8173-clk.h
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2016-11-10 17:21:29 +0800
committerMark Brown <broonie@kernel.org>2016-11-11 15:38:08 +0000
commit09f2ba0b0b7c44ecea49cf69a708203b76ba5535 (patch)
tree042df33ac99f77d8b86ac427431e267c33561c35 /include/dt-bindings/clock/mt8173-clk.h
parent1001354ca34179f3db924eb66672442a173147dc (diff)
regulator: gpio: properly check return value of of_get_named_gpio
The function of_get_named_gpio() could return -ENOENT, -EPROBE_DEFER -EINVAL and so on. Currently, for the optional property "enable-gpio", we only check -EPROBE_DEFER, this is not enough since there may be misconfigured "enable-gpio" in the DTB, of_get_named_gpio() will return -EINVAL in this case, we should return immediately here. And for the optional property "gpios", we didn't check the return value, the driver will continue to the point where gpio_request_array() is called, it doesn't make sense to continue if we got -EPROBE_DEFER or -EINVAL here. This patch tries to address these two issues by properly checking the return value of of_get_named_gpio. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/dt-bindings/clock/mt8173-clk.h')