[oe-commits] org.oe.dev packages/linux/linux-magicbox_2.6.19.2.bb: Add kernel 2.6.19.2 for Magicbox

ifaistos commit openembedded-commits at lists.openembedded.org
Sun May 6 16:51:11 UTC 2007


packages/linux/linux-magicbox_2.6.19.2.bb: Add kernel 2.6.19.2 for Magicbox
The patch set comes from Openwrt project

Author: ifaistos at openembedded.org
Branch: org.openembedded.dev
Revision: de6c1243cb49453956646c9dacdc3ce37e5f26f0
ViewMTN: http://monotone.openembedded.org/revision.psp?id=de6c1243cb49453956646c9dacdc3ce37e5f26f0
Files:
1
packages/linux/linux-magicbox-2.6.19.2
packages/linux/linux-magicbox-2.6.19.2/001-magicbox_support.patch
packages/linux/linux-magicbox-2.6.19.2/001-squashfs.patch
packages/linux/linux-magicbox-2.6.19.2/002-flash_map.patch
packages/linux/linux-magicbox-2.6.19.2/002-lzma_decompress.patch
packages/linux/linux-magicbox-2.6.19.2/003-squashfs_lzma.patch
packages/linux/linux-magicbox-2.6.19.2/004-extra_optimization.patch
packages/linux/linux-magicbox-2.6.19.2/006-gcc4_inline_fix.patch
packages/linux/linux-magicbox-2.6.19.2/007-samsung_flash.patch
packages/linux/linux-magicbox-2.6.19.2/009-revert_intel_flash_breakage.patch
packages/linux/linux-magicbox-2.6.19.2/010-disable_old_squashfs_compatibility.patch
packages/linux/linux-magicbox-2.6.19.2/011-mips_boot.patch
packages/linux/linux-magicbox-2.6.19.2/012-mips_cpu_tlb.patch
packages/linux/linux-magicbox-2.6.19.2/050-mtdpart_redboot_partition_truncate.patch
packages/linux/linux-magicbox-2.6.19.2/060-rootfs_split.patch
packages/linux/linux-magicbox-2.6.19.2/065-block2mtd_init.patch
packages/linux/linux-magicbox-2.6.19.2/100-cf_slot.patch
packages/linux/linux-magicbox-2.6.19.2/100-netfilter_layer7_2.8.patch
packages/linux/linux-magicbox-2.6.19.2/101-netfilter_layer7_pktmatch.patch
packages/linux/linux-magicbox-2.6.19.2/110-ipp2p_0.8.1rc1.patch
packages/linux/linux-magicbox-2.6.19.2/120-openswan-2.4.0.kernel-2.6-natt.patch
packages/linux/linux-magicbox-2.6.19.2/130-netfilter-ipset.patch
packages/linux/linux-magicbox-2.6.19.2/140-netfilter_time.patch
packages/linux/linux-magicbox-2.6.19.2/150-netfilter_imq.patch
packages/linux/linux-magicbox-2.6.19.2/160-netfilter_route.patch
packages/linux/linux-magicbox-2.6.19.2/170-netfilter_chaostables.patch
packages/linux/linux-magicbox-2.6.19.2/200-sched_esfq.patch
packages/linux/linux-magicbox-2.6.19.2/201-multiple_default_gateways.patch
packages/linux/linux-magicbox-2.6.19.2/202-mips-freestanding.patch
packages/linux/linux-magicbox-2.6.19.2/204-jffs2_eofdetect.patch
packages/linux/linux-magicbox-2.6.19.2/207-powerpc_asm_segment_h.patch
packages/linux/linux-magicbox-2.6.19.2/208-rtl8110sb_fix.patch
packages/linux/linux-magicbox-2.6.19.2/209-mini_fo.patch
packages/linux/linux-magicbox-2.6.19.2/210-d80211_compat.patch
packages/linux/linux-magicbox-2.6.19.2/211-no_block2mtd_readahead.patch
packages/linux/linux-magicbox-2.6.19.2/212-block2mtd_erase_scan.patch
packages/linux/linux-magicbox-2.6.19.2/510-Yaffs.patch
packages/linux/linux-magicbox-2.6.19.2/600-x86_lzma.patch
packages/linux/linux-magicbox-2.6.19.2/700-airprime.patch
packages/linux/linux-magicbox-2.6.19.2/900-headers_type_and_time.patch
packages/linux/linux-magicbox-2.6.19.2/901-asm_bitops_include.patch
packages/linux/linux-magicbox-2.6.19.2/902-darwin_scripts_include.patch
packages/linux/linux-magicbox-2.6.19.2/903-stddef_include.patch
packages/linux/linux-magicbox-2.6.19.2/904-ls_time_locale.patch
packages/linux/linux-magicbox-2.6.19.2/config-magicbox2
packages/linux/linux-magicbox_2.6.19.2.bb
Diffs:

#
# mt diff -r81bd25bac059df2ff2d4453e8771fced3a9416b3 -rde6c1243cb49453956646c9dacdc3ce37e5f26f0
#
# 
# 
# add_dir "packages/linux/linux-magicbox-2.6.19.2"
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/001-magicbox_support.patch"
#  content [62ee4209df19f37f5cec89c8a412bc7847ed8a82]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/001-squashfs.patch"
#  content [8e96706e8de87723b7433ceaceb5aec69568eefd]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/002-flash_map.patch"
#  content [284ac8b2da582c66931ab187ac7c0a911c9eb628]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/002-lzma_decompress.patch"
#  content [7ce71142f433946b9ad92af42e4817403bfd34eb]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/003-squashfs_lzma.patch"
#  content [e89ae6e80bfd414adf40115843326b920f8fd70c]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/004-extra_optimization.patch"
#  content [e89a4d1216f589ac0fa05b8616985110cd84444d]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/006-gcc4_inline_fix.patch"
#  content [7bdef2a617c15b4f302070e08d9a4da51e43b9b5]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/007-samsung_flash.patch"
#  content [04b43f0a9775f030eeee56dce464a8a1a0c0a091]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/009-revert_intel_flash_breakage.patch"
#  content [620daf0ce46328ace7ce99e187d1e64e422e6263]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/010-disable_old_squashfs_compatibility.patch"
#  content [aeaa8c0b14f8783041d425f429f1eef9a7df2df5]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/011-mips_boot.patch"
#  content [9e736ea41812e7b35f54e60648850b010c5cd457]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/012-mips_cpu_tlb.patch"
#  content [1278bb3ee2caedb55e9a32d98a679c6c3949dd0c]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/050-mtdpart_redboot_partition_truncate.patch"
#  content [a5b094d10fcf908707ee34b835214f02d44b11ff]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/060-rootfs_split.patch"
#  content [fa122021f2941078455210d037c19702252e36ae]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/065-block2mtd_init.patch"
#  content [d8a0acdbec7282b85529f103f81a05f9d8a852a6]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/100-cf_slot.patch"
#  content [521337d441b7252b3a43703ff9f1e648a668ff9c]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/100-netfilter_layer7_2.8.patch"
#  content [99183274c6aed33ab946d8b7cd58f65ecbec0c04]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/101-netfilter_layer7_pktmatch.patch"
#  content [e350d9731708c46a49deb31a7b06172532bb7d03]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/110-ipp2p_0.8.1rc1.patch"
#  content [cedcd859e50628cd9e4e7b0616a231365fcc2f68]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/120-openswan-2.4.0.kernel-2.6-natt.patch"
#  content [3aa95d150e795bea66abd70fac79ee52aebab4f5]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/130-netfilter-ipset.patch"
#  content [83974c8e29b44ea10a9ae360951f94e1358f2a51]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/140-netfilter_time.patch"
#  content [5e181cf64ca6be5f86ca6de22d155cce02c8fa81]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/150-netfilter_imq.patch"
#  content [ea6132b4a0a13697586d1ce7eedd3f245b9e7e36]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/160-netfilter_route.patch"
#  content [f59f7fd793c43e95d36073d2463f9917c35c6fc6]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/170-netfilter_chaostables.patch"
#  content [21d1fc02519bd36d785212ba34e44a694049ef7e]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/200-sched_esfq.patch"
#  content [081e894b18ad6ecf4981efcef2de2626984ad832]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/201-multiple_default_gateways.patch"
#  content [6893155b223df8d5f43b73d82febeb16adbdc2da]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/202-mips-freestanding.patch"
#  content [e6ea8a12720989d0be78ce72d42d7f11137d6f22]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/204-jffs2_eofdetect.patch"
#  content [e73994b85ceb65d83ddee89c81a9a0dde647238a]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/207-powerpc_asm_segment_h.patch"
#  content [c74c2942b743bce1515e571581c21ceb948a28cb]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/208-rtl8110sb_fix.patch"
#  content [a6236952f7e166934dc26e705c0a2ae13459b3a5]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/209-mini_fo.patch"
#  content [9c0557bdb0c78e56048a26fcb781f99bda5831f3]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/210-d80211_compat.patch"
#  content [8685e381de604079f8f8fa11aab513155fe5c637]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/211-no_block2mtd_readahead.patch"
#  content [304bab50892ed6607375cf36cf4dad74437b5bb3]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/212-block2mtd_erase_scan.patch"
#  content [fd1c6206ba443eeae588494b7d489ca246b0d486]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/510-Yaffs.patch"
#  content [df1c17bbcc947d40234ff13e99af7d4eb5d4c023]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/600-x86_lzma.patch"
#  content [a9bd25c2af0c132cd3303aab4d5bf19924a93cb2]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/700-airprime.patch"
#  content [d428fc6fb697724f465ce59355bc2e9a25cd9985]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/900-headers_type_and_time.patch"
#  content [c91b1d9e8a2ff3e230d06d3b58b476d34d1feb7d]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/901-asm_bitops_include.patch"
#  content [76555d710778910b6c36be70b3113a8ac250c9e6]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/902-darwin_scripts_include.patch"
#  content [8becf8c318bf5c3ff66e94257fe5c426411c2235]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/903-stddef_include.patch"
#  content [59d5f32311df90b83acddbb2d871aa6b47f4b70f]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/904-ls_time_locale.patch"
#  content [df333a9278b42271c921ac887bcbf756a4289e00]
# 
# add_file "packages/linux/linux-magicbox-2.6.19.2/config-magicbox2"
#  content [c46633178a6e623a0e1d085de3e0125529b48a40]
# 
# add_file "packages/linux/linux-magicbox_2.6.19.2.bb"
#  content [9ba620d7ec3e07fd90f1a11764b48f544c68ccc2]
# 
============================================================
--- packages/linux/linux-magicbox-2.6.19.2/001-magicbox_support.patch	62ee4209df19f37f5cec89c8a412bc7847ed8a82
+++ packages/linux/linux-magicbox-2.6.19.2/001-magicbox_support.patch	62ee4209df19f37f5cec89c8a412bc7847ed8a82
@@ -0,0 +1,372 @@
+diff -urN linux.old/arch/ppc/platforms/4xx/Kconfig linux.dev/arch/ppc/platforms/4xx/Kconfig
+--- linux.old/arch/ppc/platforms/4xx/Kconfig	2006-11-29 22:57:37.000000000 +0100
++++ linux.dev/arch/ppc/platforms/4xx/Kconfig	2006-12-14 08:49:18.000000000 +0100
+@@ -52,6 +52,12 @@
+ 	help
+ 	  This option enables support for the IBM PPC405GP evaluation board.
+ 
++config MAGICBOX
++	bool "MagicBox"
++	select WANT_EARLY_SERIAL
++	help
++	  This option enables support for the IBM PPC405EP evaluation board.
++
+ config XILINX_ML300
+ 	bool "Xilinx-ML300"
+ 	help
+@@ -173,7 +179,7 @@
+ 
+ config IBM_OCP
+ 	bool
+-	depends on ASH || BAMBOO || BUBINGA || CPCI405 || EBONY || EP405 || LUAN || YUCCA || OCOTEA || REDWOOD_5 || REDWOOD_6 || SYCAMORE || WALNUT
++	depends on ASH || BAMBOO || BUBINGA || CPCI405 || EBONY || EP405 || LUAN || YUCCA || OCOTEA || REDWOOD_5 || REDWOOD_6 || SYCAMORE || WALNUT || MAGICBOX
+ 	default y
+ 
+ config IBM_EMAC4
+@@ -183,7 +189,7 @@
+ 
+ config BIOS_FIXUP
+ 	bool
+-	depends on BUBINGA || EP405 || SYCAMORE || WALNUT || CPCI405
++	depends on BUBINGA || EP405 || SYCAMORE || WALNUT || CPCI405 || MAGICBOX
+ 	default y
+ 
+ # OAK doesn't exist but wanted to keep this around for any future 403GCX boards
+@@ -194,7 +200,7 @@
+ 
+ config 405EP
+ 	bool
+-	depends on BUBINGA
++	depends on BUBINGA || MAGICBOX
+ 	default y
+ 
+ config 405GP
+diff -urN linux.old/arch/ppc/platforms/4xx/magicbox.c linux.dev/arch/ppc/platforms/4xx/magicbox.c
+--- linux.old/arch/ppc/platforms/4xx/magicbox.c	1970-01-01 01:00:00.000000000 +0100
++++ linux.dev/arch/ppc/platforms/4xx/magicbox.c	2006-12-14 08:48:56.000000000 +0100
+@@ -0,0 +1,249 @@
++/*
++ * Support for IBM PPC 405EP-based MagicBox board 
++ * Copyright (C) 2006  Karol Lewandowski
++ *
++ * Heavily based on bubinga.c
++ *
++ * Author: SAW (IBM), derived from walnut.c.
++ *         Maintained by MontaVista Software <source at mvista.com>
++ *
++ * 2003 (c) MontaVista Softare Inc.  This file is licensed under the
++ * terms of the GNU General Public License version 2. This program is
++ * licensed "as is" without any warranty of any kind, whether express
++ * or implied.
++ */
++
++#include <linux/autoconf.h>
++#include <linux/init.h>
++#include <linux/smp.h>
++#include <linux/threads.h>
++#include <linux/param.h>
++#include <linux/string.h>
++#include <linux/blkdev.h>
++#include <linux/pci.h>
++#include <linux/tty.h>
++#include <linux/serial.h>
++#include <linux/serial_core.h>
++
++#include <asm/system.h>
++#include <asm/pci-bridge.h>
++#include <asm/processor.h>
++#include <asm/machdep.h>
++#include <asm/page.h>
++#include <asm/time.h>
++#include <asm/io.h>
++#include <asm/kgdb.h>
++#include <asm/ocp.h>
++#include <asm/ibm_ocp_pci.h>
++
++#include <platforms/4xx/ibm405ep.h>
++
++#undef DEBUG
++
++#ifdef DEBUG
++#define DBG(x...) printk(x)
++#else
++#define DBG(x...)
++#endif
++
++extern bd_t __res;
++
++/* Some IRQs unique to board
++ * Used by the generic 405 PCI setup functions in ppc4xx_pci.c
++ */
++int __init
++ppc405_map_irq(struct pci_dev *dev, unsigned char idsel, unsigned char pin)
++{
++	static char pci_irq_table[][4] =
++	    /*
++	     *      PCI IDSEL/INTPIN->INTLINE
++	     *      A       B       C       D
++	     */
++	{
++		{28, 28, 28, 28},	/* IDSEL 1 - PCI slot 1 */
++		{29, 29, 29, 29},	/* IDSEL 2 - PCI slot 2 */
++		{30, 30, 30, 30},	/* IDSEL 3 - PCI slot 3 */
++		{31, 31, 31, 31},	/* IDSEL 4 - PCI slot 4 */
++	};
++
++	const long min_idsel = 1, max_idsel = 4, irqs_per_slot = 4;
++	return PCI_IRQ_TABLE_LOOKUP;
++};
++
++
++/* The serial clock for the chip is an internal clock determined by
++ * different clock speeds/dividers.
++ * Calculate the proper input baud rate and setup the serial driver.
++ */
++static void __init
++magicbox_early_serial_map(void)
++{
++	u32 uart_div;
++	int uart_clock;
++	struct uart_port port;
++
++         /* Calculate the serial clock input frequency
++          *
++          * The base baud is the PLL OUTA (provided in the board info
++          * structure) divided by the external UART Divisor, divided
++          * by 16.
++          */
++	uart_div = (mfdcr(DCRN_CPC0_UCR_BASE) & DCRN_CPC0_UCR_U0DIV);
++	uart_clock = __res.bi_procfreq / uart_div;
++
++	/* Setup serial port access */
++	memset(&port, 0, sizeof(port));
++	port.membase = (void*)ACTING_UART0_IO_BASE;
++	port.irq = ACTING_UART0_INT;
++	port.uartclk = uart_clock;
++	port.regshift = 0;
++	port.iotype = SERIAL_IO_MEM;
++	port.flags = ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST;
++	port.line = 0;
++
++	if (early_serial_setup(&port) != 0) {
++		printk("Early serial init of port 0 failed\n");
++	}
++
++	port.membase = (void*)ACTING_UART1_IO_BASE;
++	port.irq = ACTING_UART1_INT;
++	port.line = 1;
++
++	if (early_serial_setup(&port) != 0) {
++		printk("Early serial init of port 1 failed\n");
++	}
++}
++
++void __init
++bios_fixup(struct pci_controller *hose, struct pcil0_regs *pcip)
++{
++	unsigned int bar_response, bar;
++	/*
++	 * Expected PCI mapping:
++	 *
++	 *  PLB addr             PCI memory addr
++	 *  ---------------------       ---------------------
++	 *  0000'0000 - 7fff'ffff <---  0000'0000 - 7fff'ffff
++	 *  8000'0000 - Bfff'ffff --->  8000'0000 - Bfff'ffff
++	 *
++	 *  PLB addr             PCI io addr
++	 *  ---------------------       ---------------------
++	 *  e800'0000 - e800'ffff --->  0000'0000 - 0001'0000
++	 *
++	 * The following code is simplified by assuming that the bootrom
++	 * has been well behaved in following this mapping.
++	 */
++
++#ifdef DEBUG
++	int i;
++
++	printk("ioremap PCLIO_BASE = 0x%x\n", pcip);
++	printk("PCI bridge regs before fixup \n");
++	for (i = 0; i <= 3; i++) {
++		printk(" pmm%dma\t0x%x\n", i, in_le32(&(pcip->pmm[i].ma)));
++		printk(" pmm%dma\t0x%x\n", i, in_le32(&(pcip->pmm[i].la)));
++		printk(" pmm%dma\t0x%x\n", i, in_le32(&(pcip->pmm[i].pcila)));
++		printk(" pmm%dma\t0x%x\n", i, in_le32(&(pcip->pmm[i].pciha)));
++	}
++	printk(" ptm1ms\t0x%x\n", in_le32(&(pcip->ptm1ms)));
++	printk(" ptm1la\t0x%x\n", in_le32(&(pcip->ptm1la)));
++	printk(" ptm2ms\t0x%x\n", in_le32(&(pcip->ptm2ms)));
++	printk(" ptm2la\t0x%x\n", in_le32(&(pcip->ptm2la)));
++
++#endif
++
++	/* added for IBM boot rom version 1.15 bios bar changes  -AK */
++
++	/* Disable region first */
++	out_le32((void *) &(pcip->pmm[0].ma), 0x00000000);
++	/* PLB starting addr, PCI: 0x80000000 */
++	out_le32((void *) &(pcip->pmm[0].la), 0x80000000);
++	/* PCI start addr, 0x80000000 */
++	out_le32((void *) &(pcip->pmm[0].pcila), PPC405_PCI_MEM_BASE);
++	/* 512MB range of PLB to PCI */
++	out_le32((void *) &(pcip->pmm[0].pciha), 0x00000000);
++	/* Enable no pre-fetch, enable region */
++	out_le32((void *) &(pcip->pmm[0].ma), ((0xffffffff -
++						(PPC405_PCI_UPPER_MEM -
++						 PPC405_PCI_MEM_BASE)) | 0x01));
++
++	/* Disable region one */
++	out_le32((void *) &(pcip->pmm[1].ma), 0x00000000);
++	out_le32((void *) &(pcip->pmm[1].la), 0x00000000);
++	out_le32((void *) &(pcip->pmm[1].pcila), 0x00000000);
++	out_le32((void *) &(pcip->pmm[1].pciha), 0x00000000);
++	out_le32((void *) &(pcip->pmm[1].ma), 0x00000000);
++	out_le32((void *) &(pcip->ptm1ms), 0x00000001);
++
++	/* Disable region two */
++	out_le32((void *) &(pcip->pmm[2].ma), 0x00000000);
++	out_le32((void *) &(pcip->pmm[2].la), 0x00000000);
++	out_le32((void *) &(pcip->pmm[2].pcila), 0x00000000);
++	out_le32((void *) &(pcip->pmm[2].pciha), 0x00000000);
++	out_le32((void *) &(pcip->pmm[2].ma), 0x00000000);
++	out_le32((void *) &(pcip->ptm2ms), 0x00000000);
++	out_le32((void *) &(pcip->ptm2la), 0x00000000);
++
++	/* Zero config bars */
++	for (bar = PCI_BASE_ADDRESS_1; bar <= PCI_BASE_ADDRESS_2; bar += 4) {
++		early_write_config_dword(hose, hose->first_busno,
++					 PCI_FUNC(hose->first_busno), bar,
++					 0x00000000);
++		early_read_config_dword(hose, hose->first_busno,
++					PCI_FUNC(hose->first_busno), bar,
++					&bar_response);
++		DBG("BUS %d, device %d, Function %d bar 0x%8.8x is 0x%8.8x\n",
++		    hose->first_busno, PCI_SLOT(hose->first_busno),
++		    PCI_FUNC(hose->first_busno), bar, bar_response);
++	}
++	/* end work arround */
++
++#ifdef DEBUG
++	printk("PCI bridge regs after fixup \n");
++	for (i = 0; i <= 3; i++) {
++		printk(" pmm%dma\t0x%x\n", i, in_le32(&(pcip->pmm[i].ma)));
++		printk(" pmm%dma\t0x%x\n", i, in_le32(&(pcip->pmm[i].la)));
++		printk(" pmm%dma\t0x%x\n", i, in_le32(&(pcip->pmm[i].pcila)));
++		printk(" pmm%dma\t0x%x\n", i, in_le32(&(pcip->pmm[i].pciha)));
++	}
++	printk(" ptm1ms\t0x%x\n", in_le32(&(pcip->ptm1ms)));
++	printk(" ptm1la\t0x%x\n", in_le32(&(pcip->ptm1la)));
++	printk(" ptm2ms\t0x%x\n", in_le32(&(pcip->ptm2ms)));
++	printk(" ptm2la\t0x%x\n", in_le32(&(pcip->ptm2la)));
++
++#endif /* DEBUG */
++}
++
++void __init
++magicbox_setup_arch(void)
++{
++	ppc4xx_setup_arch();
++
++	ibm_ocp_set_emac(0, 1);
++
++	magicbox_early_serial_map();
++
++	/* Identify the system */
++	printk("MagicBox port (C) 2005 Karol Lewandowski <kl at jasmine.eu.org>\n");
++}
++
++void __init
++magicbox_map_io(void)
++{
++	ppc4xx_map_io();
++}
++
++void __init
++platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
++	      unsigned long r6, unsigned long r7)
++{
++	ppc4xx_init(r3, r4, r5, r6, r7);
++
++	ppc_md.setup_arch = magicbox_setup_arch;
++	ppc_md.setup_io_mappings = magicbox_map_io;
++
++#ifdef CONFIG_KGDB
++	ppc_md.early_serial_map = bubinga_early_serial_map;
++#endif
++
++}
+diff -urN linux.old/arch/ppc/platforms/4xx/magicbox.h linux.dev/arch/ppc/platforms/4xx/magicbox.h
+--- linux.old/arch/ppc/platforms/4xx/magicbox.h	1970-01-01 01:00:00.000000000 +0100
++++ linux.dev/arch/ppc/platforms/4xx/magicbox.h	2006-12-14 08:48:56.000000000 +0100
+@@ -0,0 +1,47 @@
++/*
++ * Support for IBM PPC 405EP-based MagicBox board
++ *
++ * Heavily based on bubinga.h
++ *
++ *
++ * Author: SAW (IBM), derived from walnut.h.
++ *         Maintained by MontaVista Software <source at mvista.com>
++ *
++ * 2003 (c) MontaVista S%s
>>> DIFF TRUNCATED @ 16K






More information about the Openembedded-commits mailing list