mirror of
https://github.com/torvalds/linux.git
synced 2024-12-29 06:12:08 +00:00
powerpc: Merge maple support code to arch/powerpc/platforms/maple
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
d3f67fbb96
commit
0cb7b2afd7
@ -10,3 +10,4 @@ obj-$(CONFIG_4xx) += 4xx/
|
||||
obj-$(CONFIG_85xx) += 85xx/
|
||||
obj-$(CONFIG_PPC_PSERIES) += pseries/
|
||||
obj-$(CONFIG_PPC_ISERIES) += iseries/
|
||||
obj-$(CONFIG_PPC_MAPLE) += maple/
|
||||
|
1
arch/powerpc/platforms/maple/Makefile
Normal file
1
arch/powerpc/platforms/maple/Makefile
Normal file
@ -0,0 +1 @@
|
||||
obj-y += setup.o pci.o time.o
|
12
arch/powerpc/platforms/maple/maple.h
Normal file
12
arch/powerpc/platforms/maple/maple.h
Normal file
@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Declarations for maple-specific code.
|
||||
*
|
||||
* Maple is the name of a PPC970 evaluation board.
|
||||
*/
|
||||
extern int maple_set_rtc_time(struct rtc_time *tm);
|
||||
extern void maple_get_rtc_time(struct rtc_time *tm);
|
||||
extern unsigned long maple_get_boot_time(void);
|
||||
extern void maple_calibrate_decr(void);
|
||||
extern void maple_pci_init(void);
|
||||
extern void maple_pcibios_fixup(void);
|
||||
extern int maple_pci_get_legacy_ide_irq(struct pci_dev *dev, int channel);
|
@ -25,6 +25,8 @@
|
||||
#include <asm/iommu.h>
|
||||
#include <asm/ppc-pci.h>
|
||||
|
||||
#include "maple.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DBG(x...) printk(x)
|
||||
#else
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* arch/ppc64/kernel/maple_setup.c
|
||||
* Maple (970 eval board) setup code
|
||||
*
|
||||
* (c) Copyright 2004 Benjamin Herrenschmidt (benh@kernel.crashing.org),
|
||||
* IBM Corp.
|
||||
@ -62,19 +62,14 @@
|
||||
#include <asm/mpic.h>
|
||||
#include <asm/udbg.h>
|
||||
|
||||
#include "maple.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DBG(fmt...) udbg_printf(fmt)
|
||||
#else
|
||||
#define DBG(fmt...)
|
||||
#endif
|
||||
|
||||
extern int maple_set_rtc_time(struct rtc_time *tm);
|
||||
extern void maple_get_rtc_time(struct rtc_time *tm);
|
||||
extern unsigned long maple_get_boot_time(void);
|
||||
extern void maple_calibrate_decr(void);
|
||||
extern void maple_pci_init(void);
|
||||
extern void maple_pcibios_fixup(void);
|
||||
extern int maple_pci_get_legacy_ide_irq(struct pci_dev *dev, int channel);
|
||||
extern void generic_find_legacy_serial_ports(u64 *physport,
|
||||
unsigned int *default_speed);
|
||||
|
@ -36,6 +36,8 @@
|
||||
#include <asm/machdep.h>
|
||||
#include <asm/time.h>
|
||||
|
||||
#include "maple.h"
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DBG(x...) printk(x)
|
||||
#else
|
@ -55,8 +55,7 @@ obj-$(CONFIG_HVCS) += hvcserver.o
|
||||
|
||||
obj-$(CONFIG_PPC_PMAC) += udbg_scc.o
|
||||
|
||||
obj-$(CONFIG_PPC_MAPLE) += maple_setup.o maple_pci.o maple_time.o \
|
||||
udbg_16550.o
|
||||
obj-$(CONFIG_PPC_MAPLE) += udbg_16550.o
|
||||
|
||||
ifdef CONFIG_SMP
|
||||
obj-$(CONFIG_PPC_PMAC) += smp-tbsync.o
|
||||
|
Loading…
Reference in New Issue
Block a user