blob: 0c6094b1e46ddef5e334c9d37aabcf8980cd5f0f [file] [log] [blame]
Mike Frysinger581e97d2010-09-19 16:28:40 -04001/*
Bin Menga1875592016-02-05 19:30:11 -08002 * U-Boot - main board file
Mike Frysinger581e97d2010-09-19 16:28:40 -04003 *
4 * Copyright (c) 2010 Analog Devices Inc.
5 *
6 * Licensed under the GPL-2 or later.
7 */
8
9#include <common.h>
10#include <asm/blackfin.h>
11#include <asm/gpio.h>
12#include <asm/mach-common/bits/pll.h>
13
14int checkboard(void)
15{
16 printf("Board: ADI BF527 SDP board\n");
17 printf(" Support: http://blackfin.uclinux.org/\n");
18
19 /* Enable access to parallel flash */
20 gpio_request(GPIO_PG0, "parallel-flash");
21 gpio_direction_output(GPIO_PG0, 0);
22
23 return 0;
24}
25
26int misc_init_r(void)
27{
28 /* CLKIN Buffer Output Enable */
29 bfin_write_VR_CTL(bfin_read_VR_CTL() | CLKBUFOE);
30
31 return 0;
32}