superio/winbond/w83627ehg: Convert romstage to generic component
Convert the serial init to the generic romstage component and corresponding boards using this sio. Change-Id: Ib9f981f43e047013f9cbe20a22246ee2ed3ecf50 Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Reviewed-on: http://review.coreboot.org/5589 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
committed by
Kyösti Mälkki
parent
959adc3fcf
commit
9e308b9955
@@ -35,13 +35,3 @@ void pnp_exit_ext_func_mode(device_t dev)
|
||||
u16 port = dev >> 8;
|
||||
outb(0xaa, port);
|
||||
}
|
||||
|
||||
void w83627ehg_enable_serial(device_t dev, u16 iobase)
|
||||
{
|
||||
pnp_enter_ext_func_mode(dev);
|
||||
pnp_set_logical_device(dev);
|
||||
pnp_set_enable(dev, 0);
|
||||
pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
|
||||
pnp_set_enable(dev, 1);
|
||||
pnp_exit_ext_func_mode(dev);
|
||||
}
|
||||
|
@@ -19,8 +19,8 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#ifndef SUPERIO_WINBOND_W83627EHG_W83627EHG_H
|
||||
#define SUPERIO_WINBOND_W83627EHG_W83627EHG_H
|
||||
#ifndef SUPERIO_WINBOND_W83627EHG_H
|
||||
#define SUPERIO_WINBOND_W83627EHG_H
|
||||
|
||||
#define W83627EHG_FDC 0 /* Floppy */
|
||||
#define W83627EHG_PP 1 /* Parallel port */
|
||||
@@ -57,10 +57,9 @@
|
||||
#if defined(__PRE_RAM__)
|
||||
void w83627ehg_enable_dev(device_t dev, u16 iobase);
|
||||
void w83627ehg_disable_dev(device_t dev);
|
||||
void w83627ehg_enable_serial(device_t dev, u16 iobase);
|
||||
#endif
|
||||
|
||||
void pnp_enter_ext_func_mode(device_t dev);
|
||||
void pnp_exit_ext_func_mode(device_t dev);
|
||||
|
||||
#endif /* SUPERIO_WINBOND_W83627EHG_W83627EHG_H */
|
||||
#endif /* SUPERIO_WINBOND_W83627EHG_H */
|
||||
|
Reference in New Issue
Block a user