]>
Commit | Line | Data |
---|---|---|
310ae55e | 1 | /* |
effea9d1 | 2 | * SoC-specific lowlevel code for DA850 |
310ae55e HS |
3 | * |
4 | * Copyright (C) 2011 | |
5 | * Heiko Schocher, DENX Software Engineering, hs@denx.de. | |
6 | * | |
1a459660 | 7 | * SPDX-License-Identifier: GPL-2.0+ |
310ae55e | 8 | */ |
effea9d1 CR |
9 | #ifndef __DA850_LOWLEVEL_H |
10 | #define __DA850_LOWLEVEL_H | |
310ae55e | 11 | |
6b873dca SG |
12 | #include <asm/arch/pinmux_defs.h> |
13 | ||
14 | /* pinmux_resource[] vector is defined in the board specific file */ | |
15 | extern const struct pinmux_resource pinmuxes[]; | |
16 | extern const int pinmuxes_size; | |
17 | ||
18 | extern const struct lpsc_resource lpsc[]; | |
19 | extern const int lpsc_size; | |
20 | ||
310ae55e | 21 | /* NOR Boot Configuration Word Field Descriptions */ |
effea9d1 CR |
22 | #define DA850_NORBOOT_COPY_XK(X) ((X - 1) << 8) |
23 | #define DA850_NORBOOT_METHOD_DIRECT (1 << 4) | |
24 | #define DA850_NORBOOT_16BIT (1 << 0) | |
310ae55e HS |
25 | |
26 | #define dv_maskbits(addr, val) \ | |
27 | writel((readl(addr) & val), addr) | |
28 | ||
effea9d1 CR |
29 | void da850_waitloop(unsigned long loopcnt); |
30 | int da850_pll_init(struct davinci_pllc_regs *reg, unsigned long pllmult); | |
31 | void da850_lpc_transition(unsigned char pscnum, unsigned char module, | |
310ae55e | 32 | unsigned char domain, unsigned char state); |
f3c149d6 | 33 | int da850_ddr_setup(void); |
effea9d1 CR |
34 | void da850_psc_init(void); |
35 | void da850_pinmux_ctl(unsigned long offset, unsigned long mask, | |
310ae55e HS |
36 | unsigned long value); |
37 | ||
effea9d1 | 38 | #endif /* #ifndef __DA850_LOWLEVEL_H */ |