[PATCH 1/2] mx35_3ds: add physmap-flash NOR at CS0
Sascha Hauer
s.hauer at pengutronix.de
Fri Aug 20 13:10:12 EDT 2010
Hi Sergei,
On Thu, Aug 19, 2010 at 02:48:11PM +0400, Sergei Shtylyov wrote:
>> + .width = 2,
>> +};
>> +
>> +static struct resource mx35pdk_flash_resource = {
>> + .start = MX35_CS0_BASE_ADDR,
>> + .end = MX35_CS0_BASE_ADDR + SZ_64M - 1,
>> + .flags = IORESOURCE_MEM,
>> +};
>> +
>> +static struct platform_device mx35pdk_flash = {
>> + .name = "physmap-flash",
>> + .id = 0,
>
> -1 perhaps as that is probably a single physmap devie on your board?
Generally yes, but we are using command line partition tables and all
our bootloader environments pass physmap-flash.0 as identifier, so it's
better to keep 0.
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 |
More information about the linux-arm-kernel
mailing list