From 99f3435a73ffe357381c0949af48242e6876005e Mon Sep 17 00:00:00 2001 From: "Kim, HeungJun" Date: Thu, 21 May 2009 19:50:57 +0900 Subject: [PATCH] [S5PC100] add other register for c code --- board/samsung/tt/tt.c | 2 +- include/s5pc1xx.h | 46 ++++++++++++++++++++++++++++------------------ 2 files changed, 29 insertions(+), 19 deletions(-) diff --git a/board/samsung/tt/tt.c b/board/samsung/tt/tt.c index 776ba88..1bb6a4d 100644 --- a/board/samsung/tt/tt.c +++ b/board/samsung/tt/tt.c @@ -29,7 +29,7 @@ */ #include -#include +#include static inline void delay(unsigned long loops) { diff --git a/include/s5pc1xx.h b/include/s5pc1xx.h index 4d8eb95..f11bbbb 100644 --- a/include/s5pc1xx.h +++ b/include/s5pc1xx.h @@ -187,24 +187,33 @@ /* * Clock control - Others */ -#define S5P_OTHERS_REG(x) (S5P_PA_CLK_OTHERS + (x)) - -#define S5P_SW_RST S5P_OTHERS_REG(0x0) -#define S5P_ONENAND_RST S5P_OTHERS_REG(0x8) - -#define S5P_GENERAL_CTRL S5P_OTHERS_REG(0x100) -#define S5P_GENERAL_STATUS S5P_OTHERS_REG(0x104) - -#define S5P_MEM_SYS_CFG S5P_OTHERS_REG(0x200) - -#define S5P_CAM_MUX_SEL S5P_OTHERS_REG(0x300) -#define S5P_MIXER_OUT_SEL S5P_OTHERS_REG(0x304) -#define S5P_LPMP3_MODE_SEL S5P_OTHERS_REG(0x308) - -#define S5P_MIPI_PHY_CON0 S5P_OTHERS_REG(0x400) -#define S5P_MIPI_PHY_CON1 S5P_OTHERS_REG(0x414) -#define S5P_HDMI_PHY_CON0 S5P_OTHERS_REG(0x420) - +#define S5P_OTHERS_REG_BASE(x) (S5P_PA_CLK_OTHERS + (x)) + +#define S5P_OTHERS S5P_OTHERS_REG_BASE(0x0) +#define S5P_SW_RST S5P_OTHERS_REG_BASE(0x0) +#define S5P_ONENAND_RST S5P_OTHERS_REG_BASE(0x8) +#define S5P_GENERAL_CTRL S5P_OTHERS_REG_BASE(0x100) +#define S5P_GENERAL_STATUS S5P_OTHERS_REG_BASE(0x104) +#define S5P_MEM_SYS_CFG S5P_OTHERS_REG_BASE(0x200) +#define S5P_CAM_MUX_SEL S5P_OTHERS_REG_BASE(0x300) +#define S5P_MIXER_OUT_SEL S5P_OTHERS_REG_BASE(0x304) +#define S5P_LPMP3_MODE_SEL S5P_OTHERS_REG_BASE(0x308) +#define S5P_MIPI_PHY_CON0 S5P_OTHERS_REG_BASE(0x400) +#define S5P_MIPI_PHY_CON1 S5P_OTHERS_REG_BASE(0x414) +#define S5P_HDMI_PHY_CON0 S5P_OTHERS_REG_BASE(0x420) + +#define S5P_OTHERS_REG __REG(S5P_OTHERS) +#define S5P_SW_RST_REG __REG(S5P_SW_RST) +#define S5P_ONENAND_RST_REG __REG(S5P_ONENAND_RST) +#define S5P_GENERAL_CTRL_REG __REG(S5P_GENERAL_CTRL) +#define S5P_GENERAL_STATUS_REG __REG(S5P_GENERAL_STATUS) +#define S5P_MEM_SYS_CFG_REG __REG(S5P_MEM_SYS_CFG) +#define S5P_CAM_MUX_SEL_REG __REG(S5P_CAM_MUX_SEL) +#define S5P_MIXER_OUT_SEL_REG __REG(S5P_MIXER_OUT_SEL) +#define S5P_LPMP3_MODE_SEL_REG __REG(S5P_LPMP3_MODE_SEL) +#define S5P_MIPI_PHY_CON0_REG __REG(S5P_MIPI_PHY_CON0) +#define S5P_MIPI_PHY_CON1_REG __REG(S5P_MIPI_PHY_CON1) +#define S5P_HDMI_PHY_CON0_REG __REG(S5P_HDMI_PHY_CON0) /* * GPIO @@ -1513,3 +1522,4 @@ + -- 2.7.4