Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / u-boot / board / bf527-sdp / bf527-sdp.c
1 /*
2  * U-boot - main board file
3  *
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
14 int 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
26 int 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 }