sun4i_hdmi_enc.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. /*
  2. * Copyright (C) 2016 Maxime Ripard
  3. *
  4. * Maxime Ripard <maxime.ripard@free-electrons.com>
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation; either version 2 of
  9. * the License, or (at your option) any later version.
  10. */
  11. #include <drm/drmP.h>
  12. #include <drm/drm_atomic_helper.h>
  13. #include <drm/drm_crtc_helper.h>
  14. #include <drm/drm_edid.h>
  15. #include <drm/drm_encoder.h>
  16. #include <drm/drm_of.h>
  17. #include <drm/drm_panel.h>
  18. #include <linux/clk.h>
  19. #include <linux/component.h>
  20. #include <linux/iopoll.h>
  21. #include <linux/platform_device.h>
  22. #include <linux/pm_runtime.h>
  23. #include "sun4i_backend.h"
  24. #include "sun4i_crtc.h"
  25. #include "sun4i_drv.h"
  26. #include "sun4i_hdmi.h"
  27. #include "sun4i_tcon.h"
  28. #define DDC_SEGMENT_ADDR 0x30
  29. static inline struct sun4i_hdmi *
  30. drm_encoder_to_sun4i_hdmi(struct drm_encoder *encoder)
  31. {
  32. return container_of(encoder, struct sun4i_hdmi,
  33. encoder);
  34. }
  35. static inline struct sun4i_hdmi *
  36. drm_connector_to_sun4i_hdmi(struct drm_connector *connector)
  37. {
  38. return container_of(connector, struct sun4i_hdmi,
  39. connector);
  40. }
  41. static int sun4i_hdmi_setup_avi_infoframes(struct sun4i_hdmi *hdmi,
  42. struct drm_display_mode *mode)
  43. {
  44. struct hdmi_avi_infoframe frame;
  45. u8 buffer[17];
  46. int i, ret;
  47. ret = drm_hdmi_avi_infoframe_from_display_mode(&frame, mode, false);
  48. if (ret < 0) {
  49. DRM_ERROR("Failed to get infoframes from mode\n");
  50. return ret;
  51. }
  52. ret = hdmi_avi_infoframe_pack(&frame, buffer, sizeof(buffer));
  53. if (ret < 0) {
  54. DRM_ERROR("Failed to pack infoframes\n");
  55. return ret;
  56. }
  57. for (i = 0; i < sizeof(buffer); i++)
  58. writeb(buffer[i], hdmi->base + SUN4I_HDMI_AVI_INFOFRAME_REG(i));
  59. return 0;
  60. }
  61. static int sun4i_hdmi_atomic_check(struct drm_encoder *encoder,
  62. struct drm_crtc_state *crtc_state,
  63. struct drm_connector_state *conn_state)
  64. {
  65. struct drm_display_mode *mode = &crtc_state->mode;
  66. if (mode->flags & DRM_MODE_FLAG_DBLCLK)
  67. return -EINVAL;
  68. return 0;
  69. }
  70. static void sun4i_hdmi_disable(struct drm_encoder *encoder)
  71. {
  72. struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder);
  73. struct sun4i_crtc *crtc = drm_crtc_to_sun4i_crtc(encoder->crtc);
  74. struct sun4i_tcon *tcon = crtc->tcon;
  75. u32 val;
  76. DRM_DEBUG_DRIVER("Disabling the HDMI Output\n");
  77. val = readl(hdmi->base + SUN4I_HDMI_VID_CTRL_REG);
  78. val &= ~SUN4I_HDMI_VID_CTRL_ENABLE;
  79. writel(val, hdmi->base + SUN4I_HDMI_VID_CTRL_REG);
  80. sun4i_tcon_channel_disable(tcon, 1);
  81. }
  82. static void sun4i_hdmi_enable(struct drm_encoder *encoder)
  83. {
  84. struct drm_display_mode *mode = &encoder->crtc->state->adjusted_mode;
  85. struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder);
  86. struct sun4i_crtc *crtc = drm_crtc_to_sun4i_crtc(encoder->crtc);
  87. struct sun4i_tcon *tcon = crtc->tcon;
  88. u32 val = 0;
  89. DRM_DEBUG_DRIVER("Enabling the HDMI Output\n");
  90. sun4i_tcon_channel_enable(tcon, 1);
  91. sun4i_hdmi_setup_avi_infoframes(hdmi, mode);
  92. val |= SUN4I_HDMI_PKT_CTRL_TYPE(0, SUN4I_HDMI_PKT_AVI);
  93. val |= SUN4I_HDMI_PKT_CTRL_TYPE(1, SUN4I_HDMI_PKT_END);
  94. writel(val, hdmi->base + SUN4I_HDMI_PKT_CTRL_REG(0));
  95. val = SUN4I_HDMI_VID_CTRL_ENABLE;
  96. if (hdmi->hdmi_monitor)
  97. val |= SUN4I_HDMI_VID_CTRL_HDMI_MODE;
  98. writel(val, hdmi->base + SUN4I_HDMI_VID_CTRL_REG);
  99. }
  100. static void sun4i_hdmi_mode_set(struct drm_encoder *encoder,
  101. struct drm_display_mode *mode,
  102. struct drm_display_mode *adjusted_mode)
  103. {
  104. struct sun4i_hdmi *hdmi = drm_encoder_to_sun4i_hdmi(encoder);
  105. struct sun4i_crtc *crtc = drm_crtc_to_sun4i_crtc(encoder->crtc);
  106. struct sun4i_tcon *tcon = crtc->tcon;
  107. unsigned int x, y;
  108. u32 val;
  109. sun4i_tcon1_mode_set(tcon, mode);
  110. sun4i_tcon_set_mux(tcon, 1, encoder);
  111. clk_set_rate(tcon->sclk1, mode->crtc_clock * 1000);
  112. clk_set_rate(hdmi->mod_clk, mode->crtc_clock * 1000);
  113. clk_set_rate(hdmi->tmds_clk, mode->crtc_clock * 1000);
  114. /* Set input sync enable */
  115. writel(SUN4I_HDMI_UNKNOWN_INPUT_SYNC,
  116. hdmi->base + SUN4I_HDMI_UNKNOWN_REG);
  117. /* Setup timing registers */
  118. writel(SUN4I_HDMI_VID_TIMING_X(mode->hdisplay) |
  119. SUN4I_HDMI_VID_TIMING_Y(mode->vdisplay),
  120. hdmi->base + SUN4I_HDMI_VID_TIMING_ACT_REG);
  121. x = mode->htotal - mode->hsync_start;
  122. y = mode->vtotal - mode->vsync_start;
  123. writel(SUN4I_HDMI_VID_TIMING_X(x) | SUN4I_HDMI_VID_TIMING_Y(y),
  124. hdmi->base + SUN4I_HDMI_VID_TIMING_BP_REG);
  125. x = mode->hsync_start - mode->hdisplay;
  126. y = mode->vsync_start - mode->vdisplay;
  127. writel(SUN4I_HDMI_VID_TIMING_X(x) | SUN4I_HDMI_VID_TIMING_Y(y),
  128. hdmi->base + SUN4I_HDMI_VID_TIMING_FP_REG);
  129. x = mode->hsync_end - mode->hsync_start;
  130. y = mode->vsync_end - mode->vsync_start;
  131. writel(SUN4I_HDMI_VID_TIMING_X(x) | SUN4I_HDMI_VID_TIMING_Y(y),
  132. hdmi->base + SUN4I_HDMI_VID_TIMING_SPW_REG);
  133. val = SUN4I_HDMI_VID_TIMING_POL_TX_CLK;
  134. if (mode->flags & DRM_MODE_FLAG_PHSYNC)
  135. val |= SUN4I_HDMI_VID_TIMING_POL_HSYNC;
  136. if (mode->flags & DRM_MODE_FLAG_PVSYNC)
  137. val |= SUN4I_HDMI_VID_TIMING_POL_VSYNC;
  138. writel(val, hdmi->base + SUN4I_HDMI_VID_TIMING_POL_REG);
  139. }
  140. static const struct drm_encoder_helper_funcs sun4i_hdmi_helper_funcs = {
  141. .atomic_check = sun4i_hdmi_atomic_check,
  142. .disable = sun4i_hdmi_disable,
  143. .enable = sun4i_hdmi_enable,
  144. .mode_set = sun4i_hdmi_mode_set,
  145. };
  146. static const struct drm_encoder_funcs sun4i_hdmi_funcs = {
  147. .destroy = drm_encoder_cleanup,
  148. };
  149. static int sun4i_hdmi_read_sub_block(struct sun4i_hdmi *hdmi,
  150. unsigned int blk, unsigned int offset,
  151. u8 *buf, unsigned int count)
  152. {
  153. unsigned long reg;
  154. int i;
  155. reg = readl(hdmi->base + SUN4I_HDMI_DDC_CTRL_REG);
  156. reg &= ~SUN4I_HDMI_DDC_CTRL_FIFO_DIR_MASK;
  157. writel(reg | SUN4I_HDMI_DDC_CTRL_FIFO_DIR_READ,
  158. hdmi->base + SUN4I_HDMI_DDC_CTRL_REG);
  159. writel(SUN4I_HDMI_DDC_ADDR_SEGMENT(offset >> 8) |
  160. SUN4I_HDMI_DDC_ADDR_EDDC(DDC_SEGMENT_ADDR << 1) |
  161. SUN4I_HDMI_DDC_ADDR_OFFSET(offset) |
  162. SUN4I_HDMI_DDC_ADDR_SLAVE(DDC_ADDR),
  163. hdmi->base + SUN4I_HDMI_DDC_ADDR_REG);
  164. reg = readl(hdmi->base + SUN4I_HDMI_DDC_FIFO_CTRL_REG);
  165. writel(reg | SUN4I_HDMI_DDC_FIFO_CTRL_CLEAR,
  166. hdmi->base + SUN4I_HDMI_DDC_FIFO_CTRL_REG);
  167. writel(count, hdmi->base + SUN4I_HDMI_DDC_BYTE_COUNT_REG);
  168. writel(SUN4I_HDMI_DDC_CMD_EXPLICIT_EDDC_READ,
  169. hdmi->base + SUN4I_HDMI_DDC_CMD_REG);
  170. reg = readl(hdmi->base + SUN4I_HDMI_DDC_CTRL_REG);
  171. writel(reg | SUN4I_HDMI_DDC_CTRL_START_CMD,
  172. hdmi->base + SUN4I_HDMI_DDC_CTRL_REG);
  173. if (readl_poll_timeout(hdmi->base + SUN4I_HDMI_DDC_CTRL_REG, reg,
  174. !(reg & SUN4I_HDMI_DDC_CTRL_START_CMD),
  175. 100, 100000))
  176. return -EIO;
  177. for (i = 0; i < count; i++)
  178. buf[i] = readb(hdmi->base + SUN4I_HDMI_DDC_FIFO_DATA_REG);
  179. return 0;
  180. }
  181. static int sun4i_hdmi_read_edid_block(void *data, u8 *buf, unsigned int blk,
  182. size_t length)
  183. {
  184. struct sun4i_hdmi *hdmi = data;
  185. int retry = 2, i;
  186. do {
  187. for (i = 0; i < length; i += SUN4I_HDMI_DDC_FIFO_SIZE) {
  188. unsigned char offset = blk * EDID_LENGTH + i;
  189. unsigned int count = min((unsigned int)SUN4I_HDMI_DDC_FIFO_SIZE,
  190. length - i);
  191. int ret;
  192. ret = sun4i_hdmi_read_sub_block(hdmi, blk, offset,
  193. buf + i, count);
  194. if (ret)
  195. return ret;
  196. }
  197. } while (!drm_edid_block_valid(buf, blk, true, NULL) && (retry--));
  198. return 0;
  199. }
  200. static int sun4i_hdmi_get_modes(struct drm_connector *connector)
  201. {
  202. struct sun4i_hdmi *hdmi = drm_connector_to_sun4i_hdmi(connector);
  203. unsigned long reg;
  204. struct edid *edid;
  205. int ret;
  206. /* Reset i2c controller */
  207. writel(SUN4I_HDMI_DDC_CTRL_ENABLE | SUN4I_HDMI_DDC_CTRL_RESET,
  208. hdmi->base + SUN4I_HDMI_DDC_CTRL_REG);
  209. if (readl_poll_timeout(hdmi->base + SUN4I_HDMI_DDC_CTRL_REG, reg,
  210. !(reg & SUN4I_HDMI_DDC_CTRL_RESET),
  211. 100, 2000))
  212. return -EIO;
  213. writel(SUN4I_HDMI_DDC_LINE_CTRL_SDA_ENABLE |
  214. SUN4I_HDMI_DDC_LINE_CTRL_SCL_ENABLE,
  215. hdmi->base + SUN4I_HDMI_DDC_LINE_CTRL_REG);
  216. clk_prepare_enable(hdmi->ddc_clk);
  217. clk_set_rate(hdmi->ddc_clk, 100000);
  218. edid = drm_do_get_edid(connector, sun4i_hdmi_read_edid_block, hdmi);
  219. if (!edid)
  220. return 0;
  221. hdmi->hdmi_monitor = drm_detect_hdmi_monitor(edid);
  222. DRM_DEBUG_DRIVER("Monitor is %s monitor\n",
  223. hdmi->hdmi_monitor ? "an HDMI" : "a DVI");
  224. drm_mode_connector_update_edid_property(connector, edid);
  225. ret = drm_add_edid_modes(connector, edid);
  226. kfree(edid);
  227. clk_disable_unprepare(hdmi->ddc_clk);
  228. return ret;
  229. }
  230. static const struct drm_connector_helper_funcs sun4i_hdmi_connector_helper_funcs = {
  231. .get_modes = sun4i_hdmi_get_modes,
  232. };
  233. static enum drm_connector_status
  234. sun4i_hdmi_connector_detect(struct drm_connector *connector, bool force)
  235. {
  236. struct sun4i_hdmi *hdmi = drm_connector_to_sun4i_hdmi(connector);
  237. unsigned long reg;
  238. if (readl_poll_timeout(hdmi->base + SUN4I_HDMI_HPD_REG, reg,
  239. reg & SUN4I_HDMI_HPD_HIGH,
  240. 0, 500000))
  241. return connector_status_disconnected;
  242. return connector_status_connected;
  243. }
  244. static const struct drm_connector_funcs sun4i_hdmi_connector_funcs = {
  245. .detect = sun4i_hdmi_connector_detect,
  246. .fill_modes = drm_helper_probe_single_connector_modes,
  247. .destroy = drm_connector_cleanup,
  248. .reset = drm_atomic_helper_connector_reset,
  249. .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
  250. .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
  251. };
  252. static int sun4i_hdmi_bind(struct device *dev, struct device *master,
  253. void *data)
  254. {
  255. struct platform_device *pdev = to_platform_device(dev);
  256. struct drm_device *drm = data;
  257. struct sun4i_drv *drv = drm->dev_private;
  258. struct sun4i_hdmi *hdmi;
  259. struct resource *res;
  260. u32 reg;
  261. int ret;
  262. hdmi = devm_kzalloc(dev, sizeof(*hdmi), GFP_KERNEL);
  263. if (!hdmi)
  264. return -ENOMEM;
  265. dev_set_drvdata(dev, hdmi);
  266. hdmi->dev = dev;
  267. hdmi->drv = drv;
  268. res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  269. hdmi->base = devm_ioremap_resource(dev, res);
  270. if (IS_ERR(hdmi->base)) {
  271. dev_err(dev, "Couldn't map the HDMI encoder registers\n");
  272. return PTR_ERR(hdmi->base);
  273. }
  274. hdmi->bus_clk = devm_clk_get(dev, "ahb");
  275. if (IS_ERR(hdmi->bus_clk)) {
  276. dev_err(dev, "Couldn't get the HDMI bus clock\n");
  277. return PTR_ERR(hdmi->bus_clk);
  278. }
  279. clk_prepare_enable(hdmi->bus_clk);
  280. hdmi->mod_clk = devm_clk_get(dev, "mod");
  281. if (IS_ERR(hdmi->mod_clk)) {
  282. dev_err(dev, "Couldn't get the HDMI mod clock\n");
  283. return PTR_ERR(hdmi->mod_clk);
  284. }
  285. clk_prepare_enable(hdmi->mod_clk);
  286. hdmi->pll0_clk = devm_clk_get(dev, "pll-0");
  287. if (IS_ERR(hdmi->pll0_clk)) {
  288. dev_err(dev, "Couldn't get the HDMI PLL 0 clock\n");
  289. return PTR_ERR(hdmi->pll0_clk);
  290. }
  291. hdmi->pll1_clk = devm_clk_get(dev, "pll-1");
  292. if (IS_ERR(hdmi->pll1_clk)) {
  293. dev_err(dev, "Couldn't get the HDMI PLL 1 clock\n");
  294. return PTR_ERR(hdmi->pll1_clk);
  295. }
  296. ret = sun4i_tmds_create(hdmi);
  297. if (ret) {
  298. dev_err(dev, "Couldn't create the TMDS clock\n");
  299. return ret;
  300. }
  301. writel(SUN4I_HDMI_CTRL_ENABLE, hdmi->base + SUN4I_HDMI_CTRL_REG);
  302. writel(SUN4I_HDMI_PAD_CTRL0_TXEN | SUN4I_HDMI_PAD_CTRL0_CKEN |
  303. SUN4I_HDMI_PAD_CTRL0_PWENG | SUN4I_HDMI_PAD_CTRL0_PWEND |
  304. SUN4I_HDMI_PAD_CTRL0_PWENC | SUN4I_HDMI_PAD_CTRL0_LDODEN |
  305. SUN4I_HDMI_PAD_CTRL0_LDOCEN | SUN4I_HDMI_PAD_CTRL0_BIASEN,
  306. hdmi->base + SUN4I_HDMI_PAD_CTRL0_REG);
  307. /*
  308. * We can't just initialize the register there, we need to
  309. * protect the clock bits that have already been read out and
  310. * cached by the clock framework.
  311. */
  312. reg = readl(hdmi->base + SUN4I_HDMI_PAD_CTRL1_REG);
  313. reg &= SUN4I_HDMI_PAD_CTRL1_HALVE_CLK;
  314. reg |= SUN4I_HDMI_PAD_CTRL1_REG_AMP(6) |
  315. SUN4I_HDMI_PAD_CTRL1_REG_EMP(2) |
  316. SUN4I_HDMI_PAD_CTRL1_REG_DENCK |
  317. SUN4I_HDMI_PAD_CTRL1_REG_DEN |
  318. SUN4I_HDMI_PAD_CTRL1_EMPCK_OPT |
  319. SUN4I_HDMI_PAD_CTRL1_EMP_OPT |
  320. SUN4I_HDMI_PAD_CTRL1_AMPCK_OPT |
  321. SUN4I_HDMI_PAD_CTRL1_AMP_OPT;
  322. writel(reg, hdmi->base + SUN4I_HDMI_PAD_CTRL1_REG);
  323. reg = readl(hdmi->base + SUN4I_HDMI_PLL_CTRL_REG);
  324. reg &= SUN4I_HDMI_PLL_CTRL_DIV_MASK;
  325. reg |= SUN4I_HDMI_PLL_CTRL_VCO_S(8) | SUN4I_HDMI_PLL_CTRL_CS(7) |
  326. SUN4I_HDMI_PLL_CTRL_CP_S(15) | SUN4I_HDMI_PLL_CTRL_S(7) |
  327. SUN4I_HDMI_PLL_CTRL_VCO_GAIN(4) | SUN4I_HDMI_PLL_CTRL_SDIV2 |
  328. SUN4I_HDMI_PLL_CTRL_LDO2_EN | SUN4I_HDMI_PLL_CTRL_LDO1_EN |
  329. SUN4I_HDMI_PLL_CTRL_HV_IS_33 | SUN4I_HDMI_PLL_CTRL_BWS |
  330. SUN4I_HDMI_PLL_CTRL_PLL_EN;
  331. writel(reg, hdmi->base + SUN4I_HDMI_PLL_CTRL_REG);
  332. ret = sun4i_ddc_create(hdmi, hdmi->tmds_clk);
  333. if (ret) {
  334. dev_err(dev, "Couldn't create the DDC clock\n");
  335. return ret;
  336. }
  337. drm_encoder_helper_add(&hdmi->encoder,
  338. &sun4i_hdmi_helper_funcs);
  339. ret = drm_encoder_init(drm,
  340. &hdmi->encoder,
  341. &sun4i_hdmi_funcs,
  342. DRM_MODE_ENCODER_TMDS,
  343. NULL);
  344. if (ret) {
  345. dev_err(dev, "Couldn't initialise the HDMI encoder\n");
  346. return ret;
  347. }
  348. hdmi->encoder.possible_crtcs = drm_of_find_possible_crtcs(drm,
  349. dev->of_node);
  350. if (!hdmi->encoder.possible_crtcs)
  351. return -EPROBE_DEFER;
  352. drm_connector_helper_add(&hdmi->connector,
  353. &sun4i_hdmi_connector_helper_funcs);
  354. ret = drm_connector_init(drm, &hdmi->connector,
  355. &sun4i_hdmi_connector_funcs,
  356. DRM_MODE_CONNECTOR_HDMIA);
  357. if (ret) {
  358. dev_err(dev,
  359. "Couldn't initialise the HDMI connector\n");
  360. goto err_cleanup_connector;
  361. }
  362. /* There is no HPD interrupt, so we need to poll the controller */
  363. hdmi->connector.polled = DRM_CONNECTOR_POLL_CONNECT |
  364. DRM_CONNECTOR_POLL_DISCONNECT;
  365. drm_mode_connector_attach_encoder(&hdmi->connector, &hdmi->encoder);
  366. return 0;
  367. err_cleanup_connector:
  368. drm_encoder_cleanup(&hdmi->encoder);
  369. return ret;
  370. }
  371. static void sun4i_hdmi_unbind(struct device *dev, struct device *master,
  372. void *data)
  373. {
  374. struct sun4i_hdmi *hdmi = dev_get_drvdata(dev);
  375. drm_connector_cleanup(&hdmi->connector);
  376. drm_encoder_cleanup(&hdmi->encoder);
  377. }
  378. static const struct component_ops sun4i_hdmi_ops = {
  379. .bind = sun4i_hdmi_bind,
  380. .unbind = sun4i_hdmi_unbind,
  381. };
  382. static int sun4i_hdmi_probe(struct platform_device *pdev)
  383. {
  384. return component_add(&pdev->dev, &sun4i_hdmi_ops);
  385. }
  386. static int sun4i_hdmi_remove(struct platform_device *pdev)
  387. {
  388. component_del(&pdev->dev, &sun4i_hdmi_ops);
  389. return 0;
  390. }
  391. static const struct of_device_id sun4i_hdmi_of_table[] = {
  392. { .compatible = "allwinner,sun5i-a10s-hdmi" },
  393. { }
  394. };
  395. MODULE_DEVICE_TABLE(of, sun4i_hdmi_of_table);
  396. static struct platform_driver sun4i_hdmi_driver = {
  397. .probe = sun4i_hdmi_probe,
  398. .remove = sun4i_hdmi_remove,
  399. .driver = {
  400. .name = "sun4i-hdmi",
  401. .of_match_table = sun4i_hdmi_of_table,
  402. },
  403. };
  404. module_platform_driver(sun4i_hdmi_driver);
  405. MODULE_AUTHOR("Maxime Ripard <maxime.ripard@free-electrons.com>");
  406. MODULE_DESCRIPTION("Allwinner A10 HDMI Driver");
  407. MODULE_LICENSE("GPL");