Mike Frysinger | 581e97d | 2010-09-19 16:28:40 -0400 | [diff] [blame] | 1 | /* |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 2 | * U-Boot - main board file |
Mike Frysinger | 581e97d | 2010-09-19 16:28:40 -0400 | [diff] [blame] | 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 | } |