David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * MTD primitives for XIP support. Architecture specific functions |
| 4 | * |
| 5 | * Do not include this file directly. It's included from linux/mtd/xip.h |
| 6 | * |
| 7 | * Author: Nicolas Pitre |
| 8 | * Created: Nov 2, 2004 |
| 9 | * Copyright: (C) 2004 MontaVista Software, Inc. |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef __ARM_MTD_XIP_H__ |
| 13 | #define __ARM_MTD_XIP_H__ |
| 14 | |
| 15 | #include <mach/mtd-xip.h> |
| 16 | |
| 17 | /* fill instruction prefetch */ |
| 18 | #define xip_iprefetch() do { asm volatile (".rep 8; nop; .endr"); } while (0) |
| 19 | |
| 20 | #endif /* __ARM_MTD_XIP_H__ */ |