blob: 7c9d9a6c1b7173ef8a9c7abb33e0347631ad0c20 [file] [log] [blame]
Travis Geiselbrecht1d0df692008-09-01 02:26:09 -07001/*
2 * Copyright (c) 2008 Travis Geiselbrecht
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files
6 * (the "Software"), to deal in the Software without restriction,
7 * including without limitation the rights to use, copy, modify, merge,
8 * publish, distribute, sublicense, and/or sell copies of the Software,
9 * and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23#include <platform/at91sam7.h>
24#include <platform/mux.h>
25
26void mux_init(void)
27{
28 AT91PIO *pio = AT91PIOA_ADDR;
29
30 pio->output_disable = BOARD_OUTPUT_DISABLE;
31 pio->output_enable = BOARD_OUTPUT_ENABLE;
32 pio->pullup_disable = BOARD_PULLUP_DISABLE;
33 pio->pullup_enable = BOARD_PULLUP_ENABLE;
34 pio->pio_disable = BOARD_PIO_DISABLE;
35 pio->pio_enable = BOARD_PIO_ENABLE;
36 pio->select_a = BOARD_SELECT_A;
37 pio->select_b = BOARD_SELECT_B;
38}
39