e15d522df81f7c65910111ca6b69b52d50add580
[openwrt-github/.git] / target / linux / magicbox / patches / 100-cf_slot.patch
1 --- a/drivers/ide/ide.c
2 +++ b/drivers/ide/ide.c
3 @@ -494,6 +494,9 @@
4  
5         return -EPERM;
6  #endif
7 +#ifdef CONFIG_BLK_DEV_MAGICBOX_IDE
8 +       ide_magicbox_init();
9 +#endif
10  }
11  
12  int set_pio_mode(ide_drive_t *drive, int arg)
13 --- a/drivers/ide/Kconfig
14 +++ b/drivers/ide/Kconfig
15 @@ -928,6 +928,14 @@
16  
17           If unsure, say N.
18  
19 +config BLK_DEV_MAGICBOX_IDE
20 +       bool "MagicBox 2.0 CF IDE support"
21 +       depends on 4xx && IDE
22 +       help
23 +         This option provides support for IDE on MagicBox 2.0 boards.
24 +
25 +         If unsure, say N.
26 +
27  choice
28         prompt "Type of MPC8xx IDE interface"
29         depends on BLK_DEV_MPC8xx_IDE
30 --- a/drivers/ide/ppc/Makefile
31 +++ b/drivers/ide/ppc/Makefile
32 @@ -1,3 +1,4 @@
33  
34  obj-$(CONFIG_BLK_DEV_IDE_PMAC)         += pmac.o
35  obj-$(CONFIG_BLK_DEV_MPC8xx_IDE)       += mpc8xx.o
36 +obj-$(CONFIG_BLK_DEV_MAGICBOX_IDE)     += magicbox_ide.o