]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/arm/mach-omap2/board-rx51-flash.c
Bugfix to RX51 flash support: this board has no NOR flash,
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / board-rx51-flash.c
1 /*
2  * linux/arch/arm/mach-omap2/board-rx51-flash.c
3  *
4  * Copyright (C) 2008 Nokia
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  */
10
11 #include <linux/kernel.h>
12 #include <linux/init.h>
13 #include <linux/errno.h>
14
15 #include "mmc-twl4030.h"
16
17 extern void __init n800_flash_init(void);
18
19 static struct twl4030_hsmmc_info mmc[] __initdata = {
20         {
21                 .name           = "external",
22                 .mmc            = 1,
23                 .wires          = 4,
24                 .cover_only     = true,
25                 .gpio_cd        = 160,
26                 .gpio_wp        = -EINVAL,
27         },
28         {
29                 .name           = "internal",
30                 .mmc            = 2,
31                 .wires          = 8,
32                 .gpio_cd        = -EINVAL,
33                 .gpio_wp        = -EINVAL,
34         },
35         {}      /* Terminator */
36 };
37
38 void __init rx51_flash_init(void)
39 {
40         n800_flash_init();
41         twl4030_mmc_init(mmc);
42 }
43