From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [patch 1/5] Introduce EFIKA_COMMON
Date: Wed, 2 Feb 2011 16:43:57 +0100 [thread overview]
Message-ID: <20110202154357.GY9041@pengutronix.de> (raw)
In-Reply-To: <20110202112119.373997404@rtp-net.org>
On Wed, Feb 02, 2011 at 12:21:05PM +0100, Arnaud Patard wrote:
> The Genesi EFIKA MX and EFIKA Smartbook are sharing a lot of things
> so it makes sense to create a common file for both devices and a specific
> file for each. No functionnal change except dropping uart 1 & 2.
>
> Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
>
> +
> +/* Serial ports */
> +#if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE)
> +static const struct imxuart_platform_data uart_pdata = {
> + .flags = IMXUART_HAVE_RTSCTS,
> +};
> +
> +static inline void mxc_init_imx_uart(void)
> +{
> + imx51_add_imx_uart(0, &uart_pdata);
> + imx51_add_imx_uart(1, &uart_pdata);
> + imx51_add_imx_uart(2, &uart_pdata);
> +}
> +#else /* !SERIAL_IMX */
> +static inline void mxc_init_imx_uart(void)
> +{
> +}
> +#endif /* SERIAL_IMX */
Please remove the ifdefs around the serial port initialization. Also, I
remember that the efikamx only has one serial port connected.
> +
> +/* This function is board specific as the bit mask for the plldiv will also
> + * be different for other Freescale SoCs, thus a common bitmask is not
> + * possible and cannot get place in /plat-mxc/ehci.c.
> + */
> +static int initialize_otg_port(struct platform_device *pdev)
> +{
> + u32 v;
> + void __iomem *usb_base;
> + void __iomem *usbother_base;
> + usb_base = ioremap(MX51_OTG_BASE_ADDR, SZ_4K);
> + if (!usb_base)
> + return -ENOMEM;
> + usbother_base = (void __iomem *)(usb_base + MX5_USBOTHER_REGS_OFFSET);
> +
> + /* Set the PHY clock to 19.2MHz */
> + v = __raw_readl(usbother_base + MXC_USB_PHY_CTR_FUNC2_OFFSET);
> + v &= ~MX5_USB_UTMI_PHYCTRL1_PLLDIV_MASK;
> + v |= MX51_USB_PLL_DIV_24_MHZ;
> + __raw_writel(v, usbother_base + MXC_USB_PHY_CTR_FUNC2_OFFSET);
> + iounmap(usb_base);
> + return 0;
> +}
> +
> +static struct mxc_usbh_platform_data dr_utmi_config = {
> + .init = initialize_otg_port,
> + .portsc = MXC_EHCI_UTMI_16BIT,
> + .flags = MXC_EHCI_INTERNAL_PHY,
> +};
Could you rebase this on the ehci cleanup patches I recently sent and
thereby also test the patches for your board?
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2011-02-02 15:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 11:21 [patch 0/5] Genesi Efika MX/SB support improvements Arnaud Patard (Rtp)
2011-02-02 11:21 ` [patch 1/5] Introduce EFIKA_COMMON Arnaud Patard (Rtp)
2011-02-02 15:43 ` Sascha Hauer [this message]
2011-02-02 16:01 ` Arnaud Patard (Rtp)
2011-02-02 11:21 ` [patch 2/5] efikamx: add usb h1 support Arnaud Patard (Rtp)
2011-02-02 11:21 ` [patch 3/5] efikamx: add mc13892 support / implement power off Arnaud Patard (Rtp)
2011-02-02 15:38 ` Sascha Hauer
2011-02-02 16:04 ` Arnaud Patard (Rtp)
2011-02-02 11:21 ` [patch 4/5] efika: enable cpufreq Arnaud Patard (Rtp)
2011-02-02 11:21 ` [patch 5/5] mx51: add support for efika smartbook Arnaud Patard (Rtp)
2011-02-02 15:47 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110202154357.GY9041@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).