Patchwork [U-Boot,07/11,v3] Exynos: Add peripherial id for pwm

login
register
mail settings
Submitter Akshay Saraswat
Date April 1, 2013, 4:42 a.m.
Message ID <1364791344-31103-1-git-send-email-akshay.s@samsung.com>
Download mbox | patch
Permalink /patch/232667/
State Accepted
Delegated to: Minkyu Kang
Headers show

Comments

Akshay Saraswat - April 1, 2013, 4:42 a.m.
From: Padmavathi Venna <padma.v@samsung.com>

Add peripherial id for pwm inorder to support
generic api to get the clk frequency

Test with command "sf probe 1:0; time sf read 40008000 0 1000".
Try with different numbers of bytes and see that sane values are obtained
Build and boot U-boot with this patch, backlight works properly.

Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
---
Changes since v2:
        - Added "Acked-by: Simon Glass".

Changes since v1:
        - None.

 arch/arm/include/asm/arch-exynos/periph.h | 5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/arch/arm/include/asm/arch-exynos/periph.h b/arch/arm/include/asm/arch-exynos/periph.h
index 89bcdfc..e5aed4b 100644
--- a/arch/arm/include/asm/arch-exynos/periph.h
+++ b/arch/arm/include/asm/arch-exynos/periph.h
@@ -61,6 +61,11 @@  enum periph_id {
 	PERIPH_ID_SPI3,
 	PERIPH_ID_SPI4,
 	PERIPH_ID_SDMMC4,
+	PERIPH_ID_PWM0,
+	PERIPH_ID_PWM1,
+	PERIPH_ID_PWM2,
+	PERIPH_ID_PWM3,
+	PERIPH_ID_PWM4,
 
 	PERIPH_ID_COUNT,
 	PERIPH_ID_NONE = -1,