1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 2415a613bSKumar Gala /* 3415a613bSKumar Gala * Copyright 2004 Freescale Semiconductor. 4415a613bSKumar Gala */ 5415a613bSKumar Gala 6415a613bSKumar Gala #ifndef __CADMUS_H_ 7415a613bSKumar Gala #define __CADMUS_H_ 8415a613bSKumar Gala 9415a613bSKumar Gala 10415a613bSKumar Gala /* 11415a613bSKumar Gala * CADMUS Board System Register interface. 12415a613bSKumar Gala */ 13415a613bSKumar Gala 14415a613bSKumar Gala /* 15415a613bSKumar Gala * Returns board version register. 16415a613bSKumar Gala */ 17415a613bSKumar Gala extern unsigned int get_board_version(void); 18415a613bSKumar Gala 19415a613bSKumar Gala /* 20415a613bSKumar Gala * Returns either 33000000 or 66000000 as the SYS_CLK_FREQ. 21415a613bSKumar Gala */ 22415a613bSKumar Gala extern unsigned long get_clock_freq(void); 23415a613bSKumar Gala 24415a613bSKumar Gala 25415a613bSKumar Gala /* 26415a613bSKumar Gala * Returns 1 - 4, as found in the USER CSR[6:7] bits. 27415a613bSKumar Gala */ 28415a613bSKumar Gala extern unsigned int get_pci_slot(void); 29415a613bSKumar Gala 30415a613bSKumar Gala 31415a613bSKumar Gala /* 32415a613bSKumar Gala * Returns PCI DUAL as found in CM_PCI[3]. 33415a613bSKumar Gala */ 34415a613bSKumar Gala extern unsigned int get_pci_dual(void); 35415a613bSKumar Gala 36415a613bSKumar Gala 37415a613bSKumar Gala #endif /* __CADMUS_H_ */ 38