1238789Sandrew/*- 2238789Sandrew * Copyright (c) 2009 Greg Ansley. All rights reserved. 3238789Sandrew * 4238789Sandrew * Redistribution and use in source and binary forms, with or without 5238789Sandrew * modification, are permitted provided that the following conditions 6238789Sandrew * are met: 7238789Sandrew * 1. Redistributions of source code must retain the above copyright 8238789Sandrew * notice, this list of conditions and the following disclaimer. 9238789Sandrew * 2. Redistributions in binary form must reproduce the above copyright 10238789Sandrew * notice, this list of conditions and the following disclaimer in the 11238789Sandrew * documentation and/or other materials provided with the distribution. 12238789Sandrew * 13238789Sandrew * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14238789Sandrew * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15238789Sandrew * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16238789Sandrew * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 17238789Sandrew * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18238789Sandrew * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19238789Sandrew * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20238789Sandrew * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21238789Sandrew * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22238789Sandrew * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23238789Sandrew * SUCH DAMAGE. 24238789Sandrew */ 25238789Sandrew 26238789Sandrew/* 27238789Sandrew * DesignA Electronics Snapper9g45 28238789Sandrew * http://www.designa-electronics.com/ 29238789Sandrew */ 30238789Sandrew 31238789Sandrew#include <sys/cdefs.h> 32238789Sandrew__FBSDID("$FreeBSD$"); 33238789Sandrew#include <sys/param.h> 34238789Sandrew#include <sys/systm.h> 35238789Sandrew 36238789Sandrew#include <machine/board.h> 37238789Sandrew#include <arm/at91/at91board.h> 38238789Sandrew#include <arm/at91/at91reg.h> 39238789Sandrew#include <arm/at91/at91var.h> 40238789Sandrew#include <arm/at91/at91sam9g45reg.h> 41238789Sandrew#include <arm/at91/at91_piovar.h> 42238789Sandrew#include <arm/at91/at91_pio_sam9g45.h> 43238789Sandrew 44238846SimpBOARD_INIT long 45238789Sandrewboard_init(void) 46238789Sandrew{ 47238789Sandrew 48238789Sandrew /* PIOB's A periph: Turn the debug USART's TX/RX pins */ 49238789Sandrew at91_pio_use_periph_a(AT91SAM9G45_PIOB_BASE, AT91C_PB12_DRXD, 0); 50238789Sandrew at91_pio_use_periph_a(AT91SAM9G45_PIOB_BASE, AT91C_PB13_DTXD, 1); 51238789Sandrew 52238789Sandrew return (at91_ramsize()); 53238789Sandrew} 54238789Sandrew 55238789SandrewARM_BOARD(SNAPPER9G45, "DesignA Electronics Snapper9G45"); 56