RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / cfe / cfe / arch / arm / board / bcm947xx / include / bsp_priv.h
blob2a0b85363b91c3dfd872984146c95cf45f718397
1 /*
2 * CFE Per architecture specific implementations for arm
4 * Copyright (C) 2012, Broadcom Corporation. All Rights Reserved.
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
13 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
15 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 * $Id:$
21 #ifndef _LANGUAGE_ASSEMBLY
23 /* Global SB handle */
24 extern si_t *bcm947xx_sih;
25 #define sih bcm947xx_sih
27 /* BSP UI initialization */
28 extern int ui_init_bcm947xxcmds(void);
31 extern void board_pinmux_init(si_t *sih);
32 extern void board_clock_init(si_t *sih);
33 extern void mach_device_init(si_t *sih);
34 extern void board_power_init(si_t *sih);
35 extern void board_cpu_init(si_t *sih);
36 extern void flash_memory_size_config(si_t *sih, void *probe);
37 extern void board_cfe_cpu_speed_upd(si_t *sih);
39 extern uint32 si_memc_get_ncdl(si_t *sih);
41 #if CFG_ET
42 extern void et_addcmd(void);
43 #endif
45 #if CFG_WLU
46 extern void wl_addcmd(void);
47 #endif
49 #if defined(BCMDBG)
50 #define TRACE_LOC (0x18000064) /* gpioout reg in chipc */
51 #define BCMDBG_TRACE(val) do {*((uint32_t *)TRACE_LOC) = val;} while (0)
52 #else
53 #define ASSERT(exp) do {} while (0)
54 #define BCMDBG_TRACE(val) do {} while (0)
55 #endif
57 #endif /* BCMDBG */