mainboard: Clear up remaining SIO_PORT from Kconfig

Push back any board specific values back into romstage.c #defines and
drop any remaining fragments of CONFIG_SIO_PORT in-tree.

Change-Id: Ieb63fb0c2ab1a82b53bafd86686de7b21ac226c3
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/6045
Tested-by: build bot (Jenkins)
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Edward O'Callaghan 2014-06-16 17:24:14 +10:00 committed by Kyösti Mälkki
parent 401b8accf8
commit c94d73e0e6
12 changed files with 14 additions and 45 deletions

View File

@ -72,10 +72,6 @@ config RAMBASE
hex
default 0x200000
config SIO_PORT
hex
default 0x2e
config DRIVERS_PS2_KEYBOARD
bool
default y

View File

@ -37,8 +37,7 @@
#include "Platform.h"
#include <arch/cpu.h>
#define SERIAL_DEV PNP_DEV(CONFIG_SIO_PORT, SMSCSUPERIO_SP1)
#define SERIAL_DEV PNP_DEV(0x2e, SMSCSUPERIO_SP1)
u32 agesawrapper_amdinitmmio (void);
u32 agesawrapper_amdinitreset (void);
@ -58,7 +57,7 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
post_code(0x30);
sch4037_early_init (CONFIG_SIO_PORT);
sch4037_early_init(0x2e);
/* Detect SMSC SIO1036 LPC Debug Card status */
if (detect_sio1036_chip(0x4E)) {

View File

@ -69,10 +69,6 @@ config RAMBASE
hex
default 0x200000
config SIO_PORT
hex
default 0x2e
config ONBOARD_VGA_IS_PRIMARY
bool
default y

View File

@ -39,7 +39,7 @@
#include "SBPLATFORM.h"
#define SERIAL_DEV PNP_DEV(CONFIG_SIO_PORT, W83627HF_SP1)
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
{

View File

@ -89,8 +89,4 @@ config VGA_BIOS_ID
string
default "1002,9712"
config SIO_PORT
hex
default 0x2E
endif #BOARD_AVALUE_EAX_785E

View File

@ -52,6 +52,7 @@
#include "northbridge/amd/amdfam10/debug.c"
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
#define CLK_DEV PNP_DEV(0x2e, W83627HF_SP1)
static void activate_spd_rom(const struct mem_controller *ctrl)
{
@ -102,7 +103,7 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
enable_rs780_dev8();
sb800_clk_output_48Mhz();
w83627hf_set_clksel_48(PNP_DEV(CONFIG_SIO_PORT, 0));
w83627hf_set_clksel_48(CLK_DEV);
winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE);
console_init();

View File

@ -35,10 +35,6 @@ config MAX_CPUS
int
default 16
config SIO_PORT
hex
default 0x164e
config SMBIOS_SYSTEM_ENCLOSURE_TYPE
hex
default 0x09 # This is a mobile platform

View File

@ -44,6 +44,8 @@
#include "gpio.h"
#include <arch/stages.h>
#define SIO_PORT 0x164e
static inline void reset_system(void)
{
hard_reset();
@ -69,7 +71,7 @@ static void pch_enable_lpc(void)
/* Map a range for the runtime registers to the LPC bus. */
pci_write_config32(dev, LPC_GEN2_DEC, 0xc0181);
if (sio1007_enable_uart_at(CONFIG_SIO_PORT)) {
if (sio1007_enable_uart_at(SIO_PORT)) {
pci_write_config16(dev, LPC_EN,
lpc_config | COMA_LPC_EN);
}
@ -77,7 +79,7 @@ static void pch_enable_lpc(void)
static void setup_sio_gpios(void)
{
const u16 port = CONFIG_SIO_PORT;
const u16 port = SIO_PORT;
const u16 runtime_port = 0x180;
/* Turn on configuration mode. */

View File

@ -72,13 +72,6 @@ config RAMBASE
hex
default 0x200000
config SIO_PORT
hex
default 0x164E
help
though UARTs are on the NUVOTON BMC, port 0x164E
PS2 keyboard and mouse are on SUPERIO_WINBOND_W83627DHG, port 0x2E
config DRIVERS_PS2_KEYBOARD
bool
default y

View File

@ -35,6 +35,10 @@
#include <superio/winbond/common/winbond.h>
#include <superio/winbond/w83627dhg/w83627dhg.h>
/* though UARTs are on the NUVOTON BMC, port 0x164E
* PS2 keyboard and mouse are on SUPERIO_WINBOND_W83627DHG, port 0x2E
*/
#define SIO_PORT 0x164e
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
{
@ -49,7 +53,7 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
report_bist_failure(bist);
sb7xx_51xx_enable_wideio(0, 0x1600); /* though UARTs are on the NUVOTON BMC */
wpcm450_enable_dev(WPCM450_SP1, CONFIG_SIO_PORT, CONFIG_TTYS0_BASE);
wpcm450_enable_dev(WPCM450_SP1, SIO_PORT, CONFIG_TTYS0_BASE);
sb7xx_51xx_disable_wideio(0);
post_code(0x34);

View File

@ -75,13 +75,6 @@ config RAMBASE
hex
default 0x200000
config SIO_PORT
hex
default 0x164E
help
though UARTs are on the NUVOTON BMC, port 0x164E
PS2 keyboard and mouse are on SUPERIO_WINBOND_W83627DHG, port 0x2E
config DRIVERS_PS2_KEYBOARD
bool
default y

View File

@ -72,13 +72,6 @@ config RAMBASE
hex
default 0x200000
config SIO_PORT
hex
default 0x164E
help
though UARTs are on the NUVOTON BMC, port 0x164E
PS2 keyboard and mouse are on SUPERIO_WINBOND_W83627DHG, port 0x2E
config DRIVERS_PS2_KEYBOARD
bool
default y