Felix Held | 3f3eca9 | 2020-01-23 17:12:32 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 2 | |
Uwe Hermann | d82baa1 | 2006-12-05 14:13:10 +0000 | [diff] [blame] | 3 | /* RAM-based driver for SMSC LPC47N217 Super I/O chip. */ |
Uwe Hermann | d82baa1 | 2006-12-05 14:13:10 +0000 | [diff] [blame] | 4 | |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 5 | #include <arch/io.h> |
| 6 | #include <device/device.h> |
| 7 | #include <device/pnp.h> |
| 8 | #include <console/console.h> |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 9 | #include <assert.h> |
Elyes HAOUAS | 2329a25 | 2019-05-15 22:11:18 +0200 | [diff] [blame] | 10 | |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 11 | #include "lpc47n217.h" |
| 12 | |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 13 | /* Forward declarations */ |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 14 | static void enable_dev(struct device *dev); |
| 15 | static void lpc47n217_pnp_set_resources(struct device *dev); |
| 16 | static void lpc47n217_pnp_enable_resources(struct device *dev); |
| 17 | static void lpc47n217_pnp_enable(struct device *dev); |
| 18 | static void lpc47n217_init(struct device *dev); |
| 19 | static void lpc47n217_pnp_set_resource(struct device *dev, struct resource *resource); |
| 20 | static void lpc47n217_pnp_set_iobase(struct device *dev, u16 iobase); |
| 21 | static void lpc47n217_pnp_set_drq(struct device *dev, u8 drq); |
| 22 | static void lpc47n217_pnp_set_irq(struct device *dev, u8 irq); |
| 23 | static void lpc47n217_pnp_set_enable(struct device *dev, int enable); |
| 24 | static void pnp_enter_conf_state(struct device *dev); |
| 25 | static void pnp_exit_conf_state(struct device *dev); |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 26 | |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 27 | struct chip_operations superio_smsc_lpc47n217_ops = { |
Uwe Hermann | a7aa29b | 2006-11-05 18:50:49 +0000 | [diff] [blame] | 28 | CHIP_NAME("SMSC LPC47N217 Super I/O") |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 29 | .enable_dev = enable_dev, |
| 30 | }; |
| 31 | |
| 32 | static struct device_operations ops = { |
| 33 | .read_resources = pnp_read_resources, |
| 34 | .set_resources = lpc47n217_pnp_set_resources, |
| 35 | .enable_resources = lpc47n217_pnp_enable_resources, |
| 36 | .enable = lpc47n217_pnp_enable, |
| 37 | .init = lpc47n217_init, |
| 38 | }; |
| 39 | |
| 40 | static struct pnp_info pnp_dev_info[] = { |
Felix Held | b0d868e | 2018-07-06 23:39:00 +0200 | [diff] [blame] | 41 | { NULL, LPC47N217_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, 0x07f8, }, |
| 42 | { NULL, LPC47N217_SP1, PNP_IO0 | PNP_IRQ0, 0x07f8, }, |
| 43 | { NULL, LPC47N217_SP2, PNP_IO0 | PNP_IRQ0, 0x07f8, } |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 44 | }; |
| 45 | |
Uwe Hermann | b69cb5a | 2010-10-26 22:46:43 +0000 | [diff] [blame] | 46 | /** |
| 47 | * Create device structures and allocate resources to devices specified in the |
| 48 | * pnp_dev_info array (above). |
| 49 | * |
| 50 | * @param dev Pointer to structure describing a Super I/O device. |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 51 | */ |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 52 | static void enable_dev(struct device *dev) |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 53 | { |
Felix Held | b0d868e | 2018-07-06 23:39:00 +0200 | [diff] [blame] | 54 | pnp_enable_devices(dev, &ops, ARRAY_SIZE(pnp_dev_info), pnp_dev_info); |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 55 | } |
| 56 | |
Uwe Hermann | b69cb5a | 2010-10-26 22:46:43 +0000 | [diff] [blame] | 57 | /** |
| 58 | * Configure the specified Super I/O device with the resources (I/O space, |
| 59 | * etc.) that have been allocate for it. |
| 60 | * |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 61 | * NOTE: Cannot use pnp_set_resources() here because it assumes chip |
| 62 | * support for logical devices, which the LPC47N217 doesn't have. |
| 63 | * |
Uwe Hermann | b69cb5a | 2010-10-26 22:46:43 +0000 | [diff] [blame] | 64 | * @param dev Pointer to structure describing a Super I/O device. |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 65 | */ |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 66 | static void lpc47n217_pnp_set_resources(struct device *dev) |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 67 | { |
Myles Watson | c25cc11 | 2010-05-21 14:33:48 +0000 | [diff] [blame] | 68 | struct resource *res; |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 69 | |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 70 | pnp_enter_conf_state(dev); |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 71 | for (res = dev->resource_list; res; res = res->next) |
Myles Watson | c25cc11 | 2010-05-21 14:33:48 +0000 | [diff] [blame] | 72 | lpc47n217_pnp_set_resource(dev, res); |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 73 | /* dump_pnp_device(dev); */ |
Elyes HAOUAS | 5bd5a9a | 2018-05-28 16:21:04 +0200 | [diff] [blame] | 74 | pnp_exit_conf_state(dev); |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 75 | } |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 76 | |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 77 | /* |
| 78 | * NOTE: Cannot use pnp_enable_resources() here because it assumes chip |
| 79 | * support for logical devices, which the LPC47N217 doesn't have. |
| 80 | */ |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 81 | static void lpc47n217_pnp_enable_resources(struct device *dev) |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 82 | { |
| 83 | pnp_enter_conf_state(dev); |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 84 | lpc47n217_pnp_set_enable(dev, 1); |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 85 | pnp_exit_conf_state(dev); |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 86 | } |
| 87 | |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 88 | /* |
| 89 | * NOTE: Cannot use pnp_set_enable() here because it assumes chip |
| 90 | * support for logical devices, which the LPC47N217 doesn't have. |
| 91 | */ |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 92 | static void lpc47n217_pnp_enable(struct device *dev) |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 93 | { |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 94 | pnp_enter_conf_state(dev); |
Rudolf Marek | 0c8e664 | 2011-02-19 14:51:31 +0000 | [diff] [blame] | 95 | lpc47n217_pnp_set_enable(dev, !!dev->enabled); |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 96 | pnp_exit_conf_state(dev); |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 97 | } |
| 98 | |
Uwe Hermann | b69cb5a | 2010-10-26 22:46:43 +0000 | [diff] [blame] | 99 | /** |
| 100 | * Initialize the specified Super I/O device. |
| 101 | * |
| 102 | * Devices other than COM ports are ignored. For COM ports, we configure the |
| 103 | * baud rate. |
| 104 | * |
| 105 | * @param dev Pointer to structure describing a Super I/O device. |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 106 | */ |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 107 | static void lpc47n217_init(struct device *dev) |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 108 | { |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 109 | if (!dev->enabled) |
| 110 | return; |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 111 | } |
| 112 | |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 113 | static void lpc47n217_pnp_set_resource(struct device *dev, struct resource *resource) |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 114 | { |
| 115 | if (!(resource->flags & IORESOURCE_ASSIGNED)) { |
zbao | 9bf356f | 2012-08-03 15:09:09 +0800 | [diff] [blame] | 116 | printk(BIOS_ERR, "ERROR: %s %02lx not allocated\n", |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 117 | dev_path(dev), resource->index); |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 118 | return; |
| 119 | } |
| 120 | |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 121 | /* Now store the resource. */ |
| 122 | |
Uwe Hermann | b69cb5a | 2010-10-26 22:46:43 +0000 | [diff] [blame] | 123 | /* |
| 124 | * NOTE: Cannot use pnp_set_XXX() here because they assume chip |
| 125 | * support for logical devices, which the LPC47N217 doesn't have. |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 126 | */ |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 127 | if (resource->flags & IORESOURCE_IO) { |
| 128 | lpc47n217_pnp_set_iobase(dev, resource->base); |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 129 | } else if (resource->flags & IORESOURCE_DRQ) { |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 130 | lpc47n217_pnp_set_drq(dev, resource->base); |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 131 | } else if (resource->flags & IORESOURCE_IRQ) { |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 132 | lpc47n217_pnp_set_irq(dev, resource->base); |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 133 | } else { |
zbao | 9bf356f | 2012-08-03 15:09:09 +0800 | [diff] [blame] | 134 | printk(BIOS_ERR, "ERROR: %s %02lx unknown resource type\n", |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 135 | dev_path(dev), resource->index); |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 136 | return; |
| 137 | } |
| 138 | resource->flags |= IORESOURCE_STORED; |
| 139 | |
| 140 | report_resource_stored(dev, resource, ""); |
| 141 | } |
| 142 | |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 143 | static void lpc47n217_pnp_set_iobase(struct device *dev, u16 iobase) |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 144 | { |
| 145 | ASSERT(!(iobase & 0x3)); |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 146 | |
Elyes HAOUAS | 0ce41f1 | 2018-11-13 10:03:31 +0100 | [diff] [blame] | 147 | switch (dev->path.pnp.device) { |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 148 | case LPC47N217_PP: |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 149 | pnp_write_config(dev, 0x23, (iobase >> 2) & 0xff); |
| 150 | break; |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 151 | case LPC47N217_SP1: |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 152 | pnp_write_config(dev, 0x24, (iobase >> 2) & 0xff); |
| 153 | break; |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 154 | case LPC47N217_SP2: |
| 155 | pnp_write_config(dev, 0x25, (iobase >> 2) & 0xff); |
| 156 | break; |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 157 | default: |
| 158 | BUG(); |
| 159 | break; |
| 160 | } |
| 161 | } |
| 162 | |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 163 | static void lpc47n217_pnp_set_drq(struct device *dev, u8 drq) |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 164 | { |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 165 | const u8 PP_DMA_MASK = 0x0F; |
| 166 | const u8 PP_DMA_SELECTION_REGISTER = 0x26; |
| 167 | u8 current_config, new_config; |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 168 | |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 169 | if (dev->path.pnp.device == LPC47N217_PP) { |
| 170 | current_config = pnp_read_config(dev, |
| 171 | PP_DMA_SELECTION_REGISTER); |
| 172 | ASSERT(!(drq & ~PP_DMA_MASK)); /* DRQ out of range? */ |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 173 | new_config = (current_config & ~PP_DMA_MASK) | drq; |
| 174 | pnp_write_config(dev, PP_DMA_SELECTION_REGISTER, new_config); |
| 175 | } else { |
| 176 | BUG(); |
| 177 | } |
| 178 | } |
| 179 | |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 180 | static void lpc47n217_pnp_set_irq(struct device *dev, u8 irq) |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 181 | { |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 182 | u8 irq_config_register = 0, irq_config_mask = 0; |
| 183 | u8 current_config, new_config; |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 184 | |
Elyes HAOUAS | 0ce41f1 | 2018-11-13 10:03:31 +0100 | [diff] [blame] | 185 | switch (dev->path.pnp.device) { |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 186 | case LPC47N217_PP: |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 187 | irq_config_register = 0x27; |
| 188 | irq_config_mask = 0x0F; |
| 189 | break; |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 190 | case LPC47N217_SP1: |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 191 | irq_config_register = 0x28; |
| 192 | irq_config_mask = 0xF0; |
| 193 | irq <<= 4; |
| 194 | break; |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 195 | case LPC47N217_SP2: |
| 196 | irq_config_register = 0x28; |
| 197 | irq_config_mask = 0x0F; |
| 198 | break; |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 199 | default: |
| 200 | BUG(); |
| 201 | return; |
| 202 | } |
| 203 | |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 204 | ASSERT(!(irq & ~irq_config_mask)); /* IRQ out of range? */ |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 205 | |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 206 | current_config = pnp_read_config(dev, irq_config_register); |
| 207 | new_config = (current_config & ~irq_config_mask) | irq; |
| 208 | pnp_write_config(dev, irq_config_register, new_config); |
| 209 | } |
| 210 | |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 211 | static void lpc47n217_pnp_set_enable(struct device *dev, int enable) |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 212 | { |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 213 | u8 power_register = 0, power_mask = 0, current_power, new_power; |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 214 | |
Elyes HAOUAS | 0ce41f1 | 2018-11-13 10:03:31 +0100 | [diff] [blame] | 215 | switch (dev->path.pnp.device) { |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 216 | case LPC47N217_PP: |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 217 | power_register = 0x01; |
| 218 | power_mask = 0x04; |
| 219 | break; |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 220 | case LPC47N217_SP1: |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 221 | power_register = 0x02; |
| 222 | power_mask = 0x08; |
| 223 | break; |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 224 | case LPC47N217_SP2: |
| 225 | power_register = 0x02; |
| 226 | power_mask = 0x80; |
| 227 | break; |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 228 | default: |
| 229 | BUG(); |
| 230 | return; |
| 231 | } |
| 232 | |
| 233 | current_power = pnp_read_config(dev, power_register); |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 234 | new_power = current_power & ~power_mask; /* Disable by default. */ |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 235 | if (enable) { |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 236 | struct resource* ioport_resource; |
| 237 | ioport_resource = find_resource(dev, PNP_IDX_IO0); |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 238 | lpc47n217_pnp_set_iobase(dev, ioport_resource->base); |
Uwe Hermann | a69d978 | 2010-11-15 19:35:14 +0000 | [diff] [blame] | 239 | new_power |= power_mask; /* Enable. */ |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 240 | } else { |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 241 | lpc47n217_pnp_set_iobase(dev, 0); |
| 242 | } |
| 243 | pnp_write_config(dev, power_register, new_power); |
| 244 | } |
| 245 | |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 246 | static void pnp_enter_conf_state(struct device *dev) |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 247 | { |
Stefan Reinauer | 2b34db8 | 2009-02-28 20:10:20 +0000 | [diff] [blame] | 248 | outb(0x55, dev->path.pnp.port); |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 249 | } |
| 250 | |
Edward O'Callaghan | f21bdc3 | 2014-10-21 07:43:41 +1100 | [diff] [blame] | 251 | static void pnp_exit_conf_state(struct device *dev) |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 252 | { |
Zheng Bao | 9db833b | 2009-12-28 09:59:44 +0000 | [diff] [blame] | 253 | outb(0xaa, dev->path.pnp.port); |
Stefan Reinauer | eca92fb | 2006-08-23 14:28:37 +0000 | [diff] [blame] | 254 | } |