18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2017 NVIDIA Corporation. 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMASTART 0x0000 78c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMASTART_HI 0x0004 88c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMAPUT 0x0008 98c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMAPUT_HI 0x000c 108c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMAGET 0x0010 118c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMAGET_HI 0x0014 128c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMAEND 0x0018 138c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMAEND_HI 0x001c 148c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMACTRL 0x0020 158c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMACTRL_DMASTOP BIT(0) 168c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMACTRL_DMAGETRST BIT(1) 178c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_DMACTRL_DMAINITGET BIT(2) 188c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_CMDFIFO_STAT 0x0024 198c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_CMDFIFO_STAT_EMPTY BIT(13) 208c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_CMDFIFO_RDATA 0x0028 218c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_CMDP_OFFSET 0x0030 228c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_CMDP_CLASS 0x0034 238c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_CHANNELSTAT 0x0038 248c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_CMDPROC_STOP 0x0048 258c2ecf20Sopenharmony_ci#define HOST1X_CHANNEL_TEARDOWN 0x004c 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci#define HOST1X_SYNC_SYNCPT_CPU_INCR(x) (0x6400 + 4*(x)) 288c2ecf20Sopenharmony_ci#define HOST1X_SYNC_SYNCPT_THRESH_CPU0_INT_STATUS(x) (0x6464 + 4*(x)) 298c2ecf20Sopenharmony_ci#define HOST1X_SYNC_SYNCPT_THRESH_INT_ENABLE_CPU0(x) (0x652c + 4*(x)) 308c2ecf20Sopenharmony_ci#define HOST1X_SYNC_SYNCPT_THRESH_INT_DISABLE(x) (0x6590 + 4*(x)) 318c2ecf20Sopenharmony_ci#define HOST1X_SYNC_SYNCPT_BASE(x) (0x8000 + 4*(x)) 328c2ecf20Sopenharmony_ci#define HOST1X_SYNC_SYNCPT(x) (0x8080 + 4*(x)) 338c2ecf20Sopenharmony_ci#define HOST1X_SYNC_SYNCPT_INT_THRESH(x) (0x8a00 + 4*(x)) 348c2ecf20Sopenharmony_ci#define HOST1X_SYNC_SYNCPT_CH_APP(x) (0x9384 + 4*(x)) 358c2ecf20Sopenharmony_ci#define HOST1X_SYNC_SYNCPT_CH_APP_CH(v) (((v) & 0x3f) << 8) 36