Add adder87x board support to 2.6.x
PATCH 1/1 Add adder87x board support to 2.6.x
Greetings all.
This set of patches adds support for the Analogue & Micro Adder87x to Linux.
The port is based on mpc885ads in the 2.6.18-rc4 tree.
The patches are very simple really consisting of a stripped down version of mpc885ads renamed to adder87x*blah, a defconfig and appropriate entries in arch/ppc/Kconfig, arch/ppc/platforms/Makefile and include/asm-ppc/mpc8xx.h.
I've spent a bit of time testing this out, and I'm reasonably happy that this should be useful to others using this development board.
modified: arch/ppc/Kconfig
new file: arch/ppc/configs/adder87x_defconfig
modified: arch/ppc/platforms/Makefile new file: arch/ppc/platforms/adder87x.h new file: arch/ppc/platforms/adder87x_setup.c
modified: include/asm-ppc/mpc8xx.h
---
arch/ppc/Kconfig | 5 arch/ppc/configs/adder87x_defconfig | 767 +++++++++++++++++++++++++++++++++++ arch/ppc/platforms/Makefile | 1 arch/ppc/platforms/adder87x.h | 32 + arch/ppc/platforms/adder87x_setup.c | 276 +++++++++++++ include/asm-ppc/mpc8xx.h | 4 6 files changed, 1085 insertions(+), 0 deletions(-) create mode 100644 arch/ppc/configs/adder87x_defconfig create mode 100644 arch/ppc/platforms/adder87x.h create mode 100644 arch/ppc/platforms/adder87x_setup.c
79f0a05e41edfca35038448810959aa6a1f8c943
arch/ppc/Kconfig +5 -0
@@ -478,6 +478,11 @@ config WINCEPT MPC821 PowerPC, introduced in 1998 and designed to be used in thin-client machines. Say Y to support it directly. +config ADDER87X + bool "ADDER87X" + help + The Analogue and Micro Adder87x, with Das U-Boot as a bootloader. + endchoice menu "Freescale Ethernet driver platform-specific options"
arch/ppc/configs/adder87x_defconfig new file +767 -0
767 lines not on this page · raw message
arch/ppc/platforms/Makefile +1 -0
@@ -32,3 +32,4 @@ obj-$(CONFIG_EV64360) += ev64360.o obj-$(CONFIG_MPC86XADS) += mpc866ads_setup.o obj-$(CONFIG_MPC885ADS) += mpc885ads_setup.o obj-$(CONFIG_ADS8272) += mpc8272ads_setup.o +obj-$(CONFIG_ADDER87X) += adder87x_setup.o
arch/ppc/platforms/adder87x.h new file +32 -0
@@ -0,0 +1,32 @@ +/* +* Support for Analogue & Micro Adder87x +* mostly a cloned config of mpc885ads.h +* +* Bryan O'Donoghue, CodeHermit Software Engineering +* [email protected] +* +* 2006 (c) CodeHermit Software Engineering. +* Released under the GNU General Public License version 2. +*/ + +#ifdef __KERNEL__ +#ifndef __ADDER87X_H__ +#define __ADDER87X_H__ + +#include <asm/ppcboot.h> + +#define BOARD_CHIP_NAME "MPC885" +#define IMAP_ADDR ((uint)0xff000000) +#define IMAP_SIZE ((uint)(64 * 1024)) + +/* Interrupt level assignments */ +#define PHY_INTERRUPT SIU_IRQ7/* PHY link change interrupt */ +#define SIU_INT_FEC1 SIU_LEVEL1/* FEC1 interrupt */ +#define SIU_INT_FEC2 SIU_LEVEL3/* FEC2 interrupt */ +#define FEC_INTERRUPT SIU_INT_FEC1/* FEC interrupt */ + +/* We don't use the 8259 */ +#define NR_8259_INTS 0 + +#endif /* __ADDER87X_H__ */ +#endif /* __KERNEL__ */
arch/ppc/platforms/adder87x_setup.c new file +276 -0
276 lines not on this page · raw message
include/asm-ppc/mpc8xx.h +4 -0
@@ -67,6 +67,10 @@#include <platforms/mpc885ads.h> #endif +#if defined(CONFIG_ADDER87X ) +#include <platforms/adder87x.h> +#endif +/* Currently, all 8xx boards that support a processor to PCI/ISA bridge * use the same memory map. */
Quoted 9 lines · Bryan O'Donoghue
Greetings all.
This set of patches adds support for the Analogue & Micro Adder87x to Linux.
The port is based on mpc885ads in the 2.6.18-rc4 tree.
The patches are very simple really consisting of a stripped down version of mpc885ads renamed to adder87x*blah, a defconfig and appropriate entries inarch/ppc/Kconfig,arch/ppc/platforms/Makefileandinclude/asm-ppc/mpc8xx.h.
Quoted 5 lines
I've spent a bit of time testing this out, and I'm reasonably happy that this should be useful to others using this development board.
Signed-off-by Bryan O'Donoghue <[email protected]>
Bryan,
If you're not already on the linuxppc-dev mailing list, you should be. The 'ppc' tree is deprecated and all new work should be happening in the 'powerpc' tree (as in arch/powerpc).
The odds of this being accepted are slim but either way, you should read the mail archive and get involved in the powerpc migration.
Mark
Quoted 5 lines · Mark A. Greer
Bryan,
If you're not already on the linuxppc-dev mailing list, you should be. The 'ppc' tree is deprecated and all new work should be happening in the 'powerpc' tree (as in
arch/powerpc).
Ah... I saw recent activity in the ppc tree and assumed it was still the place to do 8xx development.
Quoted 4 lines
The odds of this being accepted are slim but either way, you should read the mail archive and get involved in the powerpc migration.
Mark
No worries Mark, perhaps the thing to do is to do a board port based on the powerpc tree instead.
Bryan
Signature · 2 lines
Quidquid latine dictum sit, altum sonatur. - Whatever is said in Latin sounds profound.