wdenk | 0aeb853 | 2004-10-10 21:21:55 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2004 Freescale Semiconductor. |
| 3 | * |
Wolfgang Denk | bd8ec7e | 2013-10-07 13:07:26 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | 0aeb853 | 2004-10-10 21:21:55 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __CADMUS_H_ |
| 8 | #define __CADMUS_H_ |
| 9 | |
| 10 | |
| 11 | /* |
| 12 | * CADMUS Board System Register interface. |
| 13 | */ |
| 14 | |
| 15 | /* |
| 16 | * Returns board version register. |
| 17 | */ |
| 18 | extern unsigned int get_board_version(void); |
| 19 | |
| 20 | /* |
| 21 | * Returns either 33000000 or 66000000 as the SYS_CLK_FREQ. |
| 22 | */ |
| 23 | extern unsigned long get_clock_freq(void); |
| 24 | |
| 25 | |
| 26 | /* |
| 27 | * Returns 1 - 4, as found in the USER CSR[6:7] bits. |
| 28 | */ |
| 29 | extern unsigned int get_pci_slot(void); |
| 30 | |
| 31 | |
| 32 | /* |
| 33 | * Returns PCI DUAL as found in CM_PCI[3]. |
| 34 | */ |
| 35 | extern unsigned int get_pci_dual(void); |
| 36 | |
| 37 | |
| 38 | #endif /* __CADMUS_H_ */ |