board_hl200.c revision 272461
180709Sjake/*- 280709Sjake * Copyright (c) 2005-2008 Olivier Houchard. All rights reserved. 380709Sjake * Copyright (c) 2005-2012 Warner Losh. All rights reserved. 480709Sjake * 580709Sjake * Redistribution and use in source and binary forms, with or without 680709Sjake * modification, are permitted provided that the following conditions 780709Sjake * are met: 880709Sjake * 1. Redistributions of source code must retain the above copyright 980709Sjake * notice, this list of conditions and the following disclaimer. 1080709Sjake * 2. Redistributions in binary form must reproduce the above copyright 1180709Sjake * notice, this list of conditions and the following disclaimer in the 1280709Sjake * documentation and/or other materials provided with the distribution. 1380709Sjake * 1480709Sjake * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1580709Sjake * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1680709Sjake * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1780709Sjake * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 1880709Sjake * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1980709Sjake * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2080709Sjake * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2180709Sjake * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2280709Sjake * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2380709Sjake * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2480709Sjake * SUCH DAMAGE. 2580709Sjake */ 2680709Sjake 2780709Sjake#include <sys/cdefs.h> 2880709Sjake__FBSDID("$FreeBSD: releng/10.1/sys/arm/at91/board_hl200.c 238465 2012-07-15 05:41:43Z imp $"); 2980709Sjake#include <sys/param.h> 3080709Sjake#include <sys/systm.h> 3180709Sjake 3280709Sjake#include <machine/board.h> 3380709Sjake#include <arm/at91/at91board.h> 3480709Sjake#include <arm/at91/at91var.h> 3580709Sjake#include <arm/at91/at91rm92reg.h> 3680709Sjake#include <arm/at91/at91rm9200var.h> 3780709Sjake 3880709SjakeBOARD_INIT long 3980709Sjakeboard_init(void) 4080709Sjake{ 4180709Sjake 4280709Sjake at91rm9200_set_subtype(AT91_ST_RM9200_BGA); 4380709Sjake 4480709Sjake /* 4580709Sjake * Unsure what all is in the HOTe HL200, but I do know there's 4680709Sjake * one serial port that isn't DBGU. There's many other peripherals 4780709Sjake * that need to be configured here. 4880709Sjake */ 4980709Sjake at91rm9200_config_uart(AT91_ID_DBGU, 0, 0); /* DBGU just Tx and Rx */ 5080709Sjake at91rm9200_config_uart(AT91RM9200_ID_USART0, 1, 0); /* Tx and Rx */ 5180709Sjake 5280709Sjake at91rm9200_config_mci(0); /* HOTe HL200 unknown 1 vs 4 wire */ 5380709Sjake 5480709Sjake /* Enable CF card slot */ 5580709Sjake /* Enable sound thing */ 5680709Sjake /* Enable VGA chip */ 5780709Sjake /* Enable ethernet */ 5880709Sjake /* Enable TWI + RTC */ 5980709Sjake /* Enable USB Host */ 6080709Sjake /* Enable USB Device (gadget) */ 6180709Sjake 6280709Sjake return (at91_ramsize()); 6380709Sjake} 6480709Sjake 6580709SjakeARM_BOARD(NONE, "HOTe 200"); 6680709Sjake