D | hisi504_nand.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright © 2012-2014 HiSilicon Technologies Co., Ltd. 21 #include <linux/dma-mapping.h> 132 unsigned int command; member 144 static inline unsigned int hinfc_read(struct hinfc_host *host, unsigned int reg) in hinfc_read() argument 146 return readl(host->iobase + reg); in hinfc_read() 149 static inline void hinfc_write(struct hinfc_host *host, unsigned int value, in hinfc_write() argument 152 writel(value, host->iobase + reg); in hinfc_write() 155 static void wait_controller_finished(struct hinfc_host *host) in wait_controller_finished() argument 161 val = hinfc_read(host, HINFC504_STATUS); in wait_controller_finished() [all …]
|