mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
36d04f52ff
This functions can be reused by other MSCC SoCs therefore, make them more generic and move them in separate files. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
20 lines
576 B
C
20 lines
576 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2018 Microsemi Corporation
|
|
*/
|
|
|
|
#include <common.h>
|
|
|
|
enum mscc_regs_qs {
|
|
MSCC_QS_XTR_RD,
|
|
MSCC_QS_XTR_FLUSH,
|
|
MSCC_QS_XTR_DATA_PRESENT,
|
|
MSCC_QS_INJ_WR,
|
|
MSCC_QS_INJ_CTRL,
|
|
};
|
|
|
|
int mscc_send(void __iomem *regs, const unsigned long *mscc_qs_offset,
|
|
u32 *ifh, size_t ifh_len, u32 *buff, size_t buff_len);
|
|
int mscc_recv(void __iomem *regs, const unsigned long *mscc_qs_offset,
|
|
u32 *rxbuf, size_t ifh_len, bool byte_swap);
|
|
void mscc_flush(void __iomem *regs, const unsigned long *mscc_qs_offset);
|