diff options
author | Yong Zhi <a0132969@dirac.dal.design.ti.com> | 2010-02-04 15:54:09 -0600 |
---|---|---|
committer | Mayuresh Janorkar <mayur@ti.com> | 2010-02-11 19:14:28 +0530 |
commit | 8718cca6737cdc304bd68126ad12dbc2f805ad55 (patch) | |
tree | 586c81a704a805977d3f05df0fc270c99a79e441 | |
parent | 7dbbbff452a4dc9af0f56ca86984b8a8684f8ff3 (diff) |
OMAP4: DSS2 porting HDMI driver to L24.4 kernel
-rw-r--r-- | drivers/video/omap2/dss/hdmi.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index 154e186980dd..ebb6e0a52aae 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c @@ -31,10 +31,10 @@ #include <linux/delay.h> #include <linux/string.h> #include <linux/platform_device.h> -#include <mach/display.h> -#include <mach/cpu.h> -#include <mach/hdmi_lib.h> -#include <mach/gpio.h> +#include <plat/display.h> +#include <plat/cpu.h> +#include <plat/hdmi_lib.h> +#include <plat/gpio.h> #include "dss.h" #include "hdmi.h" @@ -132,8 +132,6 @@ static inline u32 hdmi_read_reg(u32 base, u16 idx) return l; } -#define FLD_MASK(start, end) (((1 << (start - end + 1)) - 1) << (end)) -#define FLD_VAL(val, start, end) (((val) << end) & FLD_MASK(start, end)) #define FLD_GET(val, start, end) (((val) & FLD_MASK(start, end)) >> (end)) #define FLD_MOD(orig, val, start, end) \ (((orig) & ~FLD_MASK(start, end)) | FLD_VAL(val, start, end)) @@ -239,8 +237,7 @@ static int hdmi_pll_init(int refsel, int dcofreq, struct hdmi_pll_info *fmt, u16 /* divider programming for 1080p */ REG_FLD_MOD(pll, PLLCTRL_CFG3, sd, 17, 10); r = FLD_MOD(r, 0x4, 3, 1); /* 1000MHz and 2000MHz */ - } - else + } else r = FLD_MOD(r, 0x2, 3, 1); /* 500MHz and 1000MHz */ hdmi_write_reg(pll, PLLCTRL_CFG2, r); |