[PATCH V5 25/63] ST SPEAr: Adding machine support for nand
stanley.miao
stanley.miao at windriver.com
Tue Jan 25 03:57:16 EST 2011
Viresh Kumar wrote:
> From: Vipin Kumar <vipin.kumar at st.com>
>
> <snip>
>
> +/* nand device registeration */
> +static struct fsmc_nand_platform_data nand_platform_data;
> +
> +static struct resource nand_resources[] = {
> + {
> + .name = "nand_data",
> + .start = SPEAR6XX_ICM1_NAND_BASE,
> + .end = SPEAR6XX_ICM1_NAND_BASE + SZ_16 - 1,
> + .flags = IORESOURCE_MEM,
> + }, {
> + .name = "fsmc_regs",
> + .start = SPEAR6XX_ICM1_FSMC_BASE,
> + .end = SPEAR6XX_ICM1_FSMC_BASE + SZ_4K - 1,
> + .flags = IORESOURCE_MEM,
> + },
> +};
> +
> +struct platform_device nand_device = {
> + .name = "nand",
>
fsmc-nand ?
Stanley.
> + .id = -1,
> + .resource = nand_resources,
> + .num_resources = ARRAY_SIZE(nand_resources),
> + .dev.platform_data = &nand_platform_data,
> +};
> +
> /* usb host device registeration */
> static struct resource ehci0_resources[] = {
> [0] = {
>
More information about the linux-arm-kernel
mailing list