diff options
author | Vitaly Bordug <vbordug@ru.mvista.com> | 2006-10-02 14:45:17 -0400 |
---|---|---|
committer | Vitaly Bordug <vbordug@ru.mvista.com> | 2006-10-03 13:36:14 -0400 |
commit | 91bd61099defb28a442db358dd9c1693c6589cee (patch) | |
tree | 4a8b2916ea94a4968bdffb0c0428bdae862e44e4 /arch/powerpc/platforms/82xx/pq2ads.h | |
parent | ed943c1faba53d9a0bde56007ee27762b29dccbd (diff) |
POWERPC: mpc82xx merge: board-specific/platform stuff(resend)
This intruduces 82xx family in arch/powerpc/platforms,
and has all the board-specific code to represent regression-less
transaction from ppc. The functionality is apparently the same, including
PCI controller.
Signed-off-by: Vitaly Bordug <vbordug@ru.mvista.com>
Diffstat (limited to 'arch/powerpc/platforms/82xx/pq2ads.h')
-rw-r--r-- | arch/powerpc/platforms/82xx/pq2ads.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/82xx/pq2ads.h b/arch/powerpc/platforms/82xx/pq2ads.h new file mode 100644 index 000000000000..a7348213508f --- /dev/null +++ b/arch/powerpc/platforms/82xx/pq2ads.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | * PQ2/mpc8260 board-specific stuff | ||
3 | * | ||
4 | * A collection of structures, addresses, and values associated with | ||
5 | * the Freescale MPC8260ADS/MPC8266ADS-PCI boards. | ||
6 | * Copied from the RPX-Classic and SBS8260 stuff. | ||
7 | * | ||
8 | * Author: Vitaly Bordug <vbordug@ru.mvista.com> | ||
9 | * | ||
10 | * Originally written by Dan Malek for Motorola MPC8260 family | ||
11 | * | ||
12 | * Copyright (c) 2001 Dan Malek <dan@embeddedalley.com> | ||
13 | * Copyright (c) 2006 MontaVista Software, Inc. | ||
14 | * | ||
15 | * This program is free software; you can redistribute it and/or modify it | ||
16 | * under the terms of the GNU General Public License as published by the | ||
17 | * Free Software Foundation; either version 2 of the License, or (at your | ||
18 | * option) any later version. | ||
19 | */ | ||
20 | |||
21 | #ifdef __KERNEL__ | ||
22 | #ifndef __MACH_ADS8260_DEFS | ||
23 | #define __MACH_ADS8260_DEFS | ||
24 | |||
25 | #include <linux/config.h> | ||
26 | |||
27 | #include <asm/ppcboot.h> | ||
28 | |||
29 | /* For our show_cpuinfo hooks. */ | ||
30 | #define CPUINFO_VENDOR "Freescale Semiconductor" | ||
31 | #define CPUINFO_MACHINE "PQ2 ADS PowerPC" | ||
32 | |||
33 | /* Backword-compatibility stuff for the drivers */ | ||
34 | #define CPM_MAP_ADDR ((uint)0xf0000000) | ||
35 | #define CPM_IRQ_OFFSET 0 | ||
36 | |||
37 | /* The ADS8260 has 16, 32-bit wide control/status registers, accessed | ||
38 | * only on word boundaries. | ||
39 | * Not all are used (yet), or are interesting to us (yet). | ||
40 | */ | ||
41 | |||
42 | /* Things of interest in the CSR. | ||
43 | */ | ||
44 | #define BCSR0_LED0 ((uint)0x02000000) /* 0 == on */ | ||
45 | #define BCSR0_LED1 ((uint)0x01000000) /* 0 == on */ | ||
46 | #define BCSR1_FETHIEN ((uint)0x08000000) /* 0 == enable*/ | ||
47 | #define BCSR1_FETH_RST ((uint)0x04000000) /* 0 == reset */ | ||
48 | #define BCSR1_RS232_EN1 ((uint)0x02000000) /* 0 ==enable */ | ||
49 | #define BCSR1_RS232_EN2 ((uint)0x01000000) /* 0 ==enable */ | ||
50 | #define BCSR3_FETHIEN2 ((uint)0x10000000) /* 0 == enable*/ | ||
51 | #define BCSR3_FETH2_RS ((uint)0x80000000) /* 0 == reset */ | ||
52 | |||
53 | /* cpm serial driver works with constants below */ | ||
54 | |||
55 | #define SIU_INT_SMC1 ((uint)0x04+CPM_IRQ_OFFSET) | ||
56 | #define SIU_INT_SMC2i ((uint)0x05+CPM_IRQ_OFFSET) | ||
57 | #define SIU_INT_SCC1 ((uint)0x28+CPM_IRQ_OFFSET) | ||
58 | #define SIU_INT_SCC2 ((uint)0x29+CPM_IRQ_OFFSET) | ||
59 | #define SIU_INT_SCC3 ((uint)0x2a+CPM_IRQ_OFFSET) | ||
60 | #define SIU_INT_SCC4 ((uint)0x2b+CPM_IRQ_OFFSET) | ||
61 | |||
62 | void m82xx_pci_init_irq(void); | ||
63 | void mpc82xx_ads_show_cpuinfo(struct seq_file*); | ||
64 | void m82xx_calibrate_decr(void); | ||
65 | |||
66 | #endif /* __MACH_ADS8260_DEFS */ | ||
67 | #endif /* __KERNEL__ */ | ||