1 --- a/drivers/ide/ide.c
2 +++ b/drivers/ide/ide.c
4 /* default maximum number of failures */
5 #define IDE_DEFAULT_MAX_FAILURES 1
7 +#ifdef CONFIG_BLK_DEV_MAGICBOX_IDE
8 +extern void __init ide_magicbox_init(void);
11 struct class *ide_port_class;
13 static const u8 ide_hwif_to_major[] = { IDE0_MAJOR, IDE1_MAJOR,
18 +#ifdef CONFIG_BLK_DEV_MAGICBOX_IDE
19 + ide_magicbox_init();
23 int set_pio_mode(ide_drive_t *drive, int arg)
24 --- a/drivers/ide/Kconfig
25 +++ b/drivers/ide/Kconfig
30 +config BLK_DEV_MAGICBOX_IDE
31 + bool "MagicBox 2.0 CF IDE support"
32 + depends on 4xx && IDE
34 + This option provides support for IDE on MagicBox 2.0 boards.
39 prompt "Type of MPC8xx IDE interface"
40 depends on BLK_DEV_MPC8xx_IDE
41 --- a/drivers/ide/ppc/Makefile
42 +++ b/drivers/ide/ppc/Makefile
45 obj-$(CONFIG_BLK_DEV_IDE_PMAC) += pmac.o
46 obj-$(CONFIG_BLK_DEV_MPC8xx_IDE) += mpc8xx.o
47 +obj-$(CONFIG_BLK_DEV_MAGICBOX_IDE) += magicbox_ide.o