Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46853
b: refs/heads/master
c: 5427828
h: refs/heads/master
i:
  46851: c6a0d2a
v: v3
  • Loading branch information
Vitaly Bordug authored and Paul Mackerras committed Feb 7, 2007
1 parent 49b9c40 commit bf4e1d4
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73844ecbaa58885c5e89af7d1b08faaffffa6833
refs/heads/master: 5427828e83b7f3c000eaec1cfb09c9bc4d024ad1
8 changes: 4 additions & 4 deletions trunk/arch/powerpc/boot/dts/mpc8272ads.dts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
#size-cells = <1>;
#interrupt-cells = <2>;
device_type = "soc";
ranges = < 0 0 2 00000000 f0000000 00053000>;
reg = <f0000000 0>;
ranges = <00000000 f0000000 00053000>;
reg = <f0000000 10000>;

mdio@0 {
device_type = "mdio";
Expand Down Expand Up @@ -130,8 +130,8 @@
#interrupt-cells = <2>;
device_type = "cpm";
model = "CPM2";
ranges = <00000000 00000000 3ffff>;
reg = <10d80 3280>;
ranges = <00000000 00000000 20000>;
reg = <0 20000>;
command-proc = <119c0>;
brg-frequency = <17D7840>;
cpm_clk = <BEBC200>;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/82xx/mpc82xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
#include <sysdev/fsl_soc.h>
#include <sysdev/cpm2_pic.h>

#include "pq2ads_pd.h"
#include "pq2ads.h"

static int __init get_freq(char *name, unsigned long *val)
{
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/82xx/mpc82xx_ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#include <sysdev/fsl_soc.h>
#include <../sysdev/cpm2_pic.h>

#include "pq2ads_pd.h"
#include "pq2ads.h"

#ifdef CONFIG_PCI
static uint pci_clk_frq;
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/platforms/82xx/pq2ads.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#ifndef __MACH_ADS8260_DEFS
#define __MACH_ADS8260_DEFS

#include <linux/seq_file.h>
#include <asm/ppcboot.h>

/* For our show_cpuinfo hooks. */
Expand All @@ -46,12 +47,12 @@
#define BCSR1_RS232_EN1 ((uint)0x02000000) /* 0 ==enable */
#define BCSR1_RS232_EN2 ((uint)0x01000000) /* 0 ==enable */
#define BCSR3_FETHIEN2 ((uint)0x10000000) /* 0 == enable*/
#define BCSR3_FETH2_RS ((uint)0x80000000) /* 0 == reset */
#define BCSR3_FETH2_RST ((uint)0x80000000) /* 0 == reset */

/* cpm serial driver works with constants below */

#define SIU_INT_SMC1 ((uint)0x04+CPM_IRQ_OFFSET)
#define SIU_INT_SMC2i ((uint)0x05+CPM_IRQ_OFFSET)
#define SIU_INT_SMC2 ((uint)0x05+CPM_IRQ_OFFSET)
#define SIU_INT_SCC1 ((uint)0x28+CPM_IRQ_OFFSET)
#define SIU_INT_SCC2 ((uint)0x29+CPM_IRQ_OFFSET)
#define SIU_INT_SCC3 ((uint)0x2a+CPM_IRQ_OFFSET)
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/powerpc/platforms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ obj-$(CONFIG_PPC_MPC52xx) += 52xx/
obj-$(CONFIG_PPC_CHRP) += chrp/
obj-$(CONFIG_4xx) += 4xx/
obj-$(CONFIG_PPC_8xx) += 8xx/
obj-$(CONFIG_PPC_82xx) += 82xx/
obj-$(CONFIG_PPC_83xx) += 83xx/
obj-$(CONFIG_PPC_85xx) += 85xx/
obj-$(CONFIG_PPC_86xx) += 86xx/
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/fs_enet/fs_enet.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <linux/dma-mapping.h>

#include <linux/fs_enet_pd.h>
#include <asm/fs_pd.h>

#ifdef CONFIG_CPM1
#include <asm/commproc.h>
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/serial/cpm_uart/cpm_uart_cpm1.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
#define SCC3_IRQ (CPM_IRQ_OFFSET + CPMVEC_SCC3)
#define SCC4_IRQ (CPM_IRQ_OFFSET + CPMVEC_SCC4)

/* the CPM address */
#define CPM_ADDR IMAP_ADDR

static inline void cpm_set_brg(int brg, int baud)
{
cpm_setbrg(brg, baud);
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/serial/cpm_uart/cpm_uart_cpm2.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
#define SCC3_IRQ SIU_INT_SCC3
#define SCC4_IRQ SIU_INT_SCC4

/* the CPM address */
#define CPM_ADDR CPM_MAP_ADDR

static inline void cpm_set_brg(int brg, int baud)
{
cpm_setbrg(brg, baud);
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/asm-powerpc/fs_pd.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
#ifdef CONFIG_CPM2
#include <asm/cpm2.h>

#if defined(CONFIG_8260)
#include <asm/mpc8260.h>
#elif defined(CONFIG_85xx)
#include <asm/mpc85xx.h>
#endif

#define cpm2_map(member) \
({ \
u32 offset = offsetof(cpm2_map_t, member); \
Expand Down
6 changes: 6 additions & 0 deletions trunk/include/asm-powerpc/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,12 @@ static inline void * bus_to_virt(unsigned long address)

#endif /* CONFIG_PPC32 */

/* access ports */
#define setbits32(_addr, _v) out_be32((_addr), in_be32(_addr) | (_v))
#define clrbits32(_addr, _v) out_be32((_addr), in_be32(_addr) & ~(_v))

#define setbits16(_addr, _v) out_be16((_addr), in_be16(_addr) | (_v))
#define clrbits16(_addr, _v) out_be16((_addr), in_be16(_addr) & ~(_v))

#endif /* __KERNEL__ */

Expand Down

0 comments on commit bf4e1d4

Please sign in to comment.