static void dsi_set_device_ready_state(struct drm_device *dev, int state,
int pipe)
{
- printk(KERN_ALERT "[DISPLAY TRK] %s: state = %d, pipe = %d\n", __func__, state, pipe);
+ dev_dbg(&dev->pdev->dev, "%s: state = %d, pipe = %d\n",
+ __func__, state, pipe);
REG_FLD_MOD(MIPI_DEVICE_READY_REG(pipe), !!state, 0, 0);
}
u32 dspcntr = dev_priv->dspcntr;
u32 mipi = MIPI_PORT_EN | PASS_FROM_SPHY_TO_AFE | SEL_FLOPPED_HSTX;
- printk(KERN_ALERT "[DISPLAY TRK] %s: state = %d, pipe = %d\n", __func__, state, pipe);
+ dev_dbg(&dev->pdev->dev, "%s: state = %d, pipe = %d\n",
+ __func__, state, pipe);
if (pipe) {
pipeconf_reg = PIPECCONF;
struct drm_device * dev = dsi_config->dev;
struct drm_psb_private * dev_priv = dev->dev_private;
- printk(KERN_ALERT "[DISPLAY TRK] Enter %s\n", __func__);
+ dev_dbg(&dev->pdev->dev, "Enter %s\n", __func__);
if ((pipe == 0 && !dev_priv->dpi_panel_on) ||
(pipe == 2 && !dev_priv->dpi_panel_on2)) {
- printk(KERN_ALERT "[DISPLAY] %s: DPI Panel is Already Off\n", __func__);
+ dev_dbg(&dev->pdev->dev, "%s: DPI Panel is Already Off\n",
+ __func__);
return;
}
tc35876x_toshiba_bridge_panel_off(dev);
struct drm_device * dev = dsi_config->dev;
struct drm_psb_private * dev_priv = dev->dev_private;
- printk(KERN_ALERT "[DISPLAY TRK] Enter %s\n", __func__);
+ dev_dbg(&dev->pdev->dev, "Enter %s\n", __func__);
if ((pipe == 0 && dev_priv->dpi_panel_on) ||
(pipe == 2 && dev_priv->dpi_panel_on2)) {
- printk(KERN_ALERT "[DISPLAY] %s: DPI Panel is Already On\n", __func__);
+ dev_dbg(&dev->pdev->dev, "%s: DPI Panel is Already On\n",
+ __func__);
return;
}
{
struct drm_device *dev = dsi_config->dev;
- printk(KERN_ALERT "[DISPLAY] Enter %s\n", __func__);
+ dev_dbg(&dev->pdev->dev, "Enter %s\n", __func__);
REG_WRITE(MIPI_CTRL_REG(pipe), 0x00000018);
REG_WRITE(MIPI_INTR_EN_REG(pipe), 0xffffffff);
struct mdfld_dsi_dpi_timing dpi_timing;
struct drm_display_mode *mode = dsi_config->mode;
- printk(KERN_ALERT "[DISPLAY] Enter %s\n", __func__);
+ dev_dbg(&dev->pdev->dev, "Enter %s\n", __func__);
mdfld_dsi_dpi_timing_calculation(mode, &dpi_timing,
dsi_config->lane_count,
struct drm_device *dev = dsi_config->dev;
int lane_count = dsi_config->lane_count;
- printk(KERN_ALERT "[DISPLAY] Enter %s\n", __func__);
+ dev_dbg(&dev->pdev->dev, "Enter %s\n", __func__);
if (pipe) {
REG_WRITE(MIPI_PORT_CONTROL(0), 0x00000002);
struct drm_device *dev = dsi_config->dev;
struct drm_display_mode *mode = dsi_config->mode;
- printk(KERN_ALERT "[DISPLAY] Enter %s\n", __func__);
+ dev_dbg(&dev->pdev->dev, "Enter %s\n", __func__);
REG_WRITE(HTOTAL_A, ((mode->htotal - 1) << 16) | (mode->hdisplay - 1));
REG_WRITE(HBLANK_A, ((mode->htotal - 1) << 16) | (mode->hdisplay - 1));
static void tc35876x_brightness_init(struct mdfld_dsi_config *dsi_config,
int pipe)
{
+ struct drm_device *dev = dsi_config->dev;
int ret;
- printk(KERN_ALERT "[DISPLAY] %s\n", __func__);
+ dev_dbg(&dev->pdev->dev, "Enter %s\n", __func__);
/* Set PWM frequency to 300 Hz = (19.2*1000*1000)/64000 */
ret = intel_scu_ipc_iowrite8(PWM0CLKDIV0, PWM0_CLK_DIV & 0xff);
ret |= intel_scu_ipc_iowrite8(PWM0CLKDIV1, (PWM0_CLK_DIV >> 8) & 0xff);
if (ret)
- printk(KERN_ERR "[DISPLAY] %s: ipc write fail\n", __func__);
+ dev_err(&dev->pdev->dev, "%s: ipc write fail\n", __func__);
}
void mdfld_dsi_brightness_init (struct mdfld_dsi_config * dsi_config, int pipe)