1155324Simp/*- 2185305Simp * Copyright (c) 2005-2008 Olivier Houchard. All rights reserved. 3238415Simp * Copyright (c) 2005-2012 Warner Losh. All rights reserved. 4155324Simp * 5155324Simp * Redistribution and use in source and binary forms, with or without 6155324Simp * modification, are permitted provided that the following conditions 7155324Simp * are met: 8155324Simp * 1. Redistributions of source code must retain the above copyright 9155324Simp * notice, this list of conditions and the following disclaimer. 10155324Simp * 2. Redistributions in binary form must reproduce the above copyright 11155324Simp * notice, this list of conditions and the following disclaimer in the 12155324Simp * documentation and/or other materials provided with the distribution. 13155324Simp * 14185305Simp * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15185305Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16185305Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17185305Simp * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 18185305Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19185305Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20185305Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21155324Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22155324Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23155324Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24155324Simp * SUCH DAMAGE. 25155324Simp */ 26155324Simp 27155324Simp#include <sys/cdefs.h> 28155324Simp__FBSDID("$FreeBSD: releng/10.3/sys/arm/at91/board_hl200.c 238465 2012-07-15 05:41:43Z imp $"); 29155324Simp#include <sys/param.h> 30155324Simp#include <sys/systm.h> 31155324Simp 32238189Simp#include <machine/board.h> 33185305Simp#include <arm/at91/at91board.h> 34238415Simp#include <arm/at91/at91var.h> 35155324Simp#include <arm/at91/at91rm92reg.h> 36238415Simp#include <arm/at91/at91rm9200var.h> 37155324Simp 38238189SimpBOARD_INIT long 39160363Simpboard_init(void) 40160363Simp{ 41238415Simp 42238415Simp at91rm9200_set_subtype(AT91_ST_RM9200_BGA); 43238415Simp 44160363Simp /* 45238439Simp * Unsure what all is in the HOTe HL200, but I do know there's 46238439Simp * one serial port that isn't DBGU. There's many other peripherals 47238439Simp * that need to be configured here. 48160363Simp */ 49238439Simp at91rm9200_config_uart(AT91_ID_DBGU, 0, 0); /* DBGU just Tx and Rx */ 50238439Simp at91rm9200_config_uart(AT91RM9200_ID_USART0, 1, 0); /* Tx and Rx */ 51160363Simp 52238465Simp at91rm9200_config_mci(0); /* HOTe HL200 unknown 1 vs 4 wire */ 53238465Simp 54238465Simp /* Enable CF card slot */ 55238465Simp /* Enable sound thing */ 56238465Simp /* Enable VGA chip */ 57238465Simp /* Enable ethernet */ 58238465Simp /* Enable TWI + RTC */ 59238465Simp /* Enable USB Host */ 60238465Simp /* Enable USB Device (gadget) */ 61238465Simp 62185305Simp return (at91_ramsize()); 63160363Simp} 64238189Simp 65238189SimpARM_BOARD(NONE, "HOTe 200"); 66