Commit 07978ba9 authored by Len Brown's avatar Len Brown

Merge intel.com:/home/lenb/bk/26-latest-ref

into intel.com:/home/lenb/src/26-latest-dev
parents dad99cb4 34fe9c27
...@@ -6,7 +6,7 @@ This document describes the Linux kernel Makefiles. ...@@ -6,7 +6,7 @@ This document describes the Linux kernel Makefiles.
=== 1 Overview === 1 Overview
=== 2 Who does what === 2 Who does what
=== 3 The kbuild Makefiles === 3 The kbuild files
--- 3.1 Goal definitions --- 3.1 Goal definitions
--- 3.2 Built-in object goals - obj-y --- 3.2 Built-in object goals - obj-y
--- 3.3 Loadable module goals - obj-m --- 3.3 Loadable module goals - obj-m
...@@ -101,11 +101,14 @@ These people need to know about all aspects of the kernel Makefiles. ...@@ -101,11 +101,14 @@ These people need to know about all aspects of the kernel Makefiles.
This document is aimed towards normal developers and arch developers. This document is aimed towards normal developers and arch developers.
=== 3 The kbuild Makefiles === 3 The kbuild files
Most Makefiles within the kernel are kbuild Makefiles that use the Most Makefiles within the kernel are kbuild Makefiles that use the
kbuild infrastructure. This chapter introduce the syntax used in the kbuild infrastructure. This chapter introduce the syntax used in the
kbuild makefiles. kbuild makefiles.
The preferred name for the kbuild files is 'Kbuild' but 'Makefile' will
continue to be supported. All new developmen is expected to use the
Kbuild filename.
Section 3.1 "Goal definitions" is a quick intro, further chapters provide Section 3.1 "Goal definitions" is a quick intro, further chapters provide
more details, with real examples. more details, with real examples.
...@@ -707,15 +710,17 @@ When kbuild executes the following steps are followed (roughly): ...@@ -707,15 +710,17 @@ When kbuild executes the following steps are followed (roughly):
probe supported options: probe supported options:
#arch/i386/Makefile #arch/i386/Makefile
check_gcc = $(shell if $(CC) $(1) -S -o /dev/null -xc \
/dev/null\ > /dev/null 2>&1; then echo "$(1)"; \
else echo "$(2)"; fi)
cflags-$(CONFIG_MCYRIXIII) += $(call check_gcc,\
-march=c3,-march=i486)
CFLAGS += $(cflags-y) ...
cflags-$(CONFIG_MPENTIUMII) += $(call cc-option,\
-march=pentium2,-march=i686)
...
# Disable unit-at-a-time mode ...
CFLAGS += $(call cc-option,-fno-unit-at-a-time)
...
The above examples both utilise the trick that a config option expands The first examples utilises the trick that a config option expands
to 'y' when selected. to 'y' when selected.
CFLAGS_KERNEL $(CC) options specific for built-in CFLAGS_KERNEL $(CC) options specific for built-in
......
...@@ -156,7 +156,7 @@ localversion-files := $(wildcard $(objtree)/localversion* $(srctree)/localversio ...@@ -156,7 +156,7 @@ localversion-files := $(wildcard $(objtree)/localversion* $(srctree)/localversio
endif endif
LOCALVERSION = $(subst $(space),, \ LOCALVERSION = $(subst $(space),, \
$(shell cat /dev/null $(localversion-files)) \ $(shell cat /dev/null $(localversion-files:%~=)) \
$(patsubst "%",%,$(CONFIG_LOCALVERSION))) $(patsubst "%",%,$(CONFIG_LOCALVERSION)))
KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION) KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION)
...@@ -440,6 +440,12 @@ ifeq ($(config-targets),1) ...@@ -440,6 +440,12 @@ ifeq ($(config-targets),1)
# *config targets only - make sure prerequisites are updated, and descend # *config targets only - make sure prerequisites are updated, and descend
# in scripts/kconfig to make the *config target # in scripts/kconfig to make the *config target
# Read arch specific Makefile to set KBUILD_DEFCONFIG as needed.
# KBUILD_DEFCONFIG may point out an alternative default configuration
# used for 'make defconfig'
include $(srctree)/arch/$(ARCH)/Makefile
export KBUILD_DEFCONFIG
config: scripts_basic outputmakefile FORCE config: scripts_basic outputmakefile FORCE
$(Q)$(MAKE) $(build)=scripts/kconfig $@ $(Q)$(MAKE) $(build)=scripts/kconfig $@
%config: scripts_basic outputmakefile FORCE %config: scripts_basic outputmakefile FORCE
......
...@@ -13,6 +13,10 @@ OBJCOPYFLAGS :=-O binary -R .note -R .comment -S ...@@ -13,6 +13,10 @@ OBJCOPYFLAGS :=-O binary -R .note -R .comment -S
GZFLAGS :=-9 GZFLAGS :=-9
#CFLAGS +=-pipe #CFLAGS +=-pipe
# Do not use arch/arm/defconfig - it's always outdated.
# Select a platform tht is kept up-to-date
KBUILD_DEFCONFIG := versatile_defconfig
ifeq ($(CONFIG_FRAME_POINTER),y) ifeq ($(CONFIG_FRAME_POINTER),y)
CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog
endif endif
......
This diff is collapsed.
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <linux/a.out.h> #include <linux/a.out.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/config.h> #include <linux/config.h>
#include <linux/version.h> #include <linux/utsname.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/reboot.h> #include <linux/reboot.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -234,7 +234,8 @@ void show_regs(struct pt_regs * regs) ...@@ -234,7 +234,8 @@ void show_regs(struct pt_regs * regs)
if (regs->xcs & 3) if (regs->xcs & 3)
printk(" ESP: %04x:%08lx",0xffff & regs->xss,regs->esp); printk(" ESP: %04x:%08lx",0xffff & regs->xss,regs->esp);
printk(" EFLAGS: %08lx %s (%s)\n",regs->eflags, print_tainted(),UTS_RELEASE); printk(" EFLAGS: %08lx %s (%s)\n",
regs->eflags, print_tainted(), system_utsname.release);
printk("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n", printk("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
regs->eax,regs->ebx,regs->ecx,regs->edx); regs->eax,regs->ebx,regs->ecx,regs->edx);
printk("ESI: %08lx EDI: %08lx EBP: %08lx", printk("ESI: %08lx EDI: %08lx EBP: %08lx",
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <linux/highmem.h> #include <linux/highmem.h>
#include <linux/kallsyms.h> #include <linux/kallsyms.h>
#include <linux/ptrace.h> #include <linux/ptrace.h>
#include <linux/version.h> #include <linux/utsname.h>
#include <linux/kprobes.h> #include <linux/kprobes.h>
#ifdef CONFIG_EISA #ifdef CONFIG_EISA
...@@ -218,7 +218,7 @@ void show_registers(struct pt_regs *regs) ...@@ -218,7 +218,7 @@ void show_registers(struct pt_regs *regs)
printk("CPU: %d\nEIP: %04x:[<%08lx>] %s VLI\nEFLAGS: %08lx" printk("CPU: %d\nEIP: %04x:[<%08lx>] %s VLI\nEFLAGS: %08lx"
" (%s) \n", " (%s) \n",
smp_processor_id(), 0xffff & regs->xcs, regs->eip, smp_processor_id(), 0xffff & regs->xcs, regs->eip,
print_tainted(), regs->eflags, UTS_RELEASE); print_tainted(), regs->eflags, system_utsname.release);
print_symbol("EIP is at %s\n", regs->eip); print_symbol("EIP is at %s\n", regs->eip);
printk("eax: %08lx ebx: %08lx ecx: %08lx edx: %08lx\n", printk("eax: %08lx ebx: %08lx ecx: %08lx edx: %08lx\n",
regs->eax, regs->ebx, regs->ecx, regs->edx); regs->eax, regs->ebx, regs->ecx, regs->edx);
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
LDFLAGS := LDFLAGS :=
OBJCOPYFLAGS := -O binary -R .note -R .comment -S OBJCOPYFLAGS := -O binary -R .note -R .comment -S
LDFLAGS_vmlinux := -e startup_32 LDFLAGS_vmlinux := -e startup_32
LDFLAGS_BLOB := --format binary --oformat elf32-m32r
CFLAGS += -pipe -fno-schedule-insns CFLAGS += -pipe -fno-schedule-insns
CFLAGS_KERNEL += -mmodel=medium CFLAGS_KERNEL += -mmodel=medium
......
...@@ -28,9 +28,6 @@ $(obj)/vmlinux.bin: vmlinux FORCE ...@@ -28,9 +28,6 @@ $(obj)/vmlinux.bin: vmlinux FORCE
$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
$(call if_changed,gzip) $(call if_changed,gzip)
$(obj)/vmlinux.lds: $(obj)/vmlinux.lds.S FORCE
$(CPP) $(EXTRA_AFLAGS) -C -P -I include $< >$@
LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r-linux -T LDFLAGS_piggy.o := -r --format binary --oformat elf32-m32r-linux -T
OBJCOPYFLAGS += -R .empty_zero_page OBJCOPYFLAGS += -R .empty_zero_page
......
...@@ -74,37 +74,6 @@ config ENET_BIG_BUFFERS ...@@ -74,37 +74,6 @@ config ENET_BIG_BUFFERS
Allocate large buffers for MPC8xx Etherenet. Increases throughput Allocate large buffers for MPC8xx Etherenet. Increases throughput
and decreases the likelihood of dropped packets, but costs memory. and decreases the likelihood of dropped packets, but costs memory.
config SMC2_UART
bool "Use SMC2 for UART"
help
If you would like to use SMC2 as a serial port, say Y here.
If in doubt, say Y here.
config ALTSMC2
bool "Use Alternate SMC2 I/O (823/850)"
depends on SMC2_UART
help
If you have an MPC823 or MPC850 and would like to use the alternate
SMC2 for I/O, say Y here.
If in doubt, say N here.
config CONS_SMC2
bool "Use SMC2 for Console"
depends on SMC2_UART
help
If you are going to have a serial console on your device and are
using SMC2 for your serial port, say Y here, else say N.
config USE_SCC_IO
bool "Enable SCC2 and SCC3 for UART"
help
If your MPC8xx board has other SCC ports that you would like to use
for for a serial port, say Y here.
If in doubt, say N here.
config HTDMSOUND config HTDMSOUND
bool "Embedded Planet HIOX Audio" bool "Embedded Planet HIOX Audio"
depends on SOUND=y depends on SOUND=y
...@@ -134,13 +103,36 @@ config 8xx_CPU6 ...@@ -134,13 +103,36 @@ config 8xx_CPU6
If in doubt, say N here. If in doubt, say N here.
config UCODE_PATCH choice
bool "I2C/SPI Microcode Patch" prompt "Microcode patch selection"
default NO_UCODE_PATCH
help
Help not implemented yet, coming soon.
config NO_UCODE_PATCH
bool "None"
config USB_SOF_UCODE_PATCH
bool "USB SOF patch"
help
Help not implemented yet, coming soon.
config I2C_SPI_UCODE_PATCH
bool "I2C/SPI relocation patch"
help help
Motorola releases microcode updates for their 8xx CPM modules. The Help not implemented yet, coming soon.
microcode update file has updates for IIC, SMC and USB. Currently only
the USB update is available by default, if the MPC8xx USB option is config I2C_SPI_SMC1_UCODE_PATCH
enabled. If in doubt, say 'N' here. bool "I2C/SPI/SMC1 relocation patch"
help
Help not implemented yet, coming soon.
endchoice
config UCODE_PATCH
bool
default y
depends on !NO_UCODE_PATCH
endmenu endmenu
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Makefile for the linux MPC8xx ppc-specific parts of comm processor # Makefile for the linux MPC8xx ppc-specific parts of comm processor
# #
obj-y := commproc.o uart.o obj-y := commproc.o
obj-$(CONFIG_FEC_ENET) += fec.o obj-$(CONFIG_FEC_ENET) += fec.o
obj-$(CONFIG_SCC_ENET) += enet.o obj-$(CONFIG_SCC_ENET) += enet.o
......
This diff is collapsed.
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/dma-mapping.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <asm/8xx_immap.h> #include <asm/8xx_immap.h>
...@@ -581,10 +582,10 @@ static void set_multicast_list(struct net_device *dev) ...@@ -581,10 +582,10 @@ static void set_multicast_list(struct net_device *dev)
/* Log any net taps. */ /* Log any net taps. */
printk("%s: Promiscuous mode enabled.\n", dev->name); printk("%s: Promiscuous mode enabled.\n", dev->name);
cep->sccp->scc_pmsr |= SCC_PMSR_PRO; cep->sccp->scc_psmr |= SCC_PSMR_PRO;
} else { } else {
cep->sccp->scc_pmsr &= ~SCC_PMSR_PRO; cep->sccp->scc_psmr &= ~SCC_PSMR_PRO;
if (dev->flags & IFF_ALLMULTI) { if (dev->flags & IFF_ALLMULTI) {
/* Catch all multicast addresses, so set the /* Catch all multicast addresses, so set the
...@@ -835,7 +836,8 @@ static int __init scc_enet_init(void) ...@@ -835,7 +836,8 @@ static int __init scc_enet_init(void)
/* Allocate a page. /* Allocate a page.
*/ */
ba = (unsigned char *)consistent_alloc(GFP_KERNEL, PAGE_SIZE, &mem_addr); ba = (unsigned char *)dma_alloc_coherent(NULL, PAGE_SIZE,
&mem_addr, GFP_KERNEL);
/* BUG: no check for failure */ /* BUG: no check for failure */
/* Initialize the BD for every fragment in the page. /* Initialize the BD for every fragment in the page.
...@@ -889,7 +891,7 @@ static int __init scc_enet_init(void) ...@@ -889,7 +891,7 @@ static int __init scc_enet_init(void)
/* Set processing mode. Use Ethernet CRC, catch broadcast, and /* Set processing mode. Use Ethernet CRC, catch broadcast, and
* start frame search 22 bit times after RENA. * start frame search 22 bit times after RENA.
*/ */
sccp->scc_pmsr = (SCC_PMSR_ENCRC | SCC_PMSR_NIB22); sccp->scc_psmr = (SCC_PSMR_ENCRC | SCC_PSMR_NIB22);
/* It is now OK to enable the Ethernet transmitter. /* It is now OK to enable the Ethernet transmitter.
* Unfortunately, there are board implementation differences here. * Unfortunately, there are board implementation differences here.
......
...@@ -1684,7 +1684,7 @@ static int __init fec_enet_init(void) ...@@ -1684,7 +1684,7 @@ static int __init fec_enet_init(void)
/* Install our interrupt handler. /* Install our interrupt handler.
*/ */
if (request_8xxirq(FEC_INTERRUPT, fec_enet_interrupt, 0, "fec", dev) != 0) if (request_irq(FEC_INTERRUPT, fec_enet_interrupt, 0, "fec", dev) != 0)
panic("Could not allocate FEC IRQ!"); panic("Could not allocate FEC IRQ!");
#ifdef CONFIG_RPXCLASSIC #ifdef CONFIG_RPXCLASSIC
...@@ -1705,7 +1705,7 @@ static int __init fec_enet_init(void) ...@@ -1705,7 +1705,7 @@ static int __init fec_enet_init(void)
((immap_t *)IMAP_ADDR)->im_siu_conf.sc_siel |= ((immap_t *)IMAP_ADDR)->im_siu_conf.sc_siel |=
(0x80000000 >> PHY_INTERRUPT); (0x80000000 >> PHY_INTERRUPT);
if (request_8xxirq(PHY_INTERRUPT, mii_link_interrupt, 0, "mii", dev) != 0) if (request_irq(PHY_INTERRUPT, mii_link_interrupt, 0, "mii", dev) != 0)
panic("Could not allocate MII IRQ!"); panic("Could not allocate MII IRQ!");
#endif #endif
......
...@@ -19,18 +19,12 @@ ...@@ -19,18 +19,12 @@
#include <asm/8xx_immap.h> #include <asm/8xx_immap.h>
#include <asm/commproc.h> #include <asm/commproc.h>
/* Define this to get SMC patches as well. You need to modify the uart /*
* driver as well...... * I2C/SPI relocation patch arrays.
#define USE_SMC_PATCH 1
*/ */
#ifdef CONFIG_USB_MPC8xx #ifdef CONFIG_I2C_SPI_UCODE_PATCH
#define USE_USB_SOF_PATCH
#endif
#ifdef USE_IIC_PATCH
#define PATCH_DEFINED
/* IIC/SPI */
uint patch_2000[] = { uint patch_2000[] = {
0x7FFFEFD9, 0x7FFFEFD9,
0x3FFD0000, 0x3FFD0000,
...@@ -183,11 +177,12 @@ uint patch_2f00[] = { ...@@ -183,11 +177,12 @@ uint patch_2f00[] = {
}; };
#endif #endif
#ifdef USE_SMC_PATCH /*
#define PATCH_DEFINED * I2C/SPI/SMC1 relocation patch arrays.
/* SMC2/IIC/SPI Patch */ */
/* This is the area from 0x2000 to 0x23ff.
*/ #ifdef CONFIG_I2C_SPI_SMC1_UCODE_PATCH
uint patch_2000[] = { uint patch_2000[] = {
0x3fff0000, 0x3fff0000,
0x3ffd0000, 0x3ffd0000,
...@@ -511,8 +506,6 @@ uint patch_2000[] = { ...@@ -511,8 +506,6 @@ uint patch_2000[] = {
0x6079e2bb 0x6079e2bb
}; };
/* This is from 0x2f00 to 0x2fff
*/
uint patch_2f00[] = { uint patch_2f00[] = {
0x30303030, 0x30303030,
0x3e3e3434, 0x3e3e3434,
...@@ -581,8 +574,6 @@ uint patch_2f00[] = { ...@@ -581,8 +574,6 @@ uint patch_2f00[] = {
}; };
uint patch_2e00[] = { uint patch_2e00[] = {
/* This is from 0x2e00 to 0x2e3c
*/
0x27eeeeee, 0x27eeeeee,
0xeeeeeeee, 0xeeeeeeee,
0xeeeeeeee, 0xeeeeeeee,
...@@ -602,8 +593,12 @@ uint patch_2e00[] = { ...@@ -602,8 +593,12 @@ uint patch_2e00[] = {
}; };
#endif #endif
#ifdef USE_USB_SOF_PATCH /*
#define PATCH_DEFINED * USB SOF patch arrays.
*/
#ifdef CONFIG_USB_SOF_UCODE_PATCH
uint patch_2000[] = { uint patch_2000[] = {
0x7fff0000, 0x7fff0000,
0x7ffd0000, 0x7ffd0000,
...@@ -626,33 +621,21 @@ uint patch_2f00[] = { ...@@ -626,33 +621,21 @@ uint patch_2f00[] = {
}; };
#endif #endif
/* Load the microcode patch. This is called early in the CPM initialization
* with the controller in the reset state. We enable the processor after
* we load the patch.
*/
void void
cpm_load_patch(volatile immap_t *immr) cpm_load_patch(volatile immap_t *immr)
{ {
#ifdef PATCH_DEFINED volatile uint *dp; /* Dual-ported RAM. */
volatile uint *dp;
volatile cpm8xx_t *commproc; volatile cpm8xx_t *commproc;
volatile iic_t *iip; volatile iic_t *iip;
volatile spi_t *spp; volatile spi_t *spp;
volatile smc_uart_t *smp;
int i; int i;
commproc = (cpm8xx_t *)&immr->im_cpm; commproc = (cpm8xx_t *)&immr->im_cpm;
/* We work closely with commproc.c. We know it only allocates #ifdef CONFIG_USB_SOF_UCODE_PATCH
* from data only space.
* For this particular patch, we only use the bottom 512 bytes
* and the upper 256 byte extension. We will use the space
* starting at 1K for the relocated parameters, as the general
* CPM allocation won't come from that area.
*/
commproc->cp_rccr = 0; commproc->cp_rccr = 0;
/* Copy the patch into DPRAM.
*/
dp = (uint *)(commproc->cp_dpmem); dp = (uint *)(commproc->cp_dpmem);
for (i=0; i<(sizeof(patch_2000)/4); i++) for (i=0; i<(sizeof(patch_2000)/4); i++)
*dp++ = patch_2000[i]; *dp++ = patch_2000[i];
...@@ -661,29 +644,26 @@ cpm_load_patch(volatile immap_t *immr) ...@@ -661,29 +644,26 @@ cpm_load_patch(volatile immap_t *immr)
for (i=0; i<(sizeof(patch_2f00)/4); i++) for (i=0; i<(sizeof(patch_2f00)/4); i++)
*dp++ = patch_2f00[i]; *dp++ = patch_2f00[i];
#ifdef USE_USB_SOF_PATCH commproc->cp_rccr = 0x0009;
#if 0 /* usb patch should not relocate iic */
iip = (iic_t *)&commproc->cp_dparam[PROFF_IIC];
#define RPBASE 0x0030
iip->iic_rpbase = RPBASE;
/* Put SPI above the IIC, also 32-byte aligned. printk("USB SOF microcode patch installed\n");
*/ #endif /* CONFIG_USB_SOF_UCODE_PATCH */
i = (RPBASE + sizeof(iic_t) + 31) & ~31;
spp = (spi_t *)&commproc->cp_dparam[PROFF_SPI];
spp->spi_rpbase = i;
#endif
/* Enable uCode fetches from DPRAM. */ #if defined(CONFIG_I2C_SPI_UCODE_PATCH) || \
commproc->cp_rccr = 0x0009; defined(CONFIG_I2C_SPI_SMC1_UCODE_PATCH)
commproc->cp_rccr = 0;
printk("USB uCode patch installed\n"); dp = (uint *)(commproc->cp_dpmem);
#endif /* USE_USB_SOF_PATCH */ for (i=0; i<(sizeof(patch_2000)/4); i++)
*dp++ = patch_2000[i];
#if defined(USE_SMC_PATCH) || defined(USE_IIC_PATCH) dp = (uint *)&(commproc->cp_dpmem[0x0f00]);
for (i=0; i<(sizeof(patch_2f00)/4); i++)
*dp++ = patch_2f00[i];
iip = (iic_t *)&commproc->cp_dparam[PROFF_IIC]; iip = (iic_t *)&commproc->cp_dparam[PROFF_IIC];
#define RPBASE 0x0400 # define RPBASE 0x0500
iip->iic_rpbase = RPBASE; iip->iic_rpbase = RPBASE;
/* Put SPI above the IIC, also 32-byte aligned. /* Put SPI above the IIC, also 32-byte aligned.
...@@ -692,58 +672,46 @@ cpm_load_patch(volatile immap_t *immr) ...@@ -692,58 +672,46 @@ cpm_load_patch(volatile immap_t *immr)
spp = (spi_t *)&commproc->cp_dparam[PROFF_SPI]; spp = (spi_t *)&commproc->cp_dparam[PROFF_SPI];
spp->spi_rpbase = i; spp->spi_rpbase = i;
#ifdef USE_SMC_PATCH # if defined(CONFIG_I2C_SPI_UCODE_PATCH)
commproc->cp_cpmcr1 = 0x802a;
commproc->cp_cpmcr2 = 0x8028;
commproc->cp_cpmcr3 = 0x802e;
commproc->cp_cpmcr4 = 0x802c;
commproc->cp_rccr = 1;
printk("I2C/SPI microcode patch installed.\n");
# endif /* CONFIG_I2C_SPI_UCODE_PATCH */
# if defined(CONFIG_I2C_SPI_SMC1_UCODE_PATCH)
dp = (uint *)&(commproc->cp_dpmem[0x0e00]); dp = (uint *)&(commproc->cp_dpmem[0x0e00]);
for (i=0; i<(sizeof(patch_2e00)/4); i++) for (i=0; i<(sizeof(patch_2e00)/4); i++)
*dp++ = patch_2e00[i]; *dp++ = patch_2e00[i];
/* Enable the traps to get to it.
*/
commproc->cp_cpmcr1 = 0x8080; commproc->cp_cpmcr1 = 0x8080;
commproc->cp_cpmcr2 = 0x808a; commproc->cp_cpmcr2 = 0x808a;
commproc->cp_cpmcr3 = 0x8028; commproc->cp_cpmcr3 = 0x8028;
commproc->cp_cpmcr4 = 0x802a; commproc->cp_cpmcr4 = 0x802a;
/* Enable uCode fetches from DPRAM.
*/
commproc->cp_rccr = 3; commproc->cp_rccr = 3;
#endif
#ifdef USE_IIC_PATCH
/* Enable the traps to get to it.
*/
commproc->cp_cpmcr1 = 0x802a;
commproc->cp_cpmcr2 = 0x8028;
commproc->cp_cpmcr3 = 0x802e;
commproc->cp_cpmcr4 = 0x802c;
/* Enable uCode fetches from DPRAM. smp = (smc_uart_t *)&commproc->cp_dparam[PROFF_SMC1];
*/ smp->smc_rpbase = 0x1FC0;
commproc->cp_rccr = 1;
printk("I2C uCode patch installed\n");
#endif
/* Relocate the IIC and SPI parameter areas. These have to printk("I2C/SPI/SMC1 microcode patch installed.\n");
* aligned on 32-byte boundaries. # endif /* CONFIG_I2C_SPI_SMC1_UCODE_PATCH) */
*/
iip = (iic_t *)&commproc->cp_dparam[PROFF_IIC];
iip->iic_rpbase = RPBASE;
/* Put SPI above the IIC, also 32-byte aligned.
*/
i = (RPBASE + sizeof(iic_t) + 31) & ~31;
spp = (spi_t *)&commproc->cp_dparam[PROFF_SPI];
spp->spi_rpbase = i;
#endif /* USE_SMC_PATCH || USE_IIC_PATCH */ #endif /* some variation of the I2C/SPI patch was selected */
#endif /* PATCH_DEFINED */
} }
/*
* Take this entire routine out, since no one calls it and its
* logic is suspect.
*/
#if 0
void void
verify_patch(volatile immap_t *immr) verify_patch(volatile immap_t *immr)
{ {
#ifdef PATCH_DEFINED
volatile uint *dp; volatile uint *dp;
volatile cpm8xx_t *commproc; volatile cpm8xx_t *commproc;
int i; int i;
...@@ -772,6 +740,5 @@ verify_patch(volatile immap_t *immr) ...@@ -772,6 +740,5 @@ verify_patch(volatile immap_t *immr)
} }
commproc->cp_rccr = 0x0009; commproc->cp_rccr = 0x0009;
#endif /* PATCH_DEFINED */
} }
#endif
This diff is collapsed.
...@@ -74,6 +74,7 @@ config POWER4 ...@@ -74,6 +74,7 @@ config POWER4
bool "POWER4 and 970 (G5)" bool "POWER4 and 970 (G5)"
config 8xx config 8xx
depends on BROKEN
bool "8xx" bool "8xx"
config E500 config E500
...@@ -756,11 +757,6 @@ config PC_KEYBOARD ...@@ -756,11 +757,6 @@ config PC_KEYBOARD
bool "PC PS/2 style Keyboard" bool "PC PS/2 style Keyboard"
depends on 4xx || CPM2 depends on 4xx || CPM2
config SERIAL_CONSOLE
bool
depends on 8xx
default y
config SERIAL_CONSOLE_BAUD config SERIAL_CONSOLE_BAUD
int int
depends on EV64260 depends on EV64260
......
...@@ -2,9 +2,22 @@ ...@@ -2,9 +2,22 @@
# Makefile for some libs needed by zImage. # Makefile for some libs needed by zImage.
# #
CFLAGS_kbd.o += -Idrivers/char CFLAGS_kbd.o := -Idrivers/char
CFLAGS_vreset.o := -I$(srctree)/arch/ppc/boot/include
lib-y := $(addprefix ../../../../lib/zlib_inflate/, \ zlib := infblock.c infcodes.c inffast.c inflate.c inftrees.c infutil.c
infblock.o infcodes.o inffast.o inflate.o inftrees.o infutil.o)
lib-y += div64.o lib-y += $(zlib:.c=.o) div64.o
lib-$(CONFIG_VGA_CONSOLE) += vreset.o kbd.o lib-$(CONFIG_VGA_CONSOLE) += vreset.o kbd.o
# zlib files needs header from their original place
EXTRA_CFLAGS += -Ilib/zlib_inflate
quiet_cmd_copy_zlib = COPY $@
cmd_copy_zlib = cat $< > $@
$(addprefix $(obj)/,$(zlib)): $(obj)/%: $(srctree)/lib/zlib_inflate/%
$(call cmd,copy_zlib)
clean-files := $(zlib)
...@@ -295,25 +295,27 @@ CONFIG_SOUND_GAMEPORT=y ...@@ -295,25 +295,27 @@ CONFIG_SOUND_GAMEPORT=y
# Macintosh device drivers # Macintosh device drivers
# #
#
# Character devices
#
# CONFIG_SERIAL_NONSTANDARD is not set
# #
# Serial drivers # Serial drivers
# #
CONFIG_SERIAL_8250=y # CONFIG_SERIAL_8250 is not set
CONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_SERIAL_8250_EXTENDED is not set
# #
# Non-8250 serial port support # Non-8250 serial port support
# #
CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not set
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
CONFIG_SERIAL_CPM_SMC2=y
# CONFIG_SERIAL_CPM_ALT_SMC2 is not set
CONFIG_UNIX98_PTYS=y CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=32 # CONFIG_LEGACY_PTYS is not set
# #
# I2C support # I2C support
...@@ -478,10 +480,6 @@ CONFIG_SCC1_ENET=y ...@@ -478,10 +480,6 @@ CONFIG_SCC1_ENET=y
# CONFIG_SCC3_ENET is not set # CONFIG_SCC3_ENET is not set
# CONFIG_FEC_ENET is not set # CONFIG_FEC_ENET is not set
CONFIG_ENET_BIG_BUFFERS=y CONFIG_ENET_BIG_BUFFERS=y
CONFIG_SMC2_UART=y
# CONFIG_ALTSMC2 is not set
# CONFIG_CONS_SMC2 is not set
# CONFIG_USE_SCC_IO is not set
# #
# Generic MPC8xx Options # Generic MPC8xx Options
......
...@@ -319,25 +319,26 @@ CONFIG_SOUND_GAMEPORT=y ...@@ -319,25 +319,26 @@ CONFIG_SOUND_GAMEPORT=y
# Macintosh device drivers # Macintosh device drivers
# #
#
# Character devices
#
# CONFIG_SERIAL_NONSTANDARD is not set
# #
# Serial drivers # Serial drivers
# #
CONFIG_SERIAL_8250=y # CONFIG_SERIAL_8250 is not set
CONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_SERIAL_8250_EXTENDED is not set
# #
# Non-8250 serial port support # Non-8250 serial port support
# #
CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not set
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
# CONFIG_SERIAL_CPM_SMC2 is not set
CONFIG_UNIX98_PTYS=y CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=32 # CONFIG_LEGACY_PTYS is not set
# #
# I2C support # I2C support
...@@ -507,8 +508,6 @@ CONFIG_FEC_LXT970=y ...@@ -507,8 +508,6 @@ CONFIG_FEC_LXT970=y
CONFIG_FEC_LXT971=y CONFIG_FEC_LXT971=y
CONFIG_FEC_QS6612=y CONFIG_FEC_QS6612=y
CONFIG_ENET_BIG_BUFFERS=y CONFIG_ENET_BIG_BUFFERS=y
# CONFIG_SMC2_UART is not set
# CONFIG_USE_SCC_IO is not set
# #
# Generic MPC8xx Options # Generic MPC8xx Options
......
...@@ -92,7 +92,8 @@ CONFIG_KERNEL_ELF=y ...@@ -92,7 +92,8 @@ CONFIG_KERNEL_ELF=y
# Parallel port support # Parallel port support
# #
# CONFIG_PARPORT is not set # CONFIG_PARPORT is not set
# CONFIG_CMDLINE_BOOL is not set CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="console=ttyCPM1"
# #
# Advanced setup # Advanced setup
...@@ -296,25 +297,27 @@ CONFIG_SOUND_GAMEPORT=y ...@@ -296,25 +297,27 @@ CONFIG_SOUND_GAMEPORT=y
# Macintosh device drivers # Macintosh device drivers
# #
#
# Character devices
#
# CONFIG_SERIAL_NONSTANDARD is not set
# #
# Serial drivers # Serial drivers
# #
CONFIG_SERIAL_8250=y # CONFIG_SERIAL_8250 is not set
CONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_SERIAL_8250_EXTENDED is not set
# #
# Non-8250 serial port support # Non-8250 serial port support
# #
CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not set
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
CONFIG_SERIAL_CPM_SMC2=y
CONFIG_SERIAL_CPM_ALT_SMC2=y
CONFIG_UNIX98_PTYS=y CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=32 # CONFIG_LEGACY_PTYS is not set
# #
# I2C support # I2C support
...@@ -479,10 +482,6 @@ CONFIG_SCC_ENET=y ...@@ -479,10 +482,6 @@ CONFIG_SCC_ENET=y
CONFIG_SCC3_ENET=y CONFIG_SCC3_ENET=y
# CONFIG_FEC_ENET is not set # CONFIG_FEC_ENET is not set
CONFIG_ENET_BIG_BUFFERS=y CONFIG_ENET_BIG_BUFFERS=y
CONFIG_SMC2_UART=y
CONFIG_ALTSMC2=y
CONFIG_CONS_SMC2=y
# CONFIG_USE_SCC_IO is not set
# #
# Generic MPC8xx Options # Generic MPC8xx Options
......
...@@ -295,25 +295,27 @@ CONFIG_SOUND_GAMEPORT=y ...@@ -295,25 +295,27 @@ CONFIG_SOUND_GAMEPORT=y
# Macintosh device drivers # Macintosh device drivers
# #
#
# Character devices
#
# CONFIG_SERIAL_NONSTANDARD is not set
# #
# Serial drivers # Serial drivers
# #
CONFIG_SERIAL_8250=y # CONFIG_SERIAL_8250 is not set
CONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_SERIAL_8250_EXTENDED is not set
# #
# Non-8250 serial port support # Non-8250 serial port support
# #
CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not set
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
# CONFIG_SERIAL_CPM_SMC2 is not set
CONFIG_SERIAL_CPM_ALT_SMC2=y
CONFIG_UNIX98_PTYS=y CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=32 # CONFIG_LEGACY_PTYS is not set
# #
# I2C support # I2C support
...@@ -478,10 +480,6 @@ CONFIG_SCC2_ENET=y ...@@ -478,10 +480,6 @@ CONFIG_SCC2_ENET=y
# CONFIG_SCC3_ENET is not set # CONFIG_SCC3_ENET is not set
# CONFIG_FEC_ENET is not set # CONFIG_FEC_ENET is not set
CONFIG_ENET_BIG_BUFFERS=y CONFIG_ENET_BIG_BUFFERS=y
CONFIG_SMC2_UART=y
CONFIG_ALTSMC2=y
# CONFIG_CONS_SMC2 is not set
# CONFIG_USE_SCC_IO is not set
# #
# Generic MPC8xx Options # Generic MPC8xx Options
......
...@@ -296,25 +296,27 @@ CONFIG_SOUND_GAMEPORT=y ...@@ -296,25 +296,27 @@ CONFIG_SOUND_GAMEPORT=y
# Macintosh device drivers # Macintosh device drivers
# #
#
# Character devices
#
# CONFIG_SERIAL_NONSTANDARD is not set
# #
# Serial drivers # Serial drivers
# #
CONFIG_SERIAL_8250=y # CONFIG_SERIAL_8250 is not set
CONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_SERIAL_8250_EXTENDED is not set
# #
# Non-8250 serial port support # Non-8250 serial port support
# #
CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not set
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
CONFIG_SERIAL_CPM_SMC2=y
CONFIG_SERIAL_CPM_ALT_SMC2=y
CONFIG_UNIX98_PTYS=y CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=32 # CONFIG_LEGACY_PTYS is not set
# #
# I2C support # I2C support
...@@ -479,10 +481,6 @@ CONFIG_SCC2_ENET=y ...@@ -479,10 +481,6 @@ CONFIG_SCC2_ENET=y
# CONFIG_SCC3_ENET is not set # CONFIG_SCC3_ENET is not set
# CONFIG_FEC_ENET is not set # CONFIG_FEC_ENET is not set
CONFIG_ENET_BIG_BUFFERS=y CONFIG_ENET_BIG_BUFFERS=y
CONFIG_SMC2_UART=y
CONFIG_ALTSMC2=y
# CONFIG_CONS_SMC2 is not set
# CONFIG_USE_SCC_IO is not set
# #
# Generic MPC8xx Options # Generic MPC8xx Options
......
...@@ -296,25 +296,27 @@ CONFIG_SOUND_GAMEPORT=y ...@@ -296,25 +296,27 @@ CONFIG_SOUND_GAMEPORT=y
# Macintosh device drivers # Macintosh device drivers
# #
#
# Character devices
#
# CONFIG_SERIAL_NONSTANDARD is not set
# #
# Serial drivers # Serial drivers
# #
CONFIG_SERIAL_8250=y # CONFIG_SERIAL_8250 is not set
CONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_SERIAL_8250_EXTENDED is not set
# #
# Non-8250 serial port support # Non-8250 serial port support
# #
CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not set
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
CONFIG_SERIAL_CPM_SMC2=y
CONFIG_SERIAL_CPM_ALT_SMC2=y
CONFIG_UNIX98_PTYS=y CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=32 # CONFIG_LEGACY_PTYS is not set
# #
# I2C support # I2C support
...@@ -479,10 +481,6 @@ CONFIG_SCC2_ENET=y ...@@ -479,10 +481,6 @@ CONFIG_SCC2_ENET=y
# CONFIG_SCC3_ENET is not set # CONFIG_SCC3_ENET is not set
# CONFIG_FEC_ENET is not set # CONFIG_FEC_ENET is not set
CONFIG_ENET_BIG_BUFFERS=y CONFIG_ENET_BIG_BUFFERS=y
CONFIG_SMC2_UART=y
CONFIG_ALTSMC2=y
# CONFIG_CONS_SMC2 is not set
# CONFIG_USE_SCC_IO is not set
# #
# Generic MPC8xx Options # Generic MPC8xx Options
......
...@@ -320,25 +320,26 @@ CONFIG_SOUND_GAMEPORT=y ...@@ -320,25 +320,26 @@ CONFIG_SOUND_GAMEPORT=y
# Macintosh device drivers # Macintosh device drivers
# #
#
# Character devices
#
# CONFIG_SERIAL_NONSTANDARD is not set
# #
# Serial drivers # Serial drivers
# #
CONFIG_SERIAL_8250=y # CONFIG_SERIAL_8250 is not set
CONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_SERIAL_8250_EXTENDED is not set
# #
# Non-8250 serial port support # Non-8250 serial port support
# #
CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not set
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
CONFIG_SERIAL_CPM_SMC2=y
CONFIG_UNIX98_PTYS=y CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=32 # CONFIG_LEGACY_PTYS is not set
# #
# I2C support # I2C support
...@@ -508,10 +509,6 @@ CONFIG_SCC1_ENET=y ...@@ -508,10 +509,6 @@ CONFIG_SCC1_ENET=y
# CONFIG_SCC3_ENET is not set # CONFIG_SCC3_ENET is not set
# CONFIG_FEC_ENET is not set # CONFIG_FEC_ENET is not set
CONFIG_ENET_BIG_BUFFERS=y CONFIG_ENET_BIG_BUFFERS=y
CONFIG_SMC2_UART=y
# CONFIG_ALTSMC2 is not set
# CONFIG_CONS_SMC2 is not set
# CONFIG_USE_SCC_IO is not set
# #
# Generic MPC8xx Options # Generic MPC8xx Options
......
...@@ -292,25 +292,26 @@ CONFIG_SOUND_GAMEPORT=y ...@@ -292,25 +292,26 @@ CONFIG_SOUND_GAMEPORT=y
# Macintosh device drivers # Macintosh device drivers
# #
#
# Character devices
#
# CONFIG_SERIAL_NONSTANDARD is not set
# #
# Serial drivers # Serial drivers
# #
CONFIG_SERIAL_8250=y # CONFIG_SERIAL_8250 is not set
CONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_SERIAL_8250_EXTENDED is not set
# #
# Non-8250 serial port support # Non-8250 serial port support
# #
CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not set
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
CONFIG_SERIAL_CPM_SMC2=y
CONFIG_UNIX98_PTYS=y CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256 # CONFIG_LEGACY_PTYS is not set
# #
# I2C support # I2C support
...@@ -476,10 +477,6 @@ CONFIG_SCC2_ENET=y ...@@ -476,10 +477,6 @@ CONFIG_SCC2_ENET=y
# CONFIG_SCC3_ENET is not set # CONFIG_SCC3_ENET is not set
# CONFIG_FEC_ENET is not set # CONFIG_FEC_ENET is not set
# CONFIG_ENET_BIG_BUFFERS is not set # CONFIG_ENET_BIG_BUFFERS is not set
CONFIG_SMC2_UART=y
# CONFIG_ALTSMC2 is not set
# CONFIG_CONS_SMC2 is not set
# CONFIG_USE_SCC_IO is not set
# #
# Generic MPC8xx Options # Generic MPC8xx Options
......
...@@ -289,24 +289,26 @@ CONFIG_SOUND_GAMEPORT=y ...@@ -289,24 +289,26 @@ CONFIG_SOUND_GAMEPORT=y
# Macintosh device drivers # Macintosh device drivers
# #
#
# Character devices
#
# CONFIG_SERIAL_NONSTANDARD is not set
# #
# Serial drivers # Serial drivers
# #
CONFIG_SERIAL_8250=y # CONFIG_SERIAL_8250 is not set
CONFIG_SERIAL_8250_CONSOLE=y
# CONFIG_SERIAL_8250_EXTENDED is not set
# #
# Non-8250 serial port support # Non-8250 serial port support
# #
CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_UNIX98_PTYS is not set CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
CONFIG_SERIAL_CPM_SCC2=y
CONFIG_SERIAL_CPM_SCC3=y
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
CONFIG_SERIAL_CPM_SMC2=y
CONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set
# #
# I2C support # I2C support
...@@ -470,10 +472,6 @@ CONFIG_SCC1_ENET=y ...@@ -470,10 +472,6 @@ CONFIG_SCC1_ENET=y
# CONFIG_SCC3_ENET is not set # CONFIG_SCC3_ENET is not set
# CONFIG_FEC_ENET is not set # CONFIG_FEC_ENET is not set
CONFIG_ENET_BIG_BUFFERS=y CONFIG_ENET_BIG_BUFFERS=y
CONFIG_SMC2_UART=y
# CONFIG_ALTSMC2 is not set
# CONFIG_CONS_SMC2 is not set
CONFIG_USE_SCC_IO=y
# #
# Generic MPC8xx Options # Generic MPC8xx Options
......
This diff is collapsed.
This diff is collapsed.
...@@ -25,7 +25,7 @@ obj-$(CONFIG_SMP) += smp.o smp-tbsync.o ...@@ -25,7 +25,7 @@ obj-$(CONFIG_SMP) += smp.o smp-tbsync.o
obj-$(CONFIG_TAU) += temp.o obj-$(CONFIG_TAU) += temp.o
obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o obj-$(CONFIG_ALTIVEC) += vecemu.o vector.o
ifdef CONFIG_MATH_EMULATION ifndef CONFIG_MATH_EMULATION
obj-$(CONFIG_8xx) += softemu8xx.o obj-$(CONFIG_8xx) += softemu8xx.o
endif endif
This diff is collapsed.
...@@ -321,9 +321,6 @@ EXPORT_SYMBOL(cpm_free_handler); ...@@ -321,9 +321,6 @@ EXPORT_SYMBOL(cpm_free_handler);
#if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) #if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx)
EXPORT_SYMBOL(__res); EXPORT_SYMBOL(__res);
#endif #endif
#if defined(CONFIG_8xx)
EXPORT_SYMBOL(request_8xxirq);
#endif
EXPORT_SYMBOL(next_mmu_context); EXPORT_SYMBOL(next_mmu_context);
EXPORT_SYMBOL(set_context); EXPORT_SYMBOL(set_context);
......
...@@ -133,7 +133,7 @@ Soft_emulate_8xx(struct pt_regs *regs) ...@@ -133,7 +133,7 @@ Soft_emulate_8xx(struct pt_regs *regs)
print_8xx_pte(current->mm,regs->nip); print_8xx_pte(current->mm,regs->nip);
pa = get_8xx_pte(current->mm,regs->nip) & PAGE_MASK; pa = get_8xx_pte(current->mm,regs->nip) & PAGE_MASK;
pa |= (regs->nip & ~PAGE_MASK); pa |= (regs->nip & ~PAGE_MASK);
pa = __va(pa); pa = (unsigned long)__va(pa);
printk("Kernel VA for NIP %x ", pa); printk("Kernel VA for NIP %x ", pa);
print_8xx_pte(current->mm,pa); print_8xx_pte(current->mm,pa);
} }
......
...@@ -82,7 +82,6 @@ extern bd_t m8xx_board_info; ...@@ -82,7 +82,6 @@ extern bd_t m8xx_board_info;
/* for pcmcia sandisk */ /* for pcmcia sandisk */
#ifdef CONFIG_IDE #ifdef CONFIG_IDE
# define MAX_HWIFS 1 # define MAX_HWIFS 1
# define request_irq(irq,hand,flg,dev,id) request_8xxirq((irq),(hand),(flg),(dev),(id))
#endif #endif
#endif #endif
......
...@@ -68,7 +68,6 @@ extern bd_t m8xx_board_info; ...@@ -68,7 +68,6 @@ extern bd_t m8xx_board_info;
#ifdef CONFIG_IDE #ifdef CONFIG_IDE
# define MAX_HWIFS 1 # define MAX_HWIFS 1
# define request_irq(irq,hand,flg,dev,id) request_8xxirq((irq),(hand),(flg),(dev),(id))
#endif #endif
/* CPM Ethernet through SCCx. /* CPM Ethernet through SCCx.
......
...@@ -72,8 +72,6 @@ static __inline__ void ide_led(int on) ...@@ -72,8 +72,6 @@ static __inline__ void ide_led(int on)
#define IDE0_INTERRUPT 13 #define IDE0_INTERRUPT 13
#ifdef CONFIG_IDE #ifdef CONFIG_IDE
#define ide_request_irq(irq,hand,flg,dev,id) \
request_8xxirq((irq),(hand),(flg),(dev),(id))
#endif #endif
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------
......
This diff is collapsed.
This diff is collapsed.
...@@ -118,6 +118,6 @@ $(obj)/imagesize.c: vmlinux.strip ...@@ -118,6 +118,6 @@ $(obj)/imagesize.c: vmlinux.strip
>> $(obj)/imagesize.c >> $(obj)/imagesize.c
install: $(CONFIGURE) $(obj)/$(BOOTIMAGE) install: $(CONFIGURE) $(obj)/$(BOOTIMAGE)
sh -x $(src)/install.sh "$(KERNELRELEASE)" "$(obj)/$(BOOTIMAGE)" "$(INSTALL_PATH)" sh -x $(srctree)/$(src)/install.sh "$(KERNELRELEASE)" "$(obj)/$(BOOTIMAGE)" "$(INSTALL_PATH)"
clean-files := $(addprefix $(objtree)/, $(obj-boot) vmlinux.strip) clean-files := $(addprefix $(objtree)/, $(obj-boot) vmlinux.strip)
...@@ -86,8 +86,8 @@ config SMP ...@@ -86,8 +86,8 @@ config SMP
depends on BROKEN depends on BROKEN
---help--- ---help---
This enables support for systems with more than one CPU. If you have This enables support for systems with more than one CPU. If you have
a system with only one CPU, like most personal computers, say N. If a system with only one CPU, say N. If you have a system with more
you have a system with more than one CPU, say Y. than one CPU, say Y.
If you say N here, the kernel will run on single and multiprocessor If you say N here, the kernel will run on single and multiprocessor
machines, but will use only one CPU of a multiprocessor machine. If machines, but will use only one CPU of a multiprocessor machine. If
...@@ -95,17 +95,11 @@ config SMP ...@@ -95,17 +95,11 @@ config SMP
singleprocessor machines. On a singleprocessor machine, the kernel singleprocessor machines. On a singleprocessor machine, the kernel
will run faster if you say N here. will run faster if you say N here.
Note that if you say Y here and choose architecture "586" or
"Pentium" under "Processor family", the kernel will not work on 486
architectures. Similarly, multiprocessor kernels for the "PPro"
architecture may not work on all Pentium based boards.
People using multiprocessor machines who say Y here should also say People using multiprocessor machines who say Y here should also say
Y to "Enhanced Real Time Clock Support", below. The "Advanced Power Y to "Enhanced Real Time Clock Support", below. The "Advanced Power
Management" code will be disabled if you say Y here. Management" code will be disabled if you say Y here.
See also the <file:Documentation/smp.txt>, See also the <file:Documentation/smp.txt>,
<file:Documentation/i386/IO-APIC.txt>,
<file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
<http://www.tldp.org/docs.html#howto>. <http://www.tldp.org/docs.html#howto>.
...@@ -189,10 +183,10 @@ config SERIAL_CONSOLE ...@@ -189,10 +183,10 @@ config SERIAL_CONSOLE
(/dev/tty0) will still be used as the system console by default, but (/dev/tty0) will still be used as the system console by default, but
you can alter that using a kernel command line option such as you can alter that using a kernel command line option such as
"console=ttyS1". (Try "man bootparam" or see the documentation of "console=ttyS1". (Try "man bootparam" or see the documentation of
your boot loader (lilo or loadlin) about how to pass options to the your boot loader (silo) about how to pass options to the kernel at
kernel at boot time.) boot time.)
If you don't have a VGA card installed and you say Y here, the If you don't have a graphics card installed and you say Y here, the
kernel will automatically use the first serial line, /dev/ttyS0, as kernel will automatically use the first serial line, /dev/ttyS0, as
system console. system console.
...@@ -223,6 +217,7 @@ config SUN_PM ...@@ -223,6 +217,7 @@ config SUN_PM
config SUN4 config SUN4
bool "Support for SUN4 machines (disables SUN4[CDM] support)" bool "Support for SUN4 machines (disables SUN4[CDM] support)"
depends on !SMP depends on !SMP
default n
help help
Say Y here if, and only if, your machine is a sun4. Note that Say Y here if, and only if, your machine is a sun4. Note that
a kernel compiled with this option will run only on sun4. a kernel compiled with this option will run only on sun4.
...@@ -249,7 +244,10 @@ config SUN_OPENPROMFS ...@@ -249,7 +244,10 @@ config SUN_OPENPROMFS
-t openpromfs none /proc/openprom". -t openpromfs none /proc/openprom".
To compile the /proc/openprom support as a module, choose M here: the To compile the /proc/openprom support as a module, choose M here: the
module will be called openpromfs. If unsure, choose M. module will be called openpromfs.
Only choose N if you know in advance that you will not need to modify
OpenPROM settings on the running system.
source "fs/Kconfig.binfmt" source "fs/Kconfig.binfmt"
...@@ -282,9 +280,9 @@ config PRINTER ...@@ -282,9 +280,9 @@ config PRINTER
If you have several parallel ports, you can specify which ports to If you have several parallel ports, you can specify which ports to
use with the "lp" kernel command line option. (Try "man bootparam" use with the "lp" kernel command line option. (Try "man bootparam"
or see the documentation of your boot loader (lilo or loadlin) about or see the documentation of your boot loader (silo) about how to pass
how to pass options to the kernel at boot time.) The syntax of the options to the kernel at boot time.) The syntax of the "lp" command
"lp" command line option can be found in <file:drivers/char/lp.c>. line option can be found in <file:drivers/char/lp.c>.
If you have more than 8 printers, you need to increase the LP_NO If you have more than 8 printers, you need to increase the LP_NO
macro in lp.c and the PARPORT_MAX macro in parport.h. macro in lp.c and the PARPORT_MAX macro in parport.h.
......
This diff is collapsed.
...@@ -267,7 +267,7 @@ static int resize_pool(unsigned int new_ios) ...@@ -267,7 +267,7 @@ static int resize_pool(unsigned int new_ios)
/* create new pool */ /* create new pool */
_io_pool = mempool_create(new_ios, alloc_io, free_io, NULL); _io_pool = mempool_create(new_ios, alloc_io, free_io, NULL);
if (!_io_pool) if (!_io_pool)
r = -ENOMEM; return -ENOMEM;
r = bio_set_init(&_bios, "dm-io", 512, 1); r = bio_set_init(&_bios, "dm-io", 512, 1);
if (r) { if (r) {
......
...@@ -70,6 +70,8 @@ struct uart_cpm_port { ...@@ -70,6 +70,8 @@ struct uart_cpm_port {
/* helpers */ /* helpers */
int baud; int baud;
int bits; int bits;
/* Keep track of 'odd' SMC2 wirings */
int is_portb;
}; };
extern int cpm_uart_port_map[UART_NR]; extern int cpm_uart_port_map[UART_NR];
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment