board_hl200.c revision 238465
1187261Snwhitehorn/*- 2187261Snwhitehorn * Copyright (c) 2005-2008 Olivier Houchard. All rights reserved. 3187261Snwhitehorn * Copyright (c) 2005-2012 Warner Losh. All rights reserved. 4187261Snwhitehorn * 5187261Snwhitehorn * Redistribution and use in source and binary forms, with or without 6187261Snwhitehorn * modification, are permitted provided that the following conditions 7187261Snwhitehorn * are met: 8187261Snwhitehorn * 1. Redistributions of source code must retain the above copyright 9187261Snwhitehorn * notice, this list of conditions and the following disclaimer. 10187261Snwhitehorn * 2. Redistributions in binary form must reproduce the above copyright 11187261Snwhitehorn * notice, this list of conditions and the following disclaimer in the 12187261Snwhitehorn * documentation and/or other materials provided with the distribution. 13187261Snwhitehorn * 14187261Snwhitehorn * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15187261Snwhitehorn * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16187261Snwhitehorn * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17187261Snwhitehorn * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 18187261Snwhitehorn * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19187261Snwhitehorn * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20187261Snwhitehorn * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21187261Snwhitehorn * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22187261Snwhitehorn * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23187261Snwhitehorn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24187261Snwhitehorn * SUCH DAMAGE. 25187261Snwhitehorn */ 26187261Snwhitehorn 27187261Snwhitehorn#include <sys/cdefs.h> 28187261Snwhitehorn__FBSDID("$FreeBSD: head/sys/arm/at91/board_hl200.c 238465 2012-07-15 05:41:43Z imp $"); 29187261Snwhitehorn#include <sys/param.h> 30187261Snwhitehorn#include <sys/systm.h> 31187261Snwhitehorn 32187261Snwhitehorn#include <machine/board.h> 33187261Snwhitehorn#include <arm/at91/at91board.h> 34187261Snwhitehorn#include <arm/at91/at91var.h> 35187261Snwhitehorn#include <arm/at91/at91rm92reg.h> 36187261Snwhitehorn#include <arm/at91/at91rm9200var.h> 37187261Snwhitehorn 38187261SnwhitehornBOARD_INIT long 39187261Snwhitehornboard_init(void) 40187261Snwhitehorn{ 41187261Snwhitehorn 42187261Snwhitehorn at91rm9200_set_subtype(AT91_ST_RM9200_BGA); 43187261Snwhitehorn 44187261Snwhitehorn /* 45187261Snwhitehorn * Unsure what all is in the HOTe HL200, but I do know there's 46187261Snwhitehorn * one serial port that isn't DBGU. There's many other peripherals 47187261Snwhitehorn * that need to be configured here. 48187261Snwhitehorn */ 49187261Snwhitehorn at91rm9200_config_uart(AT91_ID_DBGU, 0, 0); /* DBGU just Tx and Rx */ 50187261Snwhitehorn at91rm9200_config_uart(AT91RM9200_ID_USART0, 1, 0); /* Tx and Rx */ 51187261Snwhitehorn 52187261Snwhitehorn at91rm9200_config_mci(0); /* HOTe HL200 unknown 1 vs 4 wire */ 53187261Snwhitehorn 54187261Snwhitehorn /* Enable CF card slot */ 55187261Snwhitehorn /* Enable sound thing */ 56187261Snwhitehorn /* Enable VGA chip */ 57187261Snwhitehorn /* Enable ethernet */ 58187261Snwhitehorn /* Enable TWI + RTC */ 59187261Snwhitehorn /* Enable USB Host */ 60187261Snwhitehorn /* Enable USB Device (gadget) */ 61187261Snwhitehorn 62187261Snwhitehorn return (at91_ramsize()); 63187261Snwhitehorn} 64187261Snwhitehorn 65187261SnwhitehornARM_BOARD(NONE, "HOTe 200"); 66187261Snwhitehorn