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