summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/generic/debug/debug_dev.c2
-rw-r--r--src/mainboard/msi/ms7135/mptable.c1
-rw-r--r--src/mainboard/tyan/s2735/Kconfig1
-rw-r--r--src/mainboard/via/epia-m/Kconfig11
-rw-r--r--src/mainboard/via/epia-m700/Kconfig1
-rw-r--r--src/mainboard/via/epia-n/Kconfig10
-rw-r--r--src/mainboard/via/epia/Kconfig11
-rw-r--r--src/southbridge/intel/esb6300/esb6300_bridge1c.c4
-rw-r--r--src/southbridge/intel/esb6300/esb6300_ide.c2
-rw-r--r--src/southbridge/intel/esb6300/esb6300_lpc.c8
-rw-r--r--src/southbridge/intel/esb6300/esb6300_sata.c2
-rw-r--r--src/southbridge/via/vt8235/vt8235_early_serial.c3
-rw-r--r--src/southbridge/via/vt8235/vt8235_early_smbus.c2
-rw-r--r--src/superio/smsc/lpc47m10x/superio.c2
14 files changed, 11 insertions, 49 deletions
diff --git a/src/drivers/generic/debug/debug_dev.c b/src/drivers/generic/debug/debug_dev.c
index e7f3c617f5..6af5325926 100644
--- a/src/drivers/generic/debug/debug_dev.c
+++ b/src/drivers/generic/debug/debug_dev.c
@@ -59,7 +59,7 @@ static void print_pci_regs_all(void)
}
}
-static void print_cpuid()
+static void print_cpuid(void)
{
msr_t msr;
unsigned index;
diff --git a/src/mainboard/msi/ms7135/mptable.c b/src/mainboard/msi/ms7135/mptable.c
index 109ac2f2c3..79d08e14f6 100644
--- a/src/mainboard/msi/ms7135/mptable.c
+++ b/src/mainboard/msi/ms7135/mptable.c
@@ -47,7 +47,6 @@ static void *smp_write_config_table(void *v)
unsigned sbdn;
int bus_num;
- int i;
mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
memset(mc, 0, sizeof(*mc));
diff --git a/src/mainboard/tyan/s2735/Kconfig b/src/mainboard/tyan/s2735/Kconfig
index 0f9353a3ab..a0f739c071 100644
--- a/src/mainboard/tyan/s2735/Kconfig
+++ b/src/mainboard/tyan/s2735/Kconfig
@@ -15,6 +15,7 @@ config BOARD_TYAN_S2735
select USE_DCACHE_RAM
select USE_WATCHDOG_ON_BOOT
select BOARD_ROMSIZE_KB_512
+ select USE_PRINTK_IN_CAR
config MAINBOARD_DIR
string
diff --git a/src/mainboard/via/epia-m/Kconfig b/src/mainboard/via/epia-m/Kconfig
index 5674c7bf7d..fec6ab72b1 100644
--- a/src/mainboard/via/epia-m/Kconfig
+++ b/src/mainboard/via/epia-m/Kconfig
@@ -10,22 +10,13 @@ config BOARD_VIA_EPIA_M
select HAVE_PIRQ_TABLE
select HAVE_ACPI_TABLES
select BOARD_ROMSIZE_KB_256
+ select ROMCC
config MAINBOARD_DIR
string
default via/epia-m
depends on BOARD_VIA_EPIA_M
-#config DCACHE_RAM_BASE
-# hex
-# default 0xffef0000
-# depends on BOARD_VIA_EPIA_M
-
-#config DCACHE_RAM_SIZE
-# hex
-# default 0x8000
-# depends on BOARD_VIA_EPIA_M
-
config MAINBOARD_PART_NUMBER
string
default "EPIA-M"
diff --git a/src/mainboard/via/epia-m700/Kconfig b/src/mainboard/via/epia-m700/Kconfig
index d5547ea602..fe3b799eb3 100644
--- a/src/mainboard/via/epia-m700/Kconfig
+++ b/src/mainboard/via/epia-m700/Kconfig
@@ -7,6 +7,7 @@ config BOARD_VIA_EPIA_M700
select BOARD_HAS_FADT
select HAVE_ACPI_TABLES
select BOARD_ROMSIZE_KB_512
+ select USE_PRINTK_IN_CAR
config MAINBOARD_DIR
string
diff --git a/src/mainboard/via/epia-n/Kconfig b/src/mainboard/via/epia-n/Kconfig
index 08acd6182e..11a3815ac1 100644
--- a/src/mainboard/via/epia-n/Kconfig
+++ b/src/mainboard/via/epia-n/Kconfig
@@ -18,16 +18,6 @@ config MAINBOARD_DIR
default via/epia-n
depends on BOARD_VIA_EPIA_N
-#config DCACHE_RAM_BASE
-# hex
-# default 0xffef0000
-# depends on BOARD_VIA_EPIA_N
-#
-#config DCACHE_RAM_SIZE
-# hex
-# default 0x8000
-# depends on BOARD_VIA_EPIA_N
-
config MAINBOARD_PART_NUMBER
string
default "EPIA-N"
diff --git a/src/mainboard/via/epia/Kconfig b/src/mainboard/via/epia/Kconfig
index 7a611c42e7..ddb3fe643b 100644
--- a/src/mainboard/via/epia/Kconfig
+++ b/src/mainboard/via/epia/Kconfig
@@ -7,22 +7,13 @@ config BOARD_VIA_EPIA
select SUPERIO_WINBOND_W83627HF
select HAVE_PIRQ_TABLE
select BOARD_ROMSIZE_KB_256
+ select ROMCC
config MAINBOARD_DIR
string
default via/epia
depends on BOARD_VIA_EPIA
-#config DCACHE_RAM_BASE
-# hex
-# default 0xffef0000
-# depends on BOARD_VIA_EPIA
-#
-#config DCACHE_RAM_SIZE
-# hex
-# default 0x8000
-# depends on BOARD_VIA_EPIA
-
config MAINBOARD_PART_NUMBER
string
default "EPIA"
diff --git a/src/southbridge/intel/esb6300/esb6300_bridge1c.c b/src/southbridge/intel/esb6300/esb6300_bridge1c.c
index 50bae9fb2a..54c2717d89 100644
--- a/src/southbridge/intel/esb6300/esb6300_bridge1c.c
+++ b/src/southbridge/intel/esb6300/esb6300_bridge1c.c
@@ -7,9 +7,6 @@
static void bridge1c_init(struct device *dev)
{
-
- uint16_t word;
-
/* configuration */
pci_write_config8(dev, 0x1b, 0x30);
// pci_write_config8(dev, 0x3e, 0x07);
@@ -31,7 +28,6 @@ static void bridge1c_init(struct device *dev)
/* multi transaction timer */
pci_write_config8(dev, 0x42, 0x08);
-
}
static struct device_operations pci_ops = {
diff --git a/src/southbridge/intel/esb6300/esb6300_ide.c b/src/southbridge/intel/esb6300/esb6300_ide.c
index e56393722a..543468dabb 100644
--- a/src/southbridge/intel/esb6300/esb6300_ide.c
+++ b/src/southbridge/intel/esb6300/esb6300_ide.c
@@ -9,7 +9,6 @@ static void ide_init(struct device *dev)
{
/* Enable ide devices so the linux ide driver will work */
- uint16_t word;
/* Enable IDE devices */
pci_write_config16(dev, 0x40, 0x0a307);
@@ -19,6 +18,7 @@ static void ide_init(struct device *dev)
pci_write_config16(dev, 0x54, 0x5055);
#if 0
+ uint16_t word;
word = pci_read_config16(dev, 0x40);
word |= (1 << 15);
pci_write_config16(dev, 0x40, word);
diff --git a/src/southbridge/intel/esb6300/esb6300_lpc.c b/src/southbridge/intel/esb6300/esb6300_lpc.c
index c25771aa0a..fe035bb2c4 100644
--- a/src/southbridge/intel/esb6300/esb6300_lpc.c
+++ b/src/southbridge/intel/esb6300/esb6300_lpc.c
@@ -51,13 +51,13 @@ static void set_esb6300_gpio_use_sel(
device_t dev, struct resource *res, config_t *config)
{
uint32_t gpio_use_sel, gpio_use_sel2;
- int i;
// gpio_use_sel = 0x1B003100;
// gpio_use_sel2 = 0x03000000;
gpio_use_sel = 0x1BBC31C0;
gpio_use_sel2 = 0x03000FE1;
#if 0
+ int i;
for(i = 0; i < 64; i++) {
int val;
switch(config->gpio[i] & ESB6300_GPIO_USE_MASK) {
@@ -84,13 +84,13 @@ static void set_esb6300_gpio_direction(
device_t dev, struct resource *res, config_t *config)
{
uint32_t gpio_io_sel, gpio_io_sel2;
- int i;
// gpio_io_sel = 0x0000ffff;
// gpio_io_sel2 = 0x00000000;
gpio_io_sel = 0x1900ffff;
gpio_io_sel2 = 0x00000fe1;
#if 0
+ int i;
for(i = 0; i < 64; i++) {
int val;
switch(config->gpio[i] & ESB6300_GPIO_SEL_MASK) {
@@ -118,7 +118,6 @@ static void set_esb6300_gpio_level(
{
uint32_t gpio_lvl, gpio_lvl2;
uint32_t gpio_blink;
- int i;
// gpio_lvl = 0x1b3f0000;
// gpio_blink = 0x00040000;
@@ -127,6 +126,7 @@ static void set_esb6300_gpio_level(
gpio_blink = 0x00000000;
gpio_lvl2 = 0x00000fff;
#if 0
+ int i;
for(i = 0; i < 64; i++) {
int val, blink;
switch(config->gpio[i] & ESB6300_GPIO_LVL_MASK) {
@@ -157,10 +157,10 @@ static void set_esb6300_gpio_inv(
device_t dev, struct resource *res, config_t *config)
{
uint32_t gpio_inv;
- int i;
gpio_inv = 0x00003100;
#if 0
+ int i;
for(i = 0; i < 32; i++) {
int val;
switch(config->gpio[i] & ESB6300_GPIO_INV_MASK) {
diff --git a/src/southbridge/intel/esb6300/esb6300_sata.c b/src/southbridge/intel/esb6300/esb6300_sata.c
index c26b7c4d12..5818df1819 100644
--- a/src/southbridge/intel/esb6300/esb6300_sata.c
+++ b/src/southbridge/intel/esb6300/esb6300_sata.c
@@ -7,9 +7,7 @@
static void sata_init(struct device *dev)
{
-
/* Enable sata devices so the linux sata driver will work */
- uint16_t word;
/* Enable SATA devices */
diff --git a/src/southbridge/via/vt8235/vt8235_early_serial.c b/src/southbridge/via/vt8235/vt8235_early_serial.c
index 3191057811..7823172485 100644
--- a/src/southbridge/via/vt8235/vt8235_early_serial.c
+++ b/src/southbridge/via/vt8235/vt8235_early_serial.c
@@ -38,9 +38,6 @@ static void vt8235_writesioword(uint16_t reg, uint16_t val)
static void enable_vt8235_serial(void)
{
- unsigned long x;
- uint8_t c;
- device_t dev;
// turn on pnp
vt8235_writepnpaddr(0x87);
vt8235_writepnpaddr(0x87);
diff --git a/src/southbridge/via/vt8235/vt8235_early_smbus.c b/src/southbridge/via/vt8235/vt8235_early_smbus.c
index 9442b6e4d0..db403eb5fb 100644
--- a/src/southbridge/via/vt8235/vt8235_early_smbus.c
+++ b/src/southbridge/via/vt8235/vt8235_early_smbus.c
@@ -85,7 +85,6 @@ static int smbus_wait_until_ready(void)
unsigned long loops;
loops = SMBUS_TIMEOUT;
do {
- unsigned char val;
smbus_delay();
c = inb(SMBUS_IO_BASE + SMBHSTSTAT);
while((c & 1) == 1) {
@@ -121,7 +120,6 @@ static int smbus_wait_until_done(void)
unsigned char byte;
loops = SMBUS_TIMEOUT;
do {
- unsigned char val;
smbus_delay();
byte = inb(SMBUS_IO_BASE + SMBHSTSTAT);
diff --git a/src/superio/smsc/lpc47m10x/superio.c b/src/superio/smsc/lpc47m10x/superio.c
index 001ac165dd..ea8cdc1f7d 100644
--- a/src/superio/smsc/lpc47m10x/superio.c
+++ b/src/superio/smsc/lpc47m10x/superio.c
@@ -44,7 +44,7 @@ static void lpc47m10x_init(device_t dev);
static void pnp_enter_conf_state(device_t dev);
static void pnp_exit_conf_state(device_t dev);
-static void dump_pnp_device(device_t dev);
+//static void dump_pnp_device(device_t dev);
struct chip_operations superio_smsc_lpc47m10x_ops = {
CHIP_NAME("SMSC LPC47M10x Super I/O")