Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5548ed11 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

x86, VisWS: turn into generic arch, install proper PCI quirk



Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 5ab74722
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -28,6 +28,11 @@
char visws_board_type	= -1;
char visws_board_rev	= -1;

int is_visws_box(void)
{
	return visws_board_type >= 0;
}

static int __init visws_time_init_quirk(void)
{
	printk(KERN_INFO "Starting Cobalt Timer system clock\n");
+6 −1
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
#include <linux/pci.h>
#include <linux/init.h>

#include <asm/setup.h>
#include "cobalt.h"
#include "lithium.h"

@@ -107,8 +108,12 @@ static int __init pci_visws_init(void)

static __init int pci_subsys_init(void)
{
	if (!is_visws_box())
		return -1;

	pcibios_enable_irq = &pci_visws_enable_irq;
	pcibios_disable_irq = &pci_visws_disable_irq;

	pci_visws_init();
	pcibios_init();

+2 −0
Original line number Diff line number Diff line
@@ -10,8 +10,10 @@ void vsmp_init(void);

#ifdef CONFIG_X86_VISWS
extern void visws_early_detect(void);
extern int is_visws_box(void);
#else
static inline void visws_early_detect(void) { }
static inline int is_visws_box(void) { return 0; }
#endif

/*