History

sh: cayman: IDE support fix

Remove incorrect CONFIG_IDE ifdef (CONFIG_IDE config option is for internal drivers/ide/ use) and make IDE hardware interface always initialized (not only when IDE subsystem is built-in). This patch allows Cayman board to work with modular IDE subsystem support and removes the requirement of having the whole core IDE subsystem built-in when using libata PATA support.

Bartlomiej Zolnierkiewicz committed 9 years ago

Commit ca5b58e1 parent ce5bec51 file · +0 −2Browse files

Unified · Split

arch/sh/boards/mach-cayman/setup.c+0−2
@@ -128,7 +128,6 @@ static int __init smsc_superio_setup(void) · 127 unmodified lines
128128 SMSC_SUPERIO_WRITE_INDEXED(1, SMSC_PRIMARY_INT_INDEX);
129129 SMSC_SUPERIO_WRITE_INDEXED(12, SMSC_SECONDARY_INT_INDEX);
130130
131−#ifdef CONFIG_IDE
132131 /*
133132 * Only IDE1 exists on the Cayman
134133 */
@@ -158,7 +157,6 @@ static int __init smsc_superio_setup(void) · 23 unmodified lines
158157 SMSC_SUPERIO_WRITE_INDEXED(0x01, 0xc5); /* GP45 = IDE1_IRQ */
159158 SMSC_SUPERIO_WRITE_INDEXED(0x00, 0xc6); /* GP46 = nIOROP */
160159 SMSC_SUPERIO_WRITE_INDEXED(0x00, 0xc7); /* GP47 = nIOWOP */
161−#endif
162160
163161 /* Exit the configuration state */
164162 outb(SMSC_EXIT_CONFIG_KEY, SMSC_CONFIG_PORT_ADDR);