diff options
| author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-02-25 08:01:49 -0500 |
|---|---|---|
| committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-02-25 08:01:49 -0500 |
| commit | 9b1489e989695c4d502865f8bec616c0f17e99ab (patch) | |
| tree | 9f90bcc7491bec06db0463d5f24f1ac19b8becc4 /drivers | |
| parent | bac3fcfad565c9bbceeed8b607f140c29df97355 (diff) | |
| parent | 08268b78d6f0c659dc1d86453c57b336f6f4f9ae (diff) | |
Merge branch 'mxc-master' of git://git.pengutronix.de/git/imx/linux-2.6 into imx/master
Removed selection of COMMON_CLKDEV by CONFIG_ARCH_MX5. This is handled
in 03e09cd8902717b66f940357257d8ad76114d9f2.
arch/arm/plat-mxc/iomux-mx1-mx2.c was moved to
arch/arm/plat-mxc/iomux-v1.c in 5e2e95f520538e095d10456acd28d9107317aa32
and got bug fixed in 5c17ef878fa25e04b1e8f1d8f5fa8b267753472c. The bug
in arch/arm/plat-mxc/iomux-v1.c isn't present any more since
bac3fcfad565c9bbceeed8b607f140c29df97355, so
arch/arm/plat-mxc/iomux-mx1-mx2.c is simply deleted.
Conflicts:
arch/arm/plat-mxc/Kconfig
arch/arm/plat-mxc/Makefile
arch/arm/plat-mxc/iomux-mx1-mx2.c
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/serial/imx.c | 2 | ||||
| -rw-r--r-- | drivers/usb/gadget/fsl_mx3_udc.c | 31 | ||||
| -rw-r--r-- | drivers/video/Kconfig | 5 |
3 files changed, 25 insertions, 13 deletions
diff --git a/drivers/serial/imx.c b/drivers/serial/imx.c index 18130f11238e..c5b546a98520 100644 --- a/drivers/serial/imx.c +++ b/drivers/serial/imx.c | |||
| @@ -440,7 +440,7 @@ static irqreturn_t imx_rxint(int irq, void *dev_id) | |||
| 440 | 440 | ||
| 441 | temp = readl(sport->port.membase + USR2); | 441 | temp = readl(sport->port.membase + USR2); |
| 442 | if (temp & USR2_BRCD) { | 442 | if (temp & USR2_BRCD) { |
| 443 | writel(temp | USR2_BRCD, sport->port.membase + USR2); | 443 | writel(USR2_BRCD, sport->port.membase + USR2); |
| 444 | if (uart_handle_break(&sport->port)) | 444 | if (uart_handle_break(&sport->port)) |
| 445 | continue; | 445 | continue; |
| 446 | } | 446 | } |
diff --git a/drivers/usb/gadget/fsl_mx3_udc.c b/drivers/usb/gadget/fsl_mx3_udc.c index 4bc2bf3d602e..20a802ecaa15 100644 --- a/drivers/usb/gadget/fsl_mx3_udc.c +++ b/drivers/usb/gadget/fsl_mx3_udc.c | |||
| @@ -17,6 +17,8 @@ | |||
| 17 | #include <linux/fsl_devices.h> | 17 | #include <linux/fsl_devices.h> |
| 18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
| 19 | 19 | ||
| 20 | #include <mach/hardware.h> | ||
| 21 | |||
| 20 | static struct clk *mxc_ahb_clk; | 22 | static struct clk *mxc_ahb_clk; |
| 21 | static struct clk *mxc_usb_clk; | 23 | static struct clk *mxc_usb_clk; |
| 22 | 24 | ||
| @@ -28,14 +30,16 @@ int fsl_udc_clk_init(struct platform_device *pdev) | |||
| 28 | 30 | ||
| 29 | pdata = pdev->dev.platform_data; | 31 | pdata = pdev->dev.platform_data; |
| 30 | 32 | ||
| 31 | mxc_ahb_clk = clk_get(&pdev->dev, "usb_ahb"); | 33 | if (!cpu_is_mx35()) { |
| 32 | if (IS_ERR(mxc_ahb_clk)) | 34 | mxc_ahb_clk = clk_get(&pdev->dev, "usb_ahb"); |
| 33 | return PTR_ERR(mxc_ahb_clk); | 35 | if (IS_ERR(mxc_ahb_clk)) |
| 36 | return PTR_ERR(mxc_ahb_clk); | ||
| 34 | 37 | ||
| 35 | ret = clk_enable(mxc_ahb_clk); | 38 | ret = clk_enable(mxc_ahb_clk); |
| 36 | if (ret < 0) { | 39 | if (ret < 0) { |
| 37 | dev_err(&pdev->dev, "clk_enable(\"usb_ahb\") failed\n"); | 40 | dev_err(&pdev->dev, "clk_enable(\"usb_ahb\") failed\n"); |
| 38 | goto eenahb; | 41 | goto eenahb; |
| 42 | } | ||
| 39 | } | 43 | } |
| 40 | 44 | ||
| 41 | /* make sure USB_CLK is running at 60 MHz +/- 1000 Hz */ | 45 | /* make sure USB_CLK is running at 60 MHz +/- 1000 Hz */ |
| @@ -50,6 +54,7 @@ int fsl_udc_clk_init(struct platform_device *pdev) | |||
| 50 | if (pdata->phy_mode != FSL_USB2_PHY_ULPI && | 54 | if (pdata->phy_mode != FSL_USB2_PHY_ULPI && |
| 51 | (freq < 59999000 || freq > 60001000)) { | 55 | (freq < 59999000 || freq > 60001000)) { |
| 52 | dev_err(&pdev->dev, "USB_CLK=%lu, should be 60MHz\n", freq); | 56 | dev_err(&pdev->dev, "USB_CLK=%lu, should be 60MHz\n", freq); |
| 57 | ret = -EINVAL; | ||
| 53 | goto eclkrate; | 58 | goto eclkrate; |
| 54 | } | 59 | } |
| 55 | 60 | ||
| @@ -66,9 +71,11 @@ eclkrate: | |||
| 66 | clk_put(mxc_usb_clk); | 71 | clk_put(mxc_usb_clk); |
| 67 | mxc_usb_clk = NULL; | 72 | mxc_usb_clk = NULL; |
| 68 | egusb: | 73 | egusb: |
| 69 | clk_disable(mxc_ahb_clk); | 74 | if (!cpu_is_mx35()) |
| 75 | clk_disable(mxc_ahb_clk); | ||
| 70 | eenahb: | 76 | eenahb: |
| 71 | clk_put(mxc_ahb_clk); | 77 | if (!cpu_is_mx35()) |
| 78 | clk_put(mxc_ahb_clk); | ||
| 72 | return ret; | 79 | return ret; |
| 73 | } | 80 | } |
| 74 | 81 | ||
| @@ -90,6 +97,8 @@ void fsl_udc_clk_release(void) | |||
| 90 | clk_disable(mxc_usb_clk); | 97 | clk_disable(mxc_usb_clk); |
| 91 | clk_put(mxc_usb_clk); | 98 | clk_put(mxc_usb_clk); |
| 92 | } | 99 | } |
| 93 | clk_disable(mxc_ahb_clk); | 100 | if (!cpu_is_mx35()) { |
| 94 | clk_put(mxc_ahb_clk); | 101 | clk_disable(mxc_ahb_clk); |
| 102 | clk_put(mxc_ahb_clk); | ||
| 103 | } | ||
| 95 | } | 104 | } |
diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 5a5c303a6373..83d40ed2f2d6 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig | |||
| @@ -400,9 +400,12 @@ config FB_SA1100 | |||
| 400 | If you plan to use the LCD display with your SA-1100 system, say | 400 | If you plan to use the LCD display with your SA-1100 system, say |
| 401 | Y here. | 401 | Y here. |
| 402 | 402 | ||
| 403 | config HAVE_FB_IMX | ||
| 404 | bool | ||
| 405 | |||
| 403 | config FB_IMX | 406 | config FB_IMX |
| 404 | tristate "Motorola i.MX LCD support" | 407 | tristate "Motorola i.MX LCD support" |
| 405 | depends on FB && (ARCH_MX1 || ARCH_MX2) | 408 | depends on FB && (HAVE_FB_IMX || ARCH_MX1 || ARCH_MX2) |
| 406 | select FB_CFB_FILLRECT | 409 | select FB_CFB_FILLRECT |
| 407 | select FB_CFB_COPYAREA | 410 | select FB_CFB_COPYAREA |
| 408 | select FB_CFB_IMAGEBLIT | 411 | select FB_CFB_IMAGEBLIT |
