Major cleanups of the hard_reset() code and config in coreboot.
- Drop unused "#object reset.o" entries.
- Use CONFIG_HAVE_HARD_RESET for all "object reset.o" entries.
- Add TODO/FIXME comments to some files.
- Drop dead code, i.e. useless hard_reset() from:
- supermicro/x6dhe_g/auto.c
- supermicro/x6dhe_g2/auto.c
- supermicro/x6dhe_g2/auto.updated.c
- supermicro/x6dhr_ig/auto.c
- supermicro/x6dhr_ig2/auto.c
- digitallogic/msm586seg/auto.c
- technologic/ts5300/auto.c (this one doesn't set CONFIG_HAVE_HARD_RESET
anyway, and the function doesn't reset anything at all).
- dell/s1850/auto.c
- Add "obj-$(CONFIG_HAVE_HARD_RESET) += reset.o" to kconfig files of boards
that actually have a reset.c file.
- Drop hard_reset() dummy from asus/a8v-e_se and asus/m2v-mx_se.
As mentioned by ruik on IRC, the soft_reset() function already does a
hard reset, so this function is not needed.
- Drop useless hard_reset() functions from vt8237r.c, vt8231.c, vt8235.c.
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
===================================================================
@@ -28,11 +28,6 @@
* VT8237R_SouthBridge_Revision2.06_Lead-Free.zip
*/
-void hard_reset(void)
-{
- printk_err("NO HARD RESET ON VT8237R! FIX ME!\n");
-}
-
#if CONFIG_DEFAULT_CONSOLE_LOGLEVEL > 7
void writeback(struct device *dev, u16 where, u8 what)
{
===================================================================
@@ -13,11 +13,6 @@
/* Base 8231 controller */
static device_t lpc_dev;
-void hard_reset(void)
-{
- printk_err("NO HARD RESET ON VT8231! FIX ME!\n");
-}
-
static void keyboard_on(void)
{
unsigned char regval;
===================================================================
@@ -13,11 +13,6 @@
*/
static int enabled = 0;
-void hard_reset(void)
-{
- printk_err("NO HARD RESET ON VT8235! FIX ME!\n");
-}
-
static void keyboard_on(struct device *dev)
{
unsigned char regval;
===================================================================
@@ -187,7 +187,8 @@
}
}
-
+/* TODO: Rename to sb600_hard_reset()? */
+/* TODO: There's another hard_reset() implementation in sb600_reset.c. Why? */
static void hard_reset(void)
{
set_bios_reset();
===================================================================
@@ -52,6 +52,8 @@
#include "../../../northbridge/amd/amdk8/reset_test.c"
+/* TODO: Rename to sb600_hard_reset()? */
+/* TODO: There's another hard_reset() implementation in sb600_reset.c. Why? */
void hard_reset(void)
{
set_bios_reset();
===================================================================
@@ -54,6 +54,7 @@
#include "../../../northbridge/amd/amdk8/reset_test.c"
+/* FIXME: There's another implementation in amd8111_early_ctrl.c. Why? */
void hard_reset(void)
{
device_t dev;
===================================================================
@@ -35,6 +35,7 @@
enable_cf9_x(sbbusn, sbdn);
}
+/* FIXME: There's another implementation in amd8111_reset.c. Why? */
static void hard_reset(void)
{
set_bios_reset();
===================================================================
@@ -20,6 +20,7 @@
#include <arch/io.h>
+/* TODO: Rename to i82801gx_hard_reset()? */
void hard_reset(void)
{
/* Try rebooting through port 0xcf9. */
===================================================================
@@ -20,6 +20,7 @@
#include <arch/io.h>
+/* TODO: Rename to i82801xx_hard_reset(). */
void hard_reset(void)
{
/* Try rebooting through port 0xcf9. */
===================================================================
@@ -20,6 +20,7 @@
#include <arch/io.h>
+/* TODO: Rename to i3100_hard_reset()? */
void hard_reset(void)
{
outb(0x06, 0xcf9);
===================================================================
@@ -1,5 +1,6 @@
#include <arch/io.h>
+/* TODO: Rename to i82801dbm_hard_reset()? */
void hard_reset(void)
{
/* Try rebooting through port 0xcf9 */
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
## ATI Rage XL framebuffering graphics driver
dir /drivers/ati/ragexl
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
===================================================================
@@ -18,8 +18,6 @@
object irq_tables.o
end
-#object reset.o
-
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -25,7 +25,6 @@
arch i386 end
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-# object reset.o
if CONFIG_GENERATE_ACPI_TABLES
object fadt.o
object dsdt.o
===================================================================
@@ -19,6 +19,6 @@
##
ROMCCFLAGS=-mcpu=p4 -O2
-
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
include $(src)/mainboard/Makefile.romccboard.inc
===================================================================
@@ -20,7 +20,7 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-object reset.o
+if CONFIG_HAVE_HARD_RESET object reset.o end
##
## Romcc output
===================================================================
@@ -35,7 +35,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
makerule ./auto.o
===================================================================
@@ -19,6 +19,6 @@
##
ROMCCFLAGS=-mcpu=p4 -O2
-
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
include $(src)/mainboard/Makefile.romccboard.inc
===================================================================
@@ -43,16 +43,6 @@
#define RECVENA_CONFIG 0x0808090a
#define RECVENB_CONFIG 0x0808090a
-#if 0
-static void hard_reset(void)
-{
- /* enable cf9 */
- pci_write_config8(PCI_DEV(0, 0x04, 3), 0x41, 0xf1);
- /* reset */
- outb(0x0e, 0x0cf9);
-}
-#endif
-
static inline void activate_spd_rom(const struct mem_controller *ctrl)
{
/* nothing to do */
===================================================================
@@ -19,7 +19,7 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-object reset.o
+if CONFIG_HAVE_HARD_RESET object reset.o end
##
## Romcc output
===================================================================
@@ -32,7 +32,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
makerule ./auto.o
===================================================================
@@ -37,7 +37,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
makerule ./auto.o
===================================================================
@@ -19,6 +19,6 @@
##
ROMCCFLAGS=-mcpu=p4 -O2
-
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
include $(src)/mainboard/Makefile.romccboard.inc
===================================================================
@@ -43,16 +43,6 @@
#define RECVENA_CONFIG 0x0708090a
#define RECVENB_CONFIG 0x0708090a
-#if 0
-static void hard_reset(void)
-{
- /* enable cf9 */
- pci_write_config8(PCI_DEV(0, 0x04, 3), 0x41, 0xf1);
- /* reset */
- outb(0x0e, 0x0cf9);
-}
-#endif
-
static inline void activate_spd_rom(const struct mem_controller *ctrl)
{
/* nothing to do */
===================================================================
@@ -19,7 +19,7 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-object reset.o
+if CONFIG_HAVE_HARD_RESET object reset.o end
##
## Romcc output
===================================================================
@@ -43,16 +43,6 @@
#define RECVENA_CONFIG 0x0708090a
#define RECVENB_CONFIG 0x0708090a
-#if 0
-static void hard_reset(void)
-{
- /* enable cf9 */
- pci_write_config8(PCI_DEV(0, 0x04, 3), 0x41, 0xf1);
- /* reset */
- outb(0x0e, 0x0cf9);
-}
-#endif
-
static inline void activate_spd_rom(const struct mem_controller *ctrl)
{
/* nothing to do */
===================================================================
@@ -19,6 +19,6 @@
##
ROMCCFLAGS=-mcpu=p4 -O2
-
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
include $(src)/mainboard/Makefile.romccboard.inc
===================================================================
@@ -44,16 +44,6 @@
#define RECVENA_CONFIG 0x0808090a
#define RECVENB_CONFIG 0x0808090a
-#if 0
-static void hard_reset(void)
-{
- /* enable cf9 */
- pci_write_config8(PCI_DEV(0, 0x04, 3), 0x41, 0xf1);
- /* reset */
- outb(0x0e, 0x0cf9);
-}
-#endif
-
static inline void activate_spd_rom(const struct mem_controller *ctrl)
{
/* nothing to do */
===================================================================
@@ -20,7 +20,7 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-object reset.o
+if CONFIG_HAVE_HARD_RESET object reset.o end
##
## Romcc output
===================================================================
@@ -19,6 +19,6 @@
##
ROMCCFLAGS=-mcpu=p4 -O2
-
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
include $(src)/mainboard/Makefile.romccboard.inc
===================================================================
@@ -44,16 +44,6 @@
#define RECVENA_CONFIG 0x0808090a
#define RECVENB_CONFIG 0x0808090a
-#if 0
-static void hard_reset(void)
-{
- /* enable cf9 */
- pci_write_config8(PCI_DEV(0, 0x04, 3), 0x41, 0xf1);
- /* reset */
- outb(0x0e, 0x0cf9);
-}
-#endif
-
static inline void activate_spd_rom(const struct mem_controller *ctrl)
{
/* nothing to do */
===================================================================
@@ -20,7 +20,7 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-object reset.o
+if CONFIG_HAVE_HARD_RESET object reset.o end
##
## Romcc output
===================================================================
@@ -32,6 +32,7 @@
obj-$(CONFIG_GENERATE_ACPI_TABLES) += dsdt.o
obj-$(CONFIG_GENERATE_ACPI_TABLES) += acpi_tables.o
obj-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.o
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
smmobj-$(CONFIG_HAVE_SMI_HANDLER) += mainboard_smi.o
===================================================================
@@ -61,7 +61,7 @@
object ./dsdt.o
end
-object reset.o
+if CONFIG_HAVE_HARD_RESET object reset.o end
if CONFIG_USE_INIT
===================================================================
@@ -50,8 +50,6 @@
object ./dsdt.o
end
-#object reset.o
-
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -35,7 +35,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -37,7 +37,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -8,6 +8,7 @@
select HAVE_PIRQ_TABLE
select UDELAY_TSC
select BOARD_ROMSIZE_KB_1024
+ select HAVE_HARD_RESET
config MAINBOARD_DIR
string
===================================================================
@@ -14,7 +14,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
##
## Romcc output
===================================================================
@@ -31,7 +31,6 @@
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
-
static void hard_reset(void)
{
outb(0x0e, 0x0cf9);
===================================================================
@@ -16,7 +16,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-# object reset.o
##
## Romcc output
===================================================================
@@ -50,10 +50,6 @@
int i;
};
-static void hard_reset(void)
-{
-}
-
static void memreset_setup(void)
{
}
===================================================================
@@ -35,7 +35,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
## ALL dependencies for CONFIG_USE_DCACHE_RAM go here.
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
##
## Romcc output
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
##
## Romcc output
===================================================================
@@ -17,7 +17,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-# object reset.o
##
## Romcc output
===================================================================
@@ -136,12 +136,6 @@
}
-static void hard_reset(void)
-{
- print_err("Hard reset called.\n");
- while (1) ;
-}
-
static void main(unsigned long bist)
{
volatile int i;
===================================================================
@@ -50,8 +50,6 @@
object ./dsdt.o
end
-#object reset.o
-
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -50,8 +50,6 @@
object ./dsdt.o
end
-#object reset.o
-
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
##
## Romcc output
===================================================================
@@ -18,8 +18,6 @@
object irq_tables.o
end
-#object reset.o
-
#compile cache_as_ram.c to auto.inc
makerule ./cache_as_ram_auto.inc
depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
===================================================================
@@ -25,7 +25,6 @@
arch i386 end
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-# object reset.o
makerule ./failover.E
depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
action "../romcc -E -O2 -mcpu=p2 --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
===================================================================
@@ -25,7 +25,6 @@
arch i386 end
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-# object reset.o
if CONFIG_GENERATE_ACPI_TABLES
object fadt.o
object dsdt.o
===================================================================
@@ -16,7 +16,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
##
## Romcc output
===================================================================
@@ -32,7 +32,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
##
## Romcc output
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
#compile cache_as_ram.c to auto.inc
makerule ./cache_as_ram_auto.inc
===================================================================
@@ -35,7 +35,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -12,7 +12,7 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-object reset.o
+if CONFIG_HAVE_HARD_RESET object reset.o end
if CONFIG_USE_INIT
makerule ./auto.o
===================================================================
@@ -1,5 +1,6 @@
void i82801er_hard_reset(void);
+/* FIXME: There's another hard_reset() in cache_as_ram_auto.c. Why? */
void hard_reset(void)
{
i82801er_hard_reset();
===================================================================
@@ -27,6 +27,7 @@
obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o
obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
#driver-y += ../../../drivers/i2c/i2cmux/i2cmux.o
===================================================================
@@ -37,6 +37,7 @@
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
+// FIXME: There's another hard_reset() in reset.c. Why?
static void hard_reset(void)
{
/* full reset */
===================================================================
@@ -18,7 +18,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_GENERATE_ACPI_TABLES
object acpi_tables.o
===================================================================
@@ -19,7 +19,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_GENERATE_ACPI_TABLES
object acpi_tables.o
===================================================================
@@ -14,7 +14,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_GENERATE_ACPI_TABLES
object acpi_tables.o
===================================================================
@@ -35,7 +35,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
##
## Romcc output
===================================================================
@@ -1,28 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2007-2009 coresystems GmbH
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; version 2 of
- * the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
- * MA 02110-1301 USA
- */
-
-#include "arch/romcc_io.h"
-
-void hard_reset(void)
-{
- set_bios_reset();
- outb(0x06, 0x0cf9);
-}
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
object vgabios.o
if CONFIG_GENERATE_ACPI_TABLES
===================================================================
@@ -14,7 +14,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
##
## Romcc output
===================================================================
@@ -42,6 +42,7 @@
obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o
obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
ifdef POST_EVALUATION
===================================================================
@@ -42,16 +42,6 @@
#define RECVENA_CONFIG 0x0808090a
#define RECVENB_CONFIG 0x0808090a
-#if 0
-static void hard_reset(void)
-{
- /* enable cf9 */
- pci_write_config8(PCI_DEV(0, 0x04, 3), 0x41, 0xf1);
- /* reset */
- outb(0x0e, 0x0cf9);
-}
-#endif
-
static inline void activate_spd_rom(const struct mem_controller *ctrl)
{
/* nothing to do */
===================================================================
@@ -20,7 +20,7 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-object reset.o
+if CONFIG_HAVE_HARD_RESET object reset.o end
##
## Romcc output
===================================================================
@@ -43,7 +43,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
===================================================================
@@ -25,7 +25,6 @@
arch i386 end
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-# object reset.o
makerule ./failover.E
depends "$(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c ../romcc"
action "../romcc -E -O --label-prefix=failover -I$(TOP)/src -I. $(CPPFLAGS) $(CONFIG_MAINBOARD)/../../../arch/i386/lib/failover.c -o $@"
===================================================================
@@ -28,7 +28,6 @@
object get_bus_conf.o # Needed by irq_tables and mptable (and acpi_tables).
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-# object reset.o
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -16,7 +16,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
makerule ./auto.o
depends "$(CONFIG_MAINBOARD)/cache_as_ram_auto.c option_table.h"
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
##
## Romcc output
===================================================================
@@ -45,6 +45,7 @@
obj-$(CONFIG_GENERATE_MP_TABLE) += mptable.o
obj-$(CONFIG_GENERATE_PIRQ_TABLE) += irq_tables.o
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
ifdef POST_EVALUATION
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
===================================================================
@@ -50,8 +50,6 @@
object ./dsdt.o
end
-#object reset.o
-
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -50,8 +50,6 @@
object ./dsdt.o
end
-#object reset.o
-
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_USE_INIT
===================================================================
@@ -35,7 +35,6 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
if CONFIG_GENERATE_ACPI_TABLES
object acpi_tables.o
===================================================================
@@ -1,4 +1,5 @@
ROMCCFLAGS := -mcpu=p4 -O2
obj-$(CONFIG_GENERATE_ACPI_TABLES) += acpi_tables.o
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
include $(src)/mainboard/Makefile.romccboard.inc
===================================================================
@@ -12,7 +12,7 @@
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
if CONFIG_GENERATE_ACPI_TABLES object acpi_tables.o end
-object reset.o
+if CONFIG_HAVE_HARD_RESET object reset.o end
##
## Romcc output
===================================================================
@@ -4,7 +4,7 @@
obj-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.o
obj-$(CONFIG_GENERATE_ACPI_TABLES) += acpi_tables.o
obj-$(CONFIG_GENERATE_ACPI_TABLES) += dsdt.o
-obj-y += reset.o
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
# This is part of the conversion to init-obj and away from included code.
===================================================================
@@ -57,7 +57,7 @@
object ./dsdt.o
end
-object reset.o
+if CONFIG_HAVE_HARD_RESET object reset.o end
if CONFIG_USE_INIT
===================================================================
@@ -1,4 +1,4 @@
-obj-y += reset.o
+obj-$(CONFIG_HAVE_HARD_RESET) += reset.o
ROMCCFLAGS := -mcpu=p4 -O2
include $(src)/mainboard/Makefile.romccboard.inc
===================================================================
@@ -20,7 +20,7 @@
driver mainboard.o
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-object reset.o
+if CONFIG_HAVE_HARD_RESET object reset.o end
##
## Romcc output
===================================================================
@@ -39,7 +39,6 @@
end
if CONFIG_GENERATE_MP_TABLE object mptable.o end
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-# object reset.o
if CONFIG_USE_INIT
makerule ./cache_as_ram_auto.o
===================================================================
@@ -122,11 +122,6 @@
#include "cpu/amd/model_fxx/fidvid.c"
#include "northbridge/amd/amdk8/resourcemap.c"
-void hard_reset(void)
-{
- print_info("NO HARD RESET. FIX ME!\n");
-}
-
unsigned int get_sbdn(unsigned bus)
{
device_t dev;
===================================================================
@@ -15,7 +15,6 @@
driver mainboard.o
if CONFIG_GENERATE_PIRQ_TABLE object irq_tables.o end
-#object reset.o
##
## Romcc output
===================================================================
@@ -30,7 +30,6 @@
select SUPERIO_ITE_IT8712F
select USE_PRINTK_IN_CAR
select USE_DCACHE_RAM
- select HAVE_HARD_RESET
select IOAPIC
select HAVE_OPTION_TABLE
select HAVE_ACPI_TABLES
===================================================================
@@ -94,7 +94,7 @@
uses CONFIG_USE_PRINTK_IN_CAR
default CONFIG_HAVE_FALLBACK_BOOT = 1
-default CONFIG_HAVE_HARD_RESET = 1
+default CONFIG_HAVE_HARD_RESET = 0
default CONFIG_GENERATE_PIRQ_TABLE = 0
default CONFIG_GENERATE_MP_TABLE = 0
default CONFIG_HAVE_OPTION_TABLE = 1 # FIXME
===================================================================
@@ -123,12 +123,6 @@
#include "cpu/amd/model_fxx/fidvid.c"
#include "northbridge/amd/amdk8/resourcemap.c"
-#warning No hard_reset implemented for this board!
-void hard_reset(void)
-{
- print_info("NO HARD RESET. FIX ME!\n");
-}
-
void soft_reset(void)
{
uint8_t tmp;