提交 58652163 编写于 作者: J Jyri Sarha 提交者: Tomi Valkeinen

OMAPDSS: hdmi_wp: Add function for getting audio dma address

The audio dma port is found in the hdmi_wp physical address space.
Signed-off-by: NJyri Sarha <jsarha@ti.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 a42808c7
...@@ -232,6 +232,7 @@ struct hdmi_core_audio_config { ...@@ -232,6 +232,7 @@ struct hdmi_core_audio_config {
struct hdmi_wp_data { struct hdmi_wp_data {
void __iomem *base; void __iomem *base;
phys_addr_t phys_base;
}; };
struct hdmi_pll_data { struct hdmi_pll_data {
...@@ -301,6 +302,7 @@ void hdmi_wp_video_config_timing(struct hdmi_wp_data *wp, ...@@ -301,6 +302,7 @@ void hdmi_wp_video_config_timing(struct hdmi_wp_data *wp,
void hdmi_wp_init_vid_fmt_timings(struct hdmi_video_format *video_fmt, void hdmi_wp_init_vid_fmt_timings(struct hdmi_video_format *video_fmt,
struct omap_video_timings *timings, struct hdmi_config *param); struct omap_video_timings *timings, struct hdmi_config *param);
int hdmi_wp_init(struct platform_device *pdev, struct hdmi_wp_data *wp); int hdmi_wp_init(struct platform_device *pdev, struct hdmi_wp_data *wp);
phys_addr_t hdmi_wp_get_audio_dma_addr(struct hdmi_wp_data *wp);
/* HDMI PLL funcs */ /* HDMI PLL funcs */
void hdmi_pll_dump(struct hdmi_pll_data *pll, struct seq_file *s); void hdmi_pll_dump(struct hdmi_pll_data *pll, struct seq_file *s);
......
...@@ -249,6 +249,7 @@ int hdmi_wp_init(struct platform_device *pdev, struct hdmi_wp_data *wp) ...@@ -249,6 +249,7 @@ int hdmi_wp_init(struct platform_device *pdev, struct hdmi_wp_data *wp)
DSSERR("can't get WP mem resource\n"); DSSERR("can't get WP mem resource\n");
return -EINVAL; return -EINVAL;
} }
wp->phys_base = res->start;
wp->base = devm_ioremap_resource(&pdev->dev, res); wp->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(wp->base)) { if (IS_ERR(wp->base)) {
...@@ -258,3 +259,8 @@ int hdmi_wp_init(struct platform_device *pdev, struct hdmi_wp_data *wp) ...@@ -258,3 +259,8 @@ int hdmi_wp_init(struct platform_device *pdev, struct hdmi_wp_data *wp)
return 0; return 0;
} }
phys_addr_t hdmi_wp_get_audio_dma_addr(struct hdmi_wp_data *wp)
{
return wp->phys_base + HDMI_WP_AUDIO_DATA;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册