Greg Ungerer | 88a605b | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 1 | /***************************************************************************/ |
| 2 | |
| 3 | /* |
| 4 | * linux/arch/m68knommu/platform/520x/config.c |
| 5 | * |
| 6 | * Copyright (C) 2005, Freescale (www.freescale.com) |
| 7 | * Copyright (C) 2005, Intec Automation (mike@steroidmicros.com) |
| 8 | * Copyright (C) 1999-2003, Greg Ungerer (gerg@snapgear.com) |
| 9 | * Copyright (C) 2001-2003, SnapGear Inc. (www.snapgear.com) |
| 10 | */ |
| 11 | |
| 12 | /***************************************************************************/ |
| 13 | |
Greg Ungerer | 88a605b | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 14 | #include <linux/kernel.h> |
| 15 | #include <linux/param.h> |
Greg Ungerer | eaefd5f | 2007-02-07 12:03:19 +1000 | [diff] [blame] | 16 | #include <linux/interrupt.h> |
Greg Ungerer | 88a605b | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 17 | #include <asm/machdep.h> |
| 18 | #include <asm/dma.h> |
| 19 | |
| 20 | /***************************************************************************/ |
| 21 | |
| 22 | /* |
| 23 | * DMA channel base address table. |
| 24 | */ |
| 25 | unsigned int dma_base_addr[MAX_M68K_DMA_CHANNELS]; |
| 26 | unsigned int dma_device_address[MAX_M68K_DMA_CHANNELS]; |
| 27 | |
| 28 | /***************************************************************************/ |
| 29 | |
| 30 | void coldfire_pit_tick(void); |
Greg Ungerer | eaefd5f | 2007-02-07 12:03:19 +1000 | [diff] [blame] | 31 | void coldfire_pit_init(irq_handler_t handler); |
Greg Ungerer | 88a605b | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 32 | unsigned long coldfire_pit_offset(void); |
Greg Ungerer | 88a605b | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 33 | void coldfire_reset(void); |
| 34 | |
| 35 | /***************************************************************************/ |
| 36 | |
| 37 | /* |
| 38 | * Program the vector to be an auto-vectored. |
| 39 | */ |
| 40 | |
| 41 | void mcf_autovector(unsigned int vec) |
| 42 | { |
| 43 | /* Everything is auto-vectored on the 520x devices */ |
| 44 | } |
| 45 | |
| 46 | /***************************************************************************/ |
| 47 | |
| 48 | void config_BSP(char *commandp, int size) |
| 49 | { |
Greg Ungerer | 88a605b | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 50 | mach_sched_init = coldfire_pit_init; |
| 51 | mach_tick = coldfire_pit_tick; |
| 52 | mach_gettimeoffset = coldfire_pit_offset; |
Greg Ungerer | 88a605b | 2005-11-07 14:09:50 +1000 | [diff] [blame] | 53 | mach_reset = coldfire_reset; |
| 54 | } |
| 55 | |
| 56 | /***************************************************************************/ |