Fix usb debug dongle support
- move enable_usbdebug() declaration to usbdebug.h - reinitialize debug driver in ramstage, as copying the data structure from romstage doesn't work right now. This way of copying data from romstage to ramstage is really board/cpu specific, and is likely to break often. So don't do it. Change-Id: I394678ded6679c1803e29eb691b926182bdcab68 Signed-off-by: Sven Schnelle <svens@stackframe.org> Reviewed-on: http://review.coreboot.org/355 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
28f6a43755
commit
20fc631ad2
@@ -8,4 +8,6 @@ driver-y += hda.c
|
||||
driver-y += ac97.c
|
||||
driver-y += pci.c
|
||||
ramstage-y += reset.c
|
||||
romstage-y += enable_usbdebug.c
|
||||
romstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
ramstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
smm-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
|
@@ -40,5 +40,4 @@ void sb600_enable(device_t dev);
|
||||
void sb600_lpc_port80(void);
|
||||
void sb600_pci_port80(void);
|
||||
|
||||
void enable_usbdebug(unsigned int port);
|
||||
#endif /* SB600_H */
|
||||
|
@@ -10,7 +10,9 @@ driver-y += pci.c
|
||||
ramstage-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.c
|
||||
romstage-y += reset.c
|
||||
ramstage-y += reset.c
|
||||
romstage-y += enable_usbdebug.c
|
||||
romstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
ramstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
smm-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
|
||||
romstage-y += early_setup.c
|
||||
romstage-y += smbus.c
|
||||
|
@@ -82,8 +82,6 @@ int acpi_is_wakeup_early(void);
|
||||
int s3_save_nvram_early(u32 dword, int size, int nvram_pos);
|
||||
int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos);
|
||||
|
||||
void enable_usbdebug(unsigned int port);
|
||||
|
||||
u32 __attribute__ ((weak)) get_sbdn(u32 bus);
|
||||
void __attribute__((weak)) enable_fid_change_on_sb(u32 sbbusn, u32 sbdn);
|
||||
#endif /* SB700_H */
|
||||
|
@@ -9,4 +9,6 @@ driver-y += pci.c
|
||||
driver-y += pcie.c
|
||||
ramstage-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.c
|
||||
ramstage-y += reset.c
|
||||
romstage-y += enable_usbdebug.c
|
||||
romstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
ramstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
smm-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
|
@@ -58,7 +58,6 @@ void sb800_clk_output_48Mhz(void);
|
||||
int s3_save_nvram_early(u32 dword, int size, int nvram_pos);
|
||||
int s3_load_nvram_early(int size, u32 *old_dword, int nvram_pos);
|
||||
|
||||
void enable_usbdebug(unsigned int port);
|
||||
#else
|
||||
void sb800_enable(device_t dev);
|
||||
void __attribute__((weak)) sb800_setup_sata_phys(struct device *dev);
|
||||
|
@@ -38,4 +38,6 @@ smm-$(CONFIG_HAVE_SMI_HANDLER) += smihandler.c
|
||||
|
||||
romstage-y += early_smbus.c
|
||||
romstage-$(CONFIG_USBDEBUG) += usb_debug.c
|
||||
ramstage-$(CONFIG_USBDEBUG) += usb_debug.c
|
||||
smm-$(CONFIG_USBDEBUG) += usb_debug.c
|
||||
|
||||
|
@@ -46,7 +46,6 @@ extern void i82801gx_enable(device_t dev);
|
||||
void enable_smbus(void);
|
||||
int smbus_read_byte(unsigned device, unsigned address);
|
||||
#endif
|
||||
void enable_usbdebug(unsigned int port);
|
||||
#endif
|
||||
|
||||
#define MAINBOARD_POWER_OFF 0
|
||||
|
@@ -15,7 +15,9 @@ ramstage-y += reset.c
|
||||
|
||||
ramstage-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.c
|
||||
|
||||
romstage-y += enable_usbdebug.c
|
||||
romstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
ramstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
smm-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
romstage-y += early_smbus.c
|
||||
|
||||
chipset_bootblock_inc += $(src)/southbridge/nvidia/ck804/romstrap.inc
|
||||
|
@@ -24,7 +24,6 @@
|
||||
#include "chip.h"
|
||||
|
||||
void ck804_enable(device_t dev);
|
||||
void enable_usbdebug(unsigned int port);
|
||||
|
||||
extern struct pci_operations ck804_pci_ops;
|
||||
|
||||
|
@@ -15,7 +15,9 @@ driver-$(CONFIG_GENERATE_ACPI_TABLES) += fadt.c
|
||||
|
||||
ramstage-y += reset.c
|
||||
|
||||
romstage-y += enable_usbdebug.c
|
||||
romstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
ramstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
smm-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
|
||||
chipset_bootblock_inc += $(src)/southbridge/nvidia/mcp55/romstrap.inc
|
||||
chipset_bootblock_lds += $(src)/southbridge/nvidia/mcp55/romstrap.lds
|
||||
|
@@ -35,7 +35,6 @@ extern struct pci_operations mcp55_pci_ops;
|
||||
#else
|
||||
#if !defined(__ROMCC__)
|
||||
void enable_fid_change_on_sb(unsigned sbbusn, unsigned sbdn);
|
||||
void enable_usbdebug(unsigned int port);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@@ -9,7 +9,10 @@ driver-y += sata.c
|
||||
driver-y += pcie.c
|
||||
driver-y += aza.c
|
||||
ramstage-y += reset.c
|
||||
romstage-y += enable_usbdebug.c
|
||||
|
||||
romstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
ramstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
smm-$(CONFIG_USBDEBUG) += enable_usbdebug.c
|
||||
|
||||
chipset_bootblock_inc += $(src)/southbridge/sis/sis966/romstrap.inc
|
||||
chipset_bootblock_lds += $(src)/southbridge/sis/sis966/romstrap.lds
|
||||
|
@@ -39,8 +39,4 @@
|
||||
void sis966_enable(device_t dev);
|
||||
#endif
|
||||
|
||||
#if defined(__PRE_RAM__) && !defined(__ROMCC__)
|
||||
void enable_usbdebug(unsigned int port);
|
||||
#endif
|
||||
|
||||
#endif /* SIS966_H */
|
||||
|
Reference in New Issue
Block a user