arm: Rename hdmi_if.m to crtc_if.m

There is nothing hdmi related in this interface, it's just a generic interface
for crt controller so rename it.
This also remove the 'hdmi' device used in arm kernel config. 'vt' now controls
if we build this interface (sc(4) isn't supported on arm).

Sponsored by:	Beckhoff Automation GmbH & Co. KG
Reviewed by:	andrew
Differential Revision:	https://reviews.freebsd.org/D39120
This commit is contained in:
Emmanuel Vadot
2023-03-16 10:48:06 +01:00
parent 3bcb469c61
commit 00e84f52f0
9 changed files with 18 additions and 19 deletions
-1
View File
@@ -244,7 +244,6 @@ device vt
device kbdmux
device ums
device videomode
device hdmi
device vchiq
# IMX6 HDMI Controller
+4 -4
View File
@@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
#include <dev/hdmi/dwc_hdmi.h>
#include "hdmi_if.h"
#include "crtc_if.h"
struct imx_hdmi_softc {
struct dwc_hdmi_softc base;
@@ -200,9 +200,9 @@ static device_method_t imx_hdmi_methods[] = {
DEVMETHOD(device_attach, imx_hdmi_attach),
DEVMETHOD(device_detach, imx_hdmi_detach),
/* HDMI methods */
DEVMETHOD(hdmi_get_edid, dwc_hdmi_get_edid),
DEVMETHOD(hdmi_set_videomode, dwc_hdmi_set_videomode),
/* CRTC methods */
DEVMETHOD(crtc_get_edid, dwc_hdmi_get_edid),
DEVMETHOD(crtc_set_videomode, dwc_hdmi_set_videomode),
DEVMETHOD_END
};
+3 -3
View File
@@ -59,7 +59,7 @@ __FBSDID("$FreeBSD$");
#include <arm/freescale/imx/imx_ccmvar.h>
#include "fb_if.h"
#include "hdmi_if.h"
#include "crtc_if.h"
static int have_ipu = 0;
@@ -1120,7 +1120,7 @@ ipu_hdmi_event(void *arg, device_t hdmi_dev)
edid = NULL;
edid_len = 0;
if (HDMI_GET_EDID(hdmi_dev, &edid, &edid_len) != 0) {
if (CRTC_GET_EDID(hdmi_dev, &edid, &edid_len) != 0) {
device_printf(sc->sc_dev, "failed to get EDID info from HDMI framer\n");
}
@@ -1150,7 +1150,7 @@ ipu_hdmi_event(void *arg, device_t hdmi_dev)
ipu_init(sc);
HDMI_SET_VIDEOMODE(hdmi_dev, sc->sc_mode);
CRTC_SET_VIDEOMODE(hdmi_dev, sc->sc_mode);
}
static int
+3 -3
View File
@@ -74,7 +74,7 @@ __FBSDID("$FreeBSD$");
#include "am335x_pwm.h"
#include "fb_if.h"
#include "hdmi_if.h"
#include "crtc_if.h"
#define LCD_PID 0x00
#define LCD_CTRL 0x04
@@ -871,7 +871,7 @@ am335x_lcd_hdmi_event(void *arg, device_t hdmi, int event)
edid = NULL;
edid_len = 0;
if (HDMI_GET_EDID(hdmi_dev, &edid, &edid_len) != 0) {
if (CRTC_GET_EDID(hdmi_dev, &edid, &edid_len) != 0) {
device_printf(sc->sc_dev, "failed to get EDID info from HDMI framer\n");
return;
}
@@ -925,7 +925,7 @@ am335x_lcd_hdmi_event(void *arg, device_t hdmi, int event)
hdmi_mode.hskew = videomode->hsync_end - videomode->hsync_start;
hdmi_mode.flags |= VID_HSKEW;
HDMI_SET_VIDEOMODE(hdmi_dev, &hdmi_mode);
CRTC_SET_VIDEOMODE(hdmi_dev, &hdmi_mode);
}
static int
+4 -4
View File
@@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
#include <dev/videomode/edidvar.h>
#include "iicbus_if.h"
#include "hdmi_if.h"
#include "crtc_if.h"
#define MKREG(page, addr) (((page) << 8) | (addr))
@@ -782,9 +782,9 @@ static device_method_t tda_methods[] = {
DEVMETHOD(device_attach, tda19988_attach),
DEVMETHOD(device_detach, tda19988_detach),
/* HDMI methods */
DEVMETHOD(hdmi_get_edid, tda19988_get_edid),
DEVMETHOD(hdmi_set_videomode, tda19988_set_videomode),
/* CRTC methods */
DEVMETHOD(crtc_get_edid, tda19988_get_edid),
DEVMETHOD(crtc_set_videomode, tda19988_set_videomode),
{0, 0},
};