slimbus.h (d3062a21093093bc77a8ebf1b555e380993993e7) slimbus.h (917809e2280bb83994be8b642373fd941d40c407)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) 2011-2017, The Linux Foundation
4 */
5
6#ifndef _DRIVERS_SLIMBUS_H
7#define _DRIVERS_SLIMBUS_H
8#include <linux/module.h>
9#include <linux/device.h>
10#include <linux/mutex.h>
11#include <linux/completion.h>
12#include <linux/slimbus.h>
13
14/* Standard values per SLIMbus spec needed by controllers and devices */
15#define SLIM_CL_PER_SUPERFRAME 6144
16#define SLIM_CL_PER_SUPERFRAME_DIV8 (SLIM_CL_PER_SUPERFRAME >> 3)
17
18/* SLIMbus message types. Related to interpretation of message code. */
19#define SLIM_MSG_MT_CORE 0x0
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (c) 2011-2017, The Linux Foundation
4 */
5
6#ifndef _DRIVERS_SLIMBUS_H
7#define _DRIVERS_SLIMBUS_H
8#include <linux/module.h>
9#include <linux/device.h>
10#include <linux/mutex.h>
11#include <linux/completion.h>
12#include <linux/slimbus.h>
13
14/* Standard values per SLIMbus spec needed by controllers and devices */
15#define SLIM_CL_PER_SUPERFRAME 6144
16#define SLIM_CL_PER_SUPERFRAME_DIV8 (SLIM_CL_PER_SUPERFRAME >> 3)
17
18/* SLIMbus message types. Related to interpretation of message code. */
19#define SLIM_MSG_MT_CORE 0x0
20#define SLIM_MSG_MT_DEST_REFERRED_USER 0x2
21#define SLIM_MSG_MT_SRC_REFERRED_USER 0x6
20
21/*
22 * SLIM Broadcast header format
23 * BYTE 0: MT[7:5] RL[4:0]
24 * BYTE 1: RSVD[7] MC[6:0]
25 * BYTE 2: RSVD[7:6] DT[5:4] PI[3:0]
26 */
27#define SLIM_MSG_MT_MASK GENMASK(2, 0)

--- 15 unchanged lines hidden (view full) ---

43#define SLIM_MSG_MC_ASSIGN_LOGICAL_ADDRESS 0x2
44#define SLIM_MSG_MC_REPORT_ABSENT 0xF
45
46/* Clock pause Reconfiguration messages */
47#define SLIM_MSG_MC_BEGIN_RECONFIGURATION 0x40
48#define SLIM_MSG_MC_NEXT_PAUSE_CLOCK 0x4A
49#define SLIM_MSG_MC_RECONFIGURE_NOW 0x5F
50
22
23/*
24 * SLIM Broadcast header format
25 * BYTE 0: MT[7:5] RL[4:0]
26 * BYTE 1: RSVD[7] MC[6:0]
27 * BYTE 2: RSVD[7:6] DT[5:4] PI[3:0]
28 */
29#define SLIM_MSG_MT_MASK GENMASK(2, 0)

--- 15 unchanged lines hidden (view full) ---

45#define SLIM_MSG_MC_ASSIGN_LOGICAL_ADDRESS 0x2
46#define SLIM_MSG_MC_REPORT_ABSENT 0xF
47
48/* Clock pause Reconfiguration messages */
49#define SLIM_MSG_MC_BEGIN_RECONFIGURATION 0x40
50#define SLIM_MSG_MC_NEXT_PAUSE_CLOCK 0x4A
51#define SLIM_MSG_MC_RECONFIGURE_NOW 0x5F
52
53/*
54 * Clock pause flag to indicate that the reconfig message
55 * corresponds to clock pause sequence
56 */
57#define SLIM_MSG_CLK_PAUSE_SEQ_FLG (1U << 8)
58
51/* Clock pause values per SLIMbus spec */
52#define SLIM_CLK_FAST 0
53#define SLIM_CLK_CONST_PHASE 1
54#define SLIM_CLK_UNSPECIFIED 2
55
56/* Destination type Values */
57#define SLIM_MSG_DEST_LOGICALADDR 0
58#define SLIM_MSG_DEST_ENUMADDR 1

--- 205 unchanged lines hidden ---
59/* Clock pause values per SLIMbus spec */
60#define SLIM_CLK_FAST 0
61#define SLIM_CLK_CONST_PHASE 1
62#define SLIM_CLK_UNSPECIFIED 2
63
64/* Destination type Values */
65#define SLIM_MSG_DEST_LOGICALADDR 0
66#define SLIM_MSG_DEST_ENUMADDR 1

--- 205 unchanged lines hidden ---