mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-19 05:04:27 +00:00
siihdmi: max pixclock is platform specific data
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include <mach/gpio.h>
|
||||
#include <mach/irqs.h>
|
||||
|
||||
#include <linux/fb.h>
|
||||
#include <linux/i2c/sii_hdmi.h>
|
||||
|
||||
#include "devices.h"
|
||||
@@ -82,6 +83,8 @@ static struct siihdmi_platform_data mx51_efikamx_sii9022_data = {
|
||||
.framebuffer = "DISP3 BG",
|
||||
|
||||
.hotplug_irq = IOMUX_TO_IRQ(MX51_PIN_DISPB2_SER_DIO),
|
||||
|
||||
.pixclock = KHZ2PICOS(133000L),
|
||||
};
|
||||
|
||||
static struct i2c_board_info mx51_efikamx_i2c_board_info[] __initdata = {
|
||||
|
||||
@@ -621,7 +621,7 @@ static void siihdmi_sanitize_modelist(struct siihdmi_tx * const tx,
|
||||
DEBUG("Removing mode %ux%u@%u (interlaced)\n",
|
||||
mode->xres, mode->yres, mode->refresh);
|
||||
remove = true;
|
||||
} else if (mode->pixclock < tx->max_pixclock) {
|
||||
} else if (mode->pixclock < tx->platform->pixclock) {
|
||||
DEBUG("Removing mode %ux%u@%u (exceeds pixclk limit)\n",
|
||||
mode->xres, mode->yres, mode->refresh);
|
||||
remove = true;
|
||||
@@ -711,8 +711,6 @@ static int siihdmi_init_fb(struct siihdmi_tx *tx, struct fb_info *info)
|
||||
tx->connection_type = CONNECTION_TYPE_DVI;
|
||||
tx->pixel_mapping = PIXEL_MAPPING_EXACT;
|
||||
tx->enable_audio = false;
|
||||
/* this should be in platform data */
|
||||
tx->max_pixclock = KHZ2PICOS(133000L);
|
||||
|
||||
/* use EDID to detect sink characteristics */
|
||||
if ((ret = siihdmi_read_edid(tx, (u8 *) &block0, sizeof(block0))) < 0)
|
||||
|
||||
@@ -324,6 +324,9 @@ struct siihdmi_platform_data {
|
||||
|
||||
/* hotplug IRQ */
|
||||
int hotplug_irq;
|
||||
|
||||
/* maximum pixel clock rate */
|
||||
int pixclock;
|
||||
};
|
||||
|
||||
struct siihdmi_tx {
|
||||
@@ -353,8 +356,6 @@ struct siihdmi_tx {
|
||||
|
||||
/* preferred video mode (based on EDID) */
|
||||
struct fb_videomode preferred;
|
||||
|
||||
int max_pixclock; /* platform data vs. EDID max tmds rate */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user