Commit | Line | Data |
---|---|---|
6011bdea GL |
1 | /* |
2 | * SH-Mobile High-Definition Multimedia Interface (HDMI) | |
3 | * | |
4 | * Copyright (C) 2010, Guennadi Liakhovetski <g.liakhovetski@gmx.de> | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2 as | |
8 | * published by the Free Software Foundation. | |
9 | */ | |
10 | ||
11 | #ifndef SH_MOBILE_HDMI_H | |
12 | #define SH_MOBILE_HDMI_H | |
13 | ||
14 | struct sh_mobile_lcdc_chan_cfg; | |
15 | struct device; | |
c36940e6 | 16 | struct clk; |
6011bdea | 17 | |
6d865771 KM |
18 | /* |
19 | * flags format | |
20 | * | |
e0defc86 | 21 | * 0x000000BA |
6d865771 KM |
22 | * |
23 | * A: Audio source select | |
e0defc86 | 24 | * B: Int output option |
6d865771 KM |
25 | */ |
26 | ||
27 | /* Audio source select */ | |
dec6aa49 KM |
28 | #define HDMI_SND_SRC_MASK (0xF << 0) |
29 | #define HDMI_SND_SRC_I2S (0 << 0) /* default */ | |
30 | #define HDMI_SND_SRC_SPDIF (1 << 0) | |
31 | #define HDMI_SND_SRC_DSD (2 << 0) | |
32 | #define HDMI_SND_SRC_HBR (3 << 0) | |
6d865771 | 33 | |
e0defc86 KM |
34 | /* Int output option */ |
35 | #define HDMI_OUTPUT_PUSH_PULL (1 << 4) /* System control : output mode */ | |
36 | #define HDMI_OUTPUT_POLARITY_HI (1 << 5) /* System control : output polarity */ | |
37 | ||
38 | ||
6011bdea | 39 | struct sh_mobile_hdmi_info { |
6d865771 | 40 | unsigned int flags; |
c36940e6 GL |
41 | long (*clk_optimize_parent)(unsigned long target, unsigned long *best_freq, |
42 | unsigned long *parent_freq); | |
6011bdea GL |
43 | }; |
44 | ||
45 | #endif |