mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
ARM: palmtreo: add docg4 device initialization
This patch adds initialization of the docg4 nand flash device to the treo680. Signed-off-by: Mike Dunn <mikedunn@newsguy.com> Reviewed-by: Marek Vasut <marex@denx.de> Acked-by: Tomas Cech <sleep_walker@suse.cz> Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
This commit is contained in:
parent
7d1f9aeff1
commit
8b8842bfcb
1 changed files with 31 additions and 0 deletions
|
@ -395,6 +395,36 @@ static void __init palmtreo_leds_init(void)
|
||||||
static inline void palmtreo_leds_init(void) {}
|
static inline void palmtreo_leds_init(void) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
* diskonchip docg4 flash
|
||||||
|
******************************************************************************/
|
||||||
|
#if defined(CONFIG_MACH_TREO680)
|
||||||
|
/* REVISIT: does the centro have this device also? */
|
||||||
|
#if IS_ENABLED(CONFIG_MTD_NAND_DOCG4)
|
||||||
|
static struct resource docg4_resources[] = {
|
||||||
|
{
|
||||||
|
.start = 0x00000000,
|
||||||
|
.end = 0x00001FFF,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device treo680_docg4_flash = {
|
||||||
|
.name = "docg4",
|
||||||
|
.id = -1,
|
||||||
|
.resource = docg4_resources,
|
||||||
|
.num_resources = ARRAY_SIZE(docg4_resources),
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init treo680_docg4_flash_init(void)
|
||||||
|
{
|
||||||
|
platform_device_register(&treo680_docg4_flash);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static inline void treo680_docg4_flash_init(void) {}
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Machine init
|
* Machine init
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
@ -430,6 +460,7 @@ static void __init treo680_init(void)
|
||||||
palmphone_common_init();
|
palmphone_common_init();
|
||||||
palm27x_mmc_init(GPIO_NR_TREO_SD_DETECT_N, GPIO_NR_TREO680_SD_READONLY,
|
palm27x_mmc_init(GPIO_NR_TREO_SD_DETECT_N, GPIO_NR_TREO680_SD_READONLY,
|
||||||
GPIO_NR_TREO680_SD_POWER, 0);
|
GPIO_NR_TREO680_SD_POWER, 0);
|
||||||
|
treo680_docg4_flash_init();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue