1 /* $NetBSD: obs266.h,v 1.2 2005/12/11 12:17:12 christos Exp $ */ 2 3 /* 4 * Copyright 2004 Shigeyuki Fukushima. 5 * All rights reserved. 6 * 7 * Written by Shigeyuki Fukushima for The NetBSD Project. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions 11 * are met: 12 * 1. Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * 2. Redistributions in binary form must reproduce the above 15 * copyright notice, this list of conditions and the following 16 * disclaimer in the documentation and/or other materials provided 17 * with the distribution. 18 * 3. The name of the author may not be used to endorse or promote 19 * products derived from this software without specific prior 20 * written permission. 21 * 22 * THIS SOFTWARE IS PROVIDED THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 24 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 25 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE 26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 28 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 29 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 30 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 32 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 33 * DAMAGE. 34 */ 35 36 #ifndef _EVBPPC_OBS266_H_ 37 #define _EVBPPC_OBS266_H_ 38 39 #include <machine/obs405.h> 40 41 /* 42 * Device Properties for OpenBlockS266 (IBM405GPr 266MHz) 43 */ 44 45 /* UART Clock */ 46 #define OBS266_COM_FREQ (COM_FREQ * 4) /* UART CLK 7.3728 MHz */ 47 48 /* OpenBlockS266 GPIO LED */ 49 #define OBS266_LED1 (1) 50 #define OBS266_LED2 (2) 51 #define OBS266_LED4 (4) 52 #define OBS266_LED_ON (OBS266_LED1 | OBS266_LED2 | OBS266_LED4) 53 #define OBS266_LED_OFF (~OBS266_LED1 & ~OBS266_LED2 & ~OBS266_LED4) 54 55 #define OBS266_GPIO_LED1 (12) 56 #define OBS266_GPIO_LED2 (13) 57 #define OBS266_GPIO_LED4 (14) 58 59 /* 60 * extern variables and functions 61 */ 62 extern void obs266_led_set(int led); 63 64 #endif /* _EVBPPC_OBS266_H_ */ 65