Drop baud rate init to an arbitrary baud rate from Super I/O code.

See discussion at                                                                                                                                                               
http://www.mail-archive.com/coreboot@coreboot.org/msg29394.html                                                                                                                 
                                                                                                                                                                                
config->com1, devicetree.cb cleanup and init_uart8250() removal                                                                                                                 
will follow once this patch is comitted                                                                                                                                         
                                                                                                                                                                                
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>                                                                                                                   
Acked-by: Patrick Georgi <patrick@georgi-clan.de>                                                                                                                               

Updated to drop com1, com2.... from config structure and devicetree.cb



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6521 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer
2011-04-19 21:33:40 +00:00
committed by Stefan Reinauer
parent 4fff74b69f
commit 13508b94cb
100 changed files with 47 additions and 486 deletions

View File

@@ -29,7 +29,7 @@
extern struct chip_operations superio_fintek_f71805f_ops;
struct superio_fintek_f71805f_config {
struct uart8250 com1, com2;
};
#endif

View File

@@ -40,23 +40,10 @@ static void pnp_exit_conf_state(device_t dev)
static void f71805f_init(device_t dev)
{
struct superio_fintek_f71805f_config *conf = dev->chip_info;
struct resource *res0;
if (!dev->enabled)
return;
switch(dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case F71805F_SP1:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com1);
break;
case F71805F_SP2:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com2);
break;
}
}
static void f71805f_pnp_set_resources(device_t dev)

View File

@@ -27,7 +27,7 @@
extern struct chip_operations superio_fintek_f71859_ops;
struct superio_fintek_f71859_config {
struct uart8250 com1, com2;
};
#endif

View File

@@ -41,19 +41,10 @@ static void pnp_exit_conf_state(device_t dev)
static void f71859_init(device_t dev)
{
struct superio_fintek_f71859_config *conf = dev->chip_info;
struct resource *res0;
if (!dev->enabled)
return;
switch(dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case F71859_SP1:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com1);
break;
}
}
static void f71859_pnp_set_resources(device_t dev)

View File

@@ -28,7 +28,7 @@
extern struct chip_operations superio_fintek_f71863fg_ops;
struct superio_fintek_f71863fg_config {
struct uart8250 com1, com2;
struct pc_keyboard keyboard;
};

View File

@@ -48,14 +48,6 @@ static void f71863fg_init(device_t dev)
switch(dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case F71863FG_SP1:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com1);
break;
case F71863FG_SP2:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com2);
break;
case F71863FG_KBC:
res0 = find_resource(dev, PNP_IDX_IO0);
pc_keyboard_init(&conf->keyboard);

View File

@@ -27,7 +27,7 @@
extern struct chip_operations superio_fintek_f71872_ops;
struct superio_fintek_f71872_config {
struct uart8250 com1, com2;
struct pc_keyboard keyboard;
};

View File

@@ -40,21 +40,12 @@ static void pnp_exit_conf_state(device_t dev)
static void f71872_init(device_t dev)
{
struct superio_fintek_f71872_config *conf = dev->chip_info;
struct resource *res0;
if (!dev->enabled)
return;
switch(dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case F71872_SP1:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com1);
break;
case F71872_SP2:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com2);
break;
case F71872_KBC:
pc_keyboard_init(&conf->keyboard);
break;

View File

@@ -28,7 +28,7 @@
extern struct chip_operations superio_fintek_f71889_ops;
struct superio_fintek_f71889_config {
struct uart8250 com1, com2;
struct pc_keyboard keyboard;
};

View File

@@ -41,21 +41,12 @@ static void pnp_exit_conf_state(device_t dev)
static void f71889_init(device_t dev)
{
struct superio_fintek_f71889_config *conf = dev->chip_info;
struct resource *res0;
if (!dev->enabled)
return;
switch (dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case F71889_SP1:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com1);
break;
case F71889_SP2:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com2);
break;
case F71889_KBC:
pc_keyboard_init(&conf->keyboard);
break;

View File

@@ -29,7 +29,7 @@
extern struct chip_operations superio_fintek_f81865f_ops;
struct superio_fintek_f81865f_config {
struct uart8250 com1, com2;
struct pc_keyboard keyboard;
};

View File

@@ -40,21 +40,12 @@ static void pnp_exit_conf_state(device_t dev)
static void f81865f_init(device_t dev)
{
struct superio_fintek_f81865f_config *conf = dev->chip_info;
struct resource *res0;
if (!dev->enabled)
return;
switch (dev->path.pnp.device) {
/* TODO: Might potentially need code for HWM or FDC etc. */
case F81865F_SP1:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com1);
break;
case F81865F_SP2:
res0 = find_resource(dev, PNP_IDX_IO0);
init_uart8250(res0->base, &conf->com2);
break;
case F81865F_KBC:
pc_keyboard_init(&conf->keyboard);
break;