| Index: arch/arm/mach-s5pv210/include/mach/regs-hdmi_clock.h
|
| diff --git a/arch/arm/mach-s5pv210/include/mach/regs-hdmi_clock.h b/arch/arm/mach-s5pv210/include/mach/regs-hdmi_clock.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9a102fa8c572231e31bb1fb407d875414834bb04
|
| --- /dev/null
|
| +++ b/arch/arm/mach-s5pv210/include/mach/regs-hdmi_clock.h
|
| @@ -0,0 +1,87 @@
|
| +/* linux/arch/arm/mach-s5pv210/include/mach/regs-hdmi_clock.h
|
| +*
|
| +* Copyright (c) 2010 Samsung Electronics Co., Ltd.
|
| +* http://www.samsung.com/
|
| +*
|
| +* S5PV210 - Clock Other header file for Samsung TVOut driver
|
| +*
|
| +* This program is free software; you can redistribute it and/or modify
|
| +* it under the terms of the GNU General Public License version 2 as
|
| +* published by the Free Software Foundation.
|
| +*/
|
| +
|
| +#ifndef __ASM_ARCH_REGS_HMDI_CLK_H
|
| +#define __ASM_ARCH_REGS_HDMI_CLK_H __FILE__
|
| +
|
| +#include <mach/map.h>
|
| +
|
| +#define S5P_CLK_OTHER_BASE(x) (x)
|
| +
|
| +#define S5P_CLK_OTHER_SWRESET S5P_CLK_OTHER_BASE(0x0000)
|
| +#define S5P_CLK_OTHER_ONENAND_SWRESET S5P_CLK_OTHER_BASE(0x0008)
|
| +#define S5P_CLK_OTHER_GENERAL_CTRL S5P_CLK_OTHER_BASE(0x0100)
|
| +#define S5P_CLK_OTHER_GENERAL_STATUS S5P_CLK_OTHER_BASE(0x0104)
|
| +#define S5P_CLK_OTHER_MEM_SYS_CFG S5P_CLK_OTHER_BASE(0x0200)
|
| +#define S5P_CLK_OTHER_CAM_MUX_SEL S5P_CLK_OTHER_BASE(0x0300)
|
| +#define S5P_CLK_OTHER_MIXER_OUT_SEL S5P_CLK_OTHER_BASE(0x0304)
|
| +#define S5P_CLK_OTHER_LPMP3_MODE_SEL S5P_CLK_OTHER_BASE(0x0308)
|
| +#define S5P_CLK_OTHER_MIPI_PHY_CON0 S5P_CLK_OTHER_BASE(0x0400)
|
| +#define S5P_CLK_OTHER_MIPI_PHY_CON1 S5P_CLK_OTHER_BASE(0x0414)
|
| +#define S5P_CLK_OTHER_HDMI_PHY_CON0 S5P_CLK_OTHER_BASE(0x0420)
|
| +
|
| +/* VPLL_LOCK */
|
| +#define VPLL_LOCKTIME(x) (0xffff&x)
|
| +
|
| +/* VPLL_CON */
|
| +#define VPLL_ENABLE (1<<31)
|
| +#define VPLL_DISABLE (0<<31)
|
| +#define VPLL_LOCKED(x) ((1<<29)&x)
|
| +#define VCO_FREQ_SEL (1<<27)
|
| +#define MDIV(x) ((0xff&x)<<16)
|
| +#define PDIV(x) ((0x3f&x)<<8)
|
| +#define SDIV(x) (0x7&x)
|
| +
|
| +/* CLK_SRC0 */
|
| +#define HREF_SEL_FIN_27M (0<<20)
|
| +#define HREF_SEL_SRCLK (1<<20)
|
| +#define HREF_SEL_MASK (~(1<<20))
|
| +#define VPLL_SEL_CLK27M (0<<12)
|
| +#define VPLL_SEL_FOUT_VPLL (1<<12)
|
| +#define VPLL_SEL_MASK (~(1<<12))
|
| +
|
| +/* CLK_SRC2 */
|
| +#define VMIXER_SEL_MOUT_VPLL (1<<4)
|
| +#define VMIXER_SEL_MASK (~(1<<4))
|
| +#define HDMI_SEL_HDMIPHY (1<<0)
|
| +#define HDMI_SEL_MASK (~(1<<0))
|
| +
|
| +/* CLK_DIV3 */
|
| +#define HDMI_DIV_RATIO(x) (0xf&(x))
|
| +#define HDMI_DIV_RATIO_MASK (~(0xf))
|
| +
|
| +/* CLK_GATE_D1_2 */
|
| +#define CLK_HCLK_HDMI_PASS (1<<11)
|
| +#define CLK_HCLK_SDOUT_PASS (1<<10)
|
| +#define CLK_HCLK_VMIXER_PASS (1<<9)
|
| +#define CLK_HCLK_VP_PASS (1<<8)
|
| +#define CLK_HCLK_MASK (~0xf)
|
| +
|
| +/* CLK_GATE_D1_4 */
|
| +#define CLK_PCLK_IIC_HDMI_PASS (1<<5)
|
| +#define CLK_PCLK_IIC_HDMI_MASK (~(1<<5))
|
| +
|
| +/* CLK_GATE_SCLK_1 */
|
| +#define CLK_SCLK_HDMI_PASS (1<<19)
|
| +#define CLK_SCLK_VMIXER_PASS (1<<20)
|
| +#define CLK_SCLK_VDAC54_PASS (1<<21)
|
| +#define CLK_SCLK_TV54_PASS (1<<22)
|
| +#define CLK_SCLK_HDMI_MASK (~(1<<19))
|
| +#define CLK_SCLK_VMIXER_MASK (~(1<<20))
|
| +#define CLK_SCLK_VDAC54_MASK (~(1<<21))
|
| +#define CLK_SCLK_TV54_MASK (~(1<<22))
|
| +
|
| +/* MIXER_OUT_SEL */
|
| +#define VMIXER_OUT_SEL_SDOUT (0)
|
| +#define VMIXER_OUT_SEL_HDMI (1)
|
| +
|
| +#endif /*__ASM_ARCH_REGS_HDMI_CLK_H */
|
|
|