Guennadi Liakhovetski | 6011bde | 2010-07-21 10:13:21 +0000 | [diff] [blame] | 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; |
Guennadi Liakhovetski | c36940e | 2010-11-02 11:27:16 +0000 | [diff] [blame] | 16 | struct clk; |
Guennadi Liakhovetski | 6011bde | 2010-07-21 10:13:21 +0000 | [diff] [blame] | 17 | |
Kuninori Morimoto | 6d86577 | 2010-08-31 14:46:41 +0900 | [diff] [blame] | 18 | /* |
| 19 | * flags format |
| 20 | * |
Kuninori Morimoto | db6668d | 2012-05-07 21:07:49 -0700 | [diff] [blame] | 21 | * 0x00000CBA |
Kuninori Morimoto | 6d86577 | 2010-08-31 14:46:41 +0900 | [diff] [blame] | 22 | * |
| 23 | * A: Audio source select |
Kuninori Morimoto | e0defc8 | 2012-05-07 21:07:20 -0700 | [diff] [blame] | 24 | * B: Int output option |
Kuninori Morimoto | db6668d | 2012-05-07 21:07:49 -0700 | [diff] [blame] | 25 | * C: Chip specific option |
Kuninori Morimoto | 6d86577 | 2010-08-31 14:46:41 +0900 | [diff] [blame] | 26 | */ |
| 27 | |
| 28 | /* Audio source select */ |
Kuninori Morimoto | dec6aa4 | 2010-09-09 11:48:01 +0900 | [diff] [blame] | 29 | #define HDMI_SND_SRC_MASK (0xF << 0) |
| 30 | #define HDMI_SND_SRC_I2S (0 << 0) /* default */ |
| 31 | #define HDMI_SND_SRC_SPDIF (1 << 0) |
| 32 | #define HDMI_SND_SRC_DSD (2 << 0) |
| 33 | #define HDMI_SND_SRC_HBR (3 << 0) |
Kuninori Morimoto | 6d86577 | 2010-08-31 14:46:41 +0900 | [diff] [blame] | 34 | |
Kuninori Morimoto | e0defc8 | 2012-05-07 21:07:20 -0700 | [diff] [blame] | 35 | /* Int output option */ |
| 36 | #define HDMI_OUTPUT_PUSH_PULL (1 << 4) /* System control : output mode */ |
| 37 | #define HDMI_OUTPUT_POLARITY_HI (1 << 5) /* System control : output polarity */ |
| 38 | |
Kuninori Morimoto | db6668d | 2012-05-07 21:07:49 -0700 | [diff] [blame] | 39 | /* Chip specific option */ |
| 40 | #define HDMI_32BIT_REG (1 << 8) |
Kuninori Morimoto | c932b27 | 2012-05-07 21:08:17 -0700 | [diff] [blame] | 41 | #define HDMI_HAS_HTOP1 (1 << 9) |
Kuninori Morimoto | e0defc8 | 2012-05-07 21:07:20 -0700 | [diff] [blame] | 42 | |
Guennadi Liakhovetski | 6011bde | 2010-07-21 10:13:21 +0000 | [diff] [blame] | 43 | struct sh_mobile_hdmi_info { |
Kuninori Morimoto | 6d86577 | 2010-08-31 14:46:41 +0900 | [diff] [blame] | 44 | unsigned int flags; |
Guennadi Liakhovetski | c36940e | 2010-11-02 11:27:16 +0000 | [diff] [blame] | 45 | long (*clk_optimize_parent)(unsigned long target, unsigned long *best_freq, |
| 46 | unsigned long *parent_freq); |
Guennadi Liakhovetski | 6011bde | 2010-07-21 10:13:21 +0000 | [diff] [blame] | 47 | }; |
| 48 | |
| 49 | #endif |