Heiko Schocher | 9acb626 | 2006-04-20 08:42:42 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2005 |
| 3 | * BuS Elektronik GmbH & Co.KG <esw@bus-elektonik.de> |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
| 23 | |
| 24 | #ifndef __VCXK_H_ |
| 25 | #define __VCXK_H_ |
| 26 | |
| 27 | extern int init_vcxk(void); |
Wolfgang Denk | dd520bf | 2006-11-30 18:02:20 +0100 | [diff] [blame] | 28 | void vcxk_loadimage(ulong source); |
Heiko Schocher | 9acb626 | 2006-04-20 08:42:42 +0200 | [diff] [blame] | 29 | |
| 30 | #define VIDEO_ACKNOWLEDGE_PORT MCFGPTB_GPTPORT |
Wolfgang Denk | dd520bf | 2006-11-30 18:02:20 +0100 | [diff] [blame] | 31 | #define VIDEO_ACKNOWLEDGE_DDR MCFGPTB_GPTDDR |
Heiko Schocher | 9acb626 | 2006-04-20 08:42:42 +0200 | [diff] [blame] | 32 | #define VIDEO_ACKNOWLEDGE_PIN 0x0001 |
| 33 | |
Wolfgang Denk | dd520bf | 2006-11-30 18:02:20 +0100 | [diff] [blame] | 34 | #define VIDEO_ENABLE_PORT MCFGPTB_GPTPORT |
| 35 | #define VIDEO_ENABLE_DDR MCFGPTB_GPTDDR |
Heiko Schocher | 9acb626 | 2006-04-20 08:42:42 +0200 | [diff] [blame] | 36 | #define VIDEO_ENABLE_PIN 0x0002 |
| 37 | |
Wolfgang Denk | dd520bf | 2006-11-30 18:02:20 +0100 | [diff] [blame] | 38 | #define VIDEO_REQUEST_PORT MCFGPTB_GPTPORT |
| 39 | #define VIDEO_REQUEST_DDR MCFGPTB_GPTDDR |
Heiko Schocher | 9acb626 | 2006-04-20 08:42:42 +0200 | [diff] [blame] | 40 | #define VIDEO_REQUEST_PIN 0x0004 |
| 41 | |
| 42 | #define VIDEO_Invert_CFG MCFGPIO_PEPAR |
| 43 | #define VIDEO_Invert_IO MCFGPIO_PEPAR_PEPA2 |
Wolfgang Denk | dd520bf | 2006-11-30 18:02:20 +0100 | [diff] [blame] | 44 | #define VIDEO_INVERT_PORT MCFGPIO_PORTE |
| 45 | #define VIDEO_INVERT_DDR MCFGPIO_DDRE |
Heiko Schocher | 9acb626 | 2006-04-20 08:42:42 +0200 | [diff] [blame] | 46 | #define VIDEO_INVERT_PIN MCFGPIO_PORT2 |
| 47 | |
| 48 | #endif |