xref: /kernel/linux/linux-5.10/arch/arm/include/asm/hardware/memc.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/arm/include/asm/hardware/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci *  arch/arm/include/asm/hardware/memc.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci *  Copyright (C) Russell King.
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci#define VDMA_ALIGNMENT	PAGE_SIZE
88c2ecf20Sopenharmony_ci#define VDMA_XFERSIZE	16
98c2ecf20Sopenharmony_ci#define VDMA_INIT	0
108c2ecf20Sopenharmony_ci#define VDMA_START	1
118c2ecf20Sopenharmony_ci#define VDMA_END	2
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__
148c2ecf20Sopenharmony_ciextern void memc_write(unsigned int reg, unsigned long val);
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci#define video_set_dma(start,end,offset)				\
178c2ecf20Sopenharmony_cido {								\
188c2ecf20Sopenharmony_ci	memc_write (VDMA_START, (start >> 2));			\
198c2ecf20Sopenharmony_ci	memc_write (VDMA_END, (end - VDMA_XFERSIZE) >> 2);	\
208c2ecf20Sopenharmony_ci	memc_write (VDMA_INIT, (offset >> 2));			\
218c2ecf20Sopenharmony_ci} while (0)
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#endif
24

Indexes created Thu Nov 07 10:32:03 CST 2024