2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2011-09-14 19:59:38 +00:00
|
|
|
/*
|
2011-11-08 13:55:07 +00:00
|
|
|
* SoC-specific lowlevel code for DA850
|
2011-09-14 19:59:38 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2011
|
|
|
|
* Heiko Schocher, DENX Software Engineering, hs@denx.de.
|
|
|
|
*/
|
2011-11-08 13:55:07 +00:00
|
|
|
#ifndef __DA850_LOWLEVEL_H
|
|
|
|
#define __DA850_LOWLEVEL_H
|
2011-09-14 19:59:38 +00:00
|
|
|
|
2012-02-02 00:44:41 +00:00
|
|
|
#include <asm/arch/pinmux_defs.h>
|
|
|
|
|
|
|
|
/* pinmux_resource[] vector is defined in the board specific file */
|
|
|
|
extern const struct pinmux_resource pinmuxes[];
|
|
|
|
extern const int pinmuxes_size;
|
|
|
|
|
|
|
|
extern const struct lpsc_resource lpsc[];
|
|
|
|
extern const int lpsc_size;
|
|
|
|
|
2011-09-14 19:59:38 +00:00
|
|
|
/* NOR Boot Configuration Word Field Descriptions */
|
2011-11-08 13:55:07 +00:00
|
|
|
#define DA850_NORBOOT_COPY_XK(X) ((X - 1) << 8)
|
|
|
|
#define DA850_NORBOOT_METHOD_DIRECT (1 << 4)
|
|
|
|
#define DA850_NORBOOT_16BIT (1 << 0)
|
2011-09-14 19:59:38 +00:00
|
|
|
|
|
|
|
#define dv_maskbits(addr, val) \
|
|
|
|
writel((readl(addr) & val), addr)
|
|
|
|
|
2011-11-08 13:55:07 +00:00
|
|
|
void da850_lpc_transition(unsigned char pscnum, unsigned char module,
|
2011-09-14 19:59:38 +00:00
|
|
|
unsigned char domain, unsigned char state);
|
2011-11-08 13:55:07 +00:00
|
|
|
void da850_psc_init(void);
|
|
|
|
void da850_pinmux_ctl(unsigned long offset, unsigned long mask,
|
2011-09-14 19:59:38 +00:00
|
|
|
unsigned long value);
|
|
|
|
|
2011-11-08 13:55:07 +00:00
|
|
|
#endif /* #ifndef __DA850_LOWLEVEL_H */
|