[PATCH v4 3/6] ARM: vexpress: Add DT support for the motherboard

Arnd Bergmann arnd at arndb.de
Wed Dec 7 17:49:18 EST 2011


On Tuesday 06 December 2011 15:43:46 Pawel Moll wrote:
> +
> +static struct of_dev_auxdata v2m_dt_auxdata_lookup[] __initdata = {
> +       OF_DEV_AUXDATA("arm,vexpress-flash", V2M_NOR0, "physmap-flash",
> +                       &v2m_flash_data),
> +       OF_DEV_AUXDATA("arm,primecell", V2M_MMCI, "mb:mmci", &v2m_mmci_data),
> +       {}
> +};
> 

One more thing I noticed. While I'm not familiar with the progress on
device driver conversion, I think you should be using the physmap_of
driver instead of physmap, which will remove the need for the
platform data.

For mmci, it should not be hard to do change the driver so it
understands the device tree, too. The easiest implementation for
that would be to add some code into mmci_probe and allocate
an mmci_platform_data structure that gets filled with the required
attributes.

	Arnd



More information about the linux-arm-kernel mailing list