mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-13 06:42:56 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* (c) Copyright 2010-2014 Xilinx, Inc. All rights reserved.
|
|
* (c) Copyright 2016 Topic Embedded Products.
|
|
*/
|
|
|
|
#ifndef _ASM_ARCH_PS7_INIT_GPL_H
|
|
#define _ASM_ARCH_PS7_INIT_GPL_H
|
|
|
|
/* Opcode exit is 0 all the time */
|
|
#define OPCODE_EXIT 0U
|
|
#define OPCODE_MASKWRITE 0U
|
|
#define OPCODE_MASKPOLL 1U
|
|
#define OPCODE_MASKDELAY 2U
|
|
#define OPCODE_WRITE 3U
|
|
#define OPCODE_ADDRESS_MASK (~3U)
|
|
|
|
/* Sentinel */
|
|
#define EMIT_EXIT() OPCODE_EXIT
|
|
/* Opcode is in lower 2 bits of address, address is always 4-byte aligned */
|
|
#define EMIT_MASKWRITE(addr, mask, val) OPCODE_MASKWRITE | addr, mask, val
|
|
#define EMIT_MASKPOLL(addr, mask) OPCODE_MASKPOLL | addr, mask
|
|
#define EMIT_MASKDELAY(addr, mask) OPCODE_MASKDELAY | addr, mask
|
|
#define EMIT_WRITE(addr, val) OPCODE_WRITE | addr, val
|
|
|
|
/* Returns codes of ps7_init* */
|
|
#define PS7_INIT_SUCCESS (0)
|
|
#define PS7_INIT_CORRUPT (1)
|
|
#define PS7_INIT_TIMEOUT (2)
|
|
#define PS7_POLL_FAILED_DDR_INIT (3)
|
|
#define PS7_POLL_FAILED_DMA (4)
|
|
#define PS7_POLL_FAILED_PLL (5)
|
|
|
|
#define PCW_SILICON_VERSION_1 0
|
|
#define PCW_SILICON_VERSION_2 1
|
|
#define PCW_SILICON_VERSION_3 2
|
|
|
|
/* Called by spl.c */
|
|
int ps7_init(void);
|
|
int ps7_post_config(void);
|
|
|
|
/* Defined in ps7_init_common.c */
|
|
int ps7_config(unsigned long *ps7_config_init);
|
|
|
|
unsigned long ps7GetSiliconVersion(void);
|
|
|
|
#endif /* _ASM_ARCH_PS7_INIT_GPL_H */
|