diff options
| author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-03-03 09:12:44 -0500 |
|---|---|---|
| committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-05-19 07:11:26 -0400 |
| commit | f142b6196891660b329408e71573f97475823667 (patch) | |
| tree | 64e27e12ad59b114a6ede7c57f5a3ad9119d9913 | |
| parent | ba8a6c04ea11fdd38a614ec7108de2bf7400b5ab (diff) | |
video i.MX: remove mx1 compile time dependencies
remove usage of CONFIG_ARCH_MX1. It's mostly unused anyway, replace
it with cpu_is_mx1() where necessary. Also, depend on
IMX_HAVE_PLATFORM_IMX_FB instead of the architectures directly.
LAKML-Reference: 20110303141244.GQ29521@pengutronix.de
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| -rw-r--r-- | arch/arm/plat-mxc/devices/Kconfig | 1 | ||||
| -rw-r--r-- | drivers/video/Kconfig | 5 | ||||
| -rw-r--r-- | drivers/video/imxfb.c | 28 |
3 files changed, 7 insertions, 27 deletions
diff --git a/arch/arm/plat-mxc/devices/Kconfig b/arch/arm/plat-mxc/devices/Kconfig index a860b16d7258..bd294add932c 100644 --- a/arch/arm/plat-mxc/devices/Kconfig +++ b/arch/arm/plat-mxc/devices/Kconfig | |||
| @@ -24,7 +24,6 @@ config IMX_HAVE_PLATFORM_IMXDI_RTC | |||
| 24 | 24 | ||
| 25 | config IMX_HAVE_PLATFORM_IMX_FB | 25 | config IMX_HAVE_PLATFORM_IMX_FB |
| 26 | bool | 26 | bool |
| 27 | select HAVE_FB_IMX | ||
| 28 | 27 | ||
| 29 | config IMX_HAVE_PLATFORM_IMX_I2C | 28 | config IMX_HAVE_PLATFORM_IMX_I2C |
| 30 | bool | 29 | bool |
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index e6a8d8c0101d..62f337ab52bc 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig | |||
| @@ -8,9 +8,6 @@ menu "Graphics support" | |||
| 8 | config HAVE_FB_ATMEL | 8 | config HAVE_FB_ATMEL |
| 9 | bool | 9 | bool |
| 10 | 10 | ||
| 11 | config HAVE_FB_IMX | ||
| 12 | bool | ||
| 13 | |||
| 14 | config SH_MIPI_DSI | 11 | config SH_MIPI_DSI |
| 15 | tristate | 12 | tristate |
| 16 | depends on (SUPERH || ARCH_SHMOBILE) && HAVE_CLK | 13 | depends on (SUPERH || ARCH_SHMOBILE) && HAVE_CLK |
| @@ -359,7 +356,7 @@ config FB_SA1100 | |||
| 359 | 356 | ||
| 360 | config FB_IMX | 357 | config FB_IMX |
| 361 | tristate "Freescale i.MX LCD support" | 358 | tristate "Freescale i.MX LCD support" |
| 362 | depends on FB && (HAVE_FB_IMX || ARCH_MX1 || ARCH_MX2) | 359 | depends on FB && IMX_HAVE_PLATFORM_IMX_FB |
| 363 | select FB_CFB_FILLRECT | 360 | select FB_CFB_FILLRECT |
| 364 | select FB_CFB_COPYAREA | 361 | select FB_CFB_COPYAREA |
| 365 | select FB_CFB_IMAGEBLIT | 362 | select FB_CFB_IMAGEBLIT |
diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c index ef72cb483834..d2ccfd6e662c 100644 --- a/drivers/video/imxfb.c +++ b/drivers/video/imxfb.c | |||
| @@ -65,12 +65,6 @@ | |||
| 65 | #define CPOS_OP (1<<28) | 65 | #define CPOS_OP (1<<28) |
| 66 | #define CPOS_CXP(x) (((x) & 3ff) << 16) | 66 | #define CPOS_CXP(x) (((x) & 3ff) << 16) |
| 67 | 67 | ||
| 68 | #ifdef CONFIG_ARCH_MX1 | ||
| 69 | #define CPOS_CYP(y) ((y) & 0x1ff) | ||
| 70 | #else | ||
| 71 | #define CPOS_CYP(y) ((y) & 0x3ff) | ||
| 72 | #endif | ||
| 73 | |||
| 74 | #define LCDC_LCWHB 0x10 | 68 | #define LCDC_LCWHB 0x10 |
| 75 | #define LCWHB_BK_EN (1<<31) | 69 | #define LCWHB_BK_EN (1<<31) |
| 76 | #define LCWHB_CW(w) (((w) & 0x1f) << 24) | 70 | #define LCWHB_CW(w) (((w) & 0x1f) << 24) |
| @@ -79,16 +73,6 @@ | |||
| 79 | 73 | ||
| 80 | #define LCDC_LCHCC 0x14 | 74 | #define LCDC_LCHCC 0x14 |
| 81 | 75 | ||
| 82 | #ifdef CONFIG_ARCH_MX1 | ||
| 83 | #define LCHCC_CUR_COL_R(r) (((r) & 0x1f) << 11) | ||
| 84 | #define LCHCC_CUR_COL_G(g) (((g) & 0x3f) << 5) | ||
| 85 | #define LCHCC_CUR_COL_B(b) ((b) & 0x1f) | ||
| 86 | #else | ||
| 87 | #define LCHCC_CUR_COL_R(r) (((r) & 0x3f) << 12) | ||
| 88 | #define LCHCC_CUR_COL_G(g) (((g) & 0x3f) << 6) | ||
| 89 | #define LCHCC_CUR_COL_B(b) ((b) & 0x3f) | ||
| 90 | #endif | ||
| 91 | |||
| 92 | #define LCDC_PCR 0x18 | 76 | #define LCDC_PCR 0x18 |
| 93 | 77 | ||
| 94 | #define LCDC_HCR 0x1C | 78 | #define LCDC_HCR 0x1C |
| @@ -115,11 +99,7 @@ | |||
| 115 | 99 | ||
| 116 | #define LCDC_RMCR 0x34 | 100 | #define LCDC_RMCR 0x34 |
| 117 | 101 | ||
| 118 | #ifdef CONFIG_ARCH_MX1 | 102 | #define RMCR_LCDC_EN_MX1 (1<<1) |
| 119 | #define RMCR_LCDC_EN (1<<1) | ||
| 120 | #else | ||
| 121 | #define RMCR_LCDC_EN 0 | ||
| 122 | #endif | ||
| 123 | 103 | ||
| 124 | #define RMCR_SELF_REF (1<<0) | 104 | #define RMCR_SELF_REF (1<<0) |
| 125 | 105 | ||
| @@ -536,7 +516,11 @@ static void imxfb_enable_controller(struct imxfb_info *fbi) | |||
| 536 | writel(readl(fbi->regs + LCDC_CPOS) & ~(CPOS_CC0 | CPOS_CC1), | 516 | writel(readl(fbi->regs + LCDC_CPOS) & ~(CPOS_CC0 | CPOS_CC1), |
| 537 | fbi->regs + LCDC_CPOS); | 517 | fbi->regs + LCDC_CPOS); |
| 538 | 518 | ||
| 539 | writel(RMCR_LCDC_EN, fbi->regs + LCDC_RMCR); | 519 | /* |
| 520 | * RMCR_LCDC_EN_MX1 is present on i.MX1 only, but doesn't hurt | ||
| 521 | * on other SoCs | ||
| 522 | */ | ||
| 523 | writel(RMCR_LCDC_EN_MX1, fbi->regs + LCDC_RMCR); | ||
| 540 | 524 | ||
| 541 | clk_enable(fbi->clk); | 525 | clk_enable(fbi->clk); |
| 542 | 526 | ||
