blob: 93cea120845688a6f29e0d540ee416084a3dde0a [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenk0aeb8532004-10-10 21:21:55 +00002/*
3 * Copyright 2004 Freescale Semiconductor.
wdenk0aeb8532004-10-10 21:21:55 +00004 */
5
6#ifndef __CADMUS_H_
7#define __CADMUS_H_
8
wdenk0aeb8532004-10-10 21:21:55 +00009/*
10 * CADMUS Board System Register interface.
11 */
12
13/*
14 * Returns board version register.
15 */
16extern unsigned int get_board_version(void);
17
18/*
19 * Returns either 33000000 or 66000000 as the SYS_CLK_FREQ.
20 */
Tom Riniaea2a992021-12-14 13:36:39 -050021extern unsigned long get_board_sys_clk(void);
wdenk0aeb8532004-10-10 21:21:55 +000022
wdenk0aeb8532004-10-10 21:21:55 +000023/*
24 * Returns 1 - 4, as found in the USER CSR[6:7] bits.
25 */
26extern unsigned int get_pci_slot(void);
27
wdenk0aeb8532004-10-10 21:21:55 +000028/*
29 * Returns PCI DUAL as found in CM_PCI[3].
30 */
31extern unsigned int get_pci_dual(void);
32
wdenk0aeb8532004-10-10 21:21:55 +000033#endif /* __CADMUS_H_ */