diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-16 17:56:01 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-16 17:56:01 -0500 |
| commit | ea44a160e6dc5d3d7c680ea72dfbabef80343839 (patch) | |
| tree | 417cb991a2cf72458aa4d9f71f6e6ed9768a8e4f | |
| parent | 1fa185ebcbcefdc5229c783450c9f0439a69f0c1 (diff) | |
| parent | 21b30ca5da14613dcf8fd8350ecdb0d5d245e814 (diff) | |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu fixes from Greg Ungerer:
"Nothing big, only a small collection of minor cleanups/fixes"
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
arch: m68k: 68360: config: Remove unused function
m68knommu: fix irq handler types in 68360/commproc.c
m68k: remove check for CONFIG_BSEIP
| -rw-r--r-- | arch/m68k/68360/commproc.c | 8 | ||||
| -rw-r--r-- | arch/m68k/68360/config.c | 13 | ||||
| -rw-r--r-- | arch/m68k/include/asm/commproc.h | 24 |
3 files changed, 5 insertions, 40 deletions
diff --git a/arch/m68k/68360/commproc.c b/arch/m68k/68360/commproc.c index 315727b7ff40..14d7f35cd37b 100644 --- a/arch/m68k/68360/commproc.c +++ b/arch/m68k/68360/commproc.c | |||
| @@ -64,15 +64,15 @@ QUICC *pquicc; | |||
| 64 | 64 | ||
| 65 | /* CPM interrupt vector functions. */ | 65 | /* CPM interrupt vector functions. */ |
| 66 | struct cpm_action { | 66 | struct cpm_action { |
| 67 | void (*handler)(void *); | 67 | irq_handler_t handler; |
| 68 | void *dev_id; | 68 | void *dev_id; |
| 69 | }; | 69 | }; |
| 70 | static struct cpm_action cpm_vecs[CPMVEC_NR]; | 70 | static struct cpm_action cpm_vecs[CPMVEC_NR]; |
| 71 | static void cpm_interrupt(int irq, void * dev, struct pt_regs * regs); | 71 | static void cpm_interrupt(int irq, void * dev, struct pt_regs * regs); |
| 72 | static void cpm_error_interrupt(void *); | 72 | static void cpm_error_interrupt(void *); |
| 73 | 73 | ||
| 74 | /* prototypes: */ | 74 | /* prototypes: */ |
| 75 | void cpm_install_handler(int vec, void (*handler)(), void *dev_id); | 75 | void cpm_install_handler(int vec, irq_handler_t handler, void *dev_id); |
| 76 | void m360_cpm_reset(void); | 76 | void m360_cpm_reset(void); |
| 77 | 77 | ||
| 78 | 78 | ||
| @@ -208,7 +208,7 @@ cpm_error_interrupt(void *dev) | |||
| 208 | /* Install a CPM interrupt handler. | 208 | /* Install a CPM interrupt handler. |
| 209 | */ | 209 | */ |
| 210 | void | 210 | void |
| 211 | cpm_install_handler(int vec, void (*handler)(), void *dev_id) | 211 | cpm_install_handler(int vec, irq_handler_t handler, void *dev_id) |
| 212 | { | 212 | { |
| 213 | 213 | ||
| 214 | request_irq(vec, handler, 0, "timer", dev_id); | 214 | request_irq(vec, handler, 0, "timer", dev_id); |
diff --git a/arch/m68k/68360/config.c b/arch/m68k/68360/config.c index 17ec416fed9d..fd1f948c7129 100644 --- a/arch/m68k/68360/config.c +++ b/arch/m68k/68360/config.c | |||
| @@ -106,19 +106,6 @@ void hw_timer_init(irq_handler_t handler) | |||
| 106 | pquicc->timer_tgcr = tgcr_save; | 106 | pquicc->timer_tgcr = tgcr_save; |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | int BSP_set_clock_mmss(unsigned long nowtime) | ||
| 110 | { | ||
| 111 | #if 0 | ||
| 112 | short real_seconds = nowtime % 60, real_minutes = (nowtime / 60) % 60; | ||
| 113 | |||
| 114 | tod->second1 = real_seconds / 10; | ||
| 115 | tod->second2 = real_seconds % 10; | ||
| 116 | tod->minute1 = real_minutes / 10; | ||
| 117 | tod->minute2 = real_minutes % 10; | ||
| 118 | #endif | ||
| 119 | return 0; | ||
| 120 | } | ||
| 121 | |||
| 122 | void BSP_reset (void) | 109 | void BSP_reset (void) |
| 123 | { | 110 | { |
| 124 | local_irq_disable(); | 111 | local_irq_disable(); |
diff --git a/arch/m68k/include/asm/commproc.h b/arch/m68k/include/asm/commproc.h index 66a36bd51aa1..f41c96863e98 100644 --- a/arch/m68k/include/asm/commproc.h +++ b/arch/m68k/include/asm/commproc.h | |||
| @@ -480,28 +480,6 @@ typedef struct scc_enet { | |||
| 480 | #define SICR_ENET_CLKRT ((uint)0x0000003d) | 480 | #define SICR_ENET_CLKRT ((uint)0x0000003d) |
| 481 | #endif | 481 | #endif |
| 482 | 482 | ||
| 483 | #ifdef CONFIG_BSEIP | ||
| 484 | /* This ENET stuff is for the MPC823 with ethernet on SCC2. | ||
| 485 | * This is unique to the BSE ip-Engine board. | ||
| 486 | */ | ||
| 487 | #define PA_ENET_RXD ((ushort)0x0004) | ||
| 488 | #define PA_ENET_TXD ((ushort)0x0008) | ||
| 489 | #define PA_ENET_TCLK ((ushort)0x0100) | ||
| 490 | #define PA_ENET_RCLK ((ushort)0x0200) | ||
| 491 | #define PB_ENET_TENA ((uint)0x00002000) | ||
| 492 | #define PC_ENET_CLSN ((ushort)0x0040) | ||
| 493 | #define PC_ENET_RENA ((ushort)0x0080) | ||
| 494 | |||
| 495 | /* BSE uses port B and C bits for PHY control also. | ||
| 496 | */ | ||
| 497 | #define PB_BSE_POWERUP ((uint)0x00000004) | ||
| 498 | #define PB_BSE_FDXDIS ((uint)0x00008000) | ||
| 499 | #define PC_BSE_LOOPBACK ((ushort)0x0800) | ||
| 500 | |||
| 501 | #define SICR_ENET_MASK ((uint)0x0000ff00) | ||
| 502 | #define SICR_ENET_CLKRT ((uint)0x00002c00) | ||
| 503 | #endif | ||
| 504 | |||
| 505 | /* SCC Event register as used by Ethernet. | 483 | /* SCC Event register as used by Ethernet. |
| 506 | */ | 484 | */ |
| 507 | #define SCCE_ENET_GRA ((ushort)0x0080) /* Graceful stop complete */ | 485 | #define SCCE_ENET_GRA ((ushort)0x0080) /* Graceful stop complete */ |
| @@ -671,7 +649,7 @@ typedef struct scc_trans { | |||
| 671 | /* #define CPMVEC_PIO_PC4 ((ushort)0x01) */ | 649 | /* #define CPMVEC_PIO_PC4 ((ushort)0x01) */ |
| 672 | /* #define CPMVEC_ERROR ((ushort)0x00) */ | 650 | /* #define CPMVEC_ERROR ((ushort)0x00) */ |
| 673 | 651 | ||
| 674 | extern void cpm_install_handler(int vec, void (*handler)(void *), void *dev_id); | 652 | extern void cpm_install_handler(int vec, irq_handler_t handler, void *dev_id); |
| 675 | 653 | ||
| 676 | /* CPM interrupt configuration vector. | 654 | /* CPM interrupt configuration vector. |
| 677 | */ | 655 | */ |
