diff options
| -rw-r--r-- | arch/powerpc/kernel/Makefile | 6 | ||||
| -rw-r--r-- | arch/powerpc/kernel/udbg.c (renamed from arch/ppc64/kernel/udbg.c) | 0 | ||||
| -rw-r--r-- | arch/powerpc/kernel/udbg_16550.c (renamed from arch/ppc64/kernel/udbg_16550.c) | 0 | ||||
| -rw-r--r-- | arch/powerpc/kernel/udbg_scc.c (renamed from arch/ppc64/kernel/udbg_scc.c) | 0 | ||||
| -rw-r--r-- | arch/ppc64/kernel/Makefile | 7 | ||||
| -rw-r--r-- | include/asm-powerpc/udbg.h (renamed from include/asm-ppc64/udbg.h) | 14 |
6 files changed, 12 insertions, 15 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index c04bbd320594..c68eace12a9d 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile | |||
| @@ -16,7 +16,7 @@ obj-y := semaphore.o cputable.o ptrace.o syscalls.o \ | |||
| 16 | obj-$(CONFIG_PPC64) += setup_64.o binfmt_elf32.o sys_ppc32.o \ | 16 | obj-$(CONFIG_PPC64) += setup_64.o binfmt_elf32.o sys_ppc32.o \ |
| 17 | signal_64.o ptrace32.o systbl.o \ | 17 | signal_64.o ptrace32.o systbl.o \ |
| 18 | paca.o ioctl32.o cpu_setup_power4.o \ | 18 | paca.o ioctl32.o cpu_setup_power4.o \ |
| 19 | firmware.o sysfs.o | 19 | firmware.o sysfs.o udbg.o |
| 20 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o | 20 | obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o |
| 21 | obj-$(CONFIG_POWER4) += idle_power4.o | 21 | obj-$(CONFIG_POWER4) += idle_power4.o |
| 22 | obj-$(CONFIG_PPC_OF) += of_device.o | 22 | obj-$(CONFIG_PPC_OF) += of_device.o |
| @@ -29,6 +29,10 @@ obj-$(CONFIG_RTAS_PROC) += rtas-proc.o | |||
| 29 | obj-$(CONFIG_LPARCFG) += lparcfg.o | 29 | obj-$(CONFIG_LPARCFG) += lparcfg.o |
| 30 | obj-$(CONFIG_IBMVIO) += vio.o | 30 | obj-$(CONFIG_IBMVIO) += vio.o |
| 31 | obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o | 31 | obj-$(CONFIG_GENERIC_TBSYNC) += smp-tbsync.o |
| 32 | obj-$(CONFIG_PPC_PSERIES) += udbg_16550.o | ||
| 33 | obj-$(CONFIG_PPC_MAPLE) += udbg_16550.o | ||
| 34 | udbgscc-$(CONFIG_PPC64) := udbg_scc.o | ||
| 35 | obj-$(CONFIG_PPC_PMAC) += $(udbgscc-y) | ||
| 32 | 36 | ||
| 33 | ifeq ($(CONFIG_PPC_MERGE),y) | 37 | ifeq ($(CONFIG_PPC_MERGE),y) |
| 34 | 38 | ||
diff --git a/arch/ppc64/kernel/udbg.c b/arch/powerpc/kernel/udbg.c index 0d878e72fc44..0d878e72fc44 100644 --- a/arch/ppc64/kernel/udbg.c +++ b/arch/powerpc/kernel/udbg.c | |||
diff --git a/arch/ppc64/kernel/udbg_16550.c b/arch/powerpc/kernel/udbg_16550.c index 9313574ab935..9313574ab935 100644 --- a/arch/ppc64/kernel/udbg_16550.c +++ b/arch/powerpc/kernel/udbg_16550.c | |||
diff --git a/arch/ppc64/kernel/udbg_scc.c b/arch/powerpc/kernel/udbg_scc.c index 820c53551507..820c53551507 100644 --- a/arch/ppc64/kernel/udbg_scc.c +++ b/arch/powerpc/kernel/udbg_scc.c | |||
diff --git a/arch/ppc64/kernel/Makefile b/arch/ppc64/kernel/Makefile index 58b19f107656..7bf1a6f6f401 100644 --- a/arch/ppc64/kernel/Makefile +++ b/arch/ppc64/kernel/Makefile | |||
| @@ -13,7 +13,6 @@ endif | |||
| 13 | 13 | ||
| 14 | obj-y += idle.o dma.o \ | 14 | obj-y += idle.o dma.o \ |
| 15 | align.o \ | 15 | align.o \ |
| 16 | udbg.o \ | ||
| 17 | rtc.o \ | 16 | rtc.o \ |
| 18 | iommu.o vdso.o | 17 | iommu.o vdso.o |
| 19 | obj-y += vdso32/ vdso64/ | 18 | obj-y += vdso32/ vdso64/ |
| @@ -27,8 +26,6 @@ ifneq ($(CONFIG_PPC_MERGE),y) | |||
| 27 | obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o | 26 | obj-$(CONFIG_PPC_MULTIPLATFORM) += prom_init.o |
| 28 | endif | 27 | endif |
| 29 | 28 | ||
| 30 | obj-$(CONFIG_PPC_PSERIES) += udbg_16550.o | ||
| 31 | |||
| 32 | obj-$(CONFIG_KEXEC) += machine_kexec.o | 29 | obj-$(CONFIG_KEXEC) += machine_kexec.o |
| 33 | obj-$(CONFIG_MODULES) += module.o | 30 | obj-$(CONFIG_MODULES) += module.o |
| 34 | ifneq ($(CONFIG_PPC_MERGE),y) | 31 | ifneq ($(CONFIG_PPC_MERGE),y) |
| @@ -40,10 +37,6 @@ obj-$(CONFIG_BOOTX_TEXT) += btext.o | |||
| 40 | endif | 37 | endif |
| 41 | obj-$(CONFIG_HVCS) += hvcserver.o | 38 | obj-$(CONFIG_HVCS) += hvcserver.o |
| 42 | 39 | ||
| 43 | obj-$(CONFIG_PPC_PMAC) += udbg_scc.o | ||
| 44 | |||
| 45 | obj-$(CONFIG_PPC_MAPLE) += udbg_16550.o | ||
| 46 | |||
| 47 | obj-$(CONFIG_KPROBES) += kprobes.o | 40 | obj-$(CONFIG_KPROBES) += kprobes.o |
| 48 | 41 | ||
| 49 | ifneq ($(CONFIG_PPC_MERGE),y) | 42 | ifneq ($(CONFIG_PPC_MERGE),y) |
diff --git a/include/asm-ppc64/udbg.h b/include/asm-powerpc/udbg.h index e3b927991851..a383383bc4d4 100644 --- a/include/asm-ppc64/udbg.h +++ b/include/asm-powerpc/udbg.h | |||
| @@ -1,9 +1,3 @@ | |||
| 1 | #ifndef __UDBG_HDR | ||
| 2 | #define __UDBG_HDR | ||
| 3 | |||
| 4 | #include <linux/compiler.h> | ||
| 5 | #include <linux/init.h> | ||
| 6 | |||
| 7 | /* | 1 | /* |
| 8 | * c 2001 PPC 64 Team, IBM Corp | 2 | * c 2001 PPC 64 Team, IBM Corp |
| 9 | * | 3 | * |
| @@ -13,6 +7,12 @@ | |||
| 13 | * 2 of the License, or (at your option) any later version. | 7 | * 2 of the License, or (at your option) any later version. |
| 14 | */ | 8 | */ |
| 15 | 9 | ||
| 10 | #ifndef _ASM_POWERPC_UDBG_H | ||
| 11 | #define _ASM_POWERPC_UDBG_H | ||
| 12 | |||
| 13 | #include <linux/compiler.h> | ||
| 14 | #include <linux/init.h> | ||
| 15 | |||
| 16 | extern void (*udbg_putc)(unsigned char c); | 16 | extern void (*udbg_putc)(unsigned char c); |
| 17 | extern unsigned char (*udbg_getc)(void); | 17 | extern unsigned char (*udbg_getc)(void); |
| 18 | extern int (*udbg_getc_poll)(void); | 18 | extern int (*udbg_getc_poll)(void); |
| @@ -28,4 +28,4 @@ extern void udbg_init_uart(void __iomem *comport, unsigned int speed); | |||
| 28 | 28 | ||
| 29 | struct device_node; | 29 | struct device_node; |
| 30 | extern void udbg_init_scc(struct device_node *np); | 30 | extern void udbg_init_scc(struct device_node *np); |
| 31 | #endif | 31 | #endif /* _ASM_POWERPC_UDBG_H */ |
