| // SPDX-License-Identifier: GPL-2.0+ |
| * Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> |
| * (C) Copyright 2007-2012 |
| * Nobobuhiro Iwamatsu <iwamatsu@nigauri.org> |
| * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| #include <asm/processor.h> |
| #include <linux/bitops.h> |
| #if defined(CONFIG_CPU_SH4) || defined(CONFIG_ARCH_RMOBILE) |
| #endif /* CONFIG_CPU_SH4 */ |
| writew(readw(TMU_BASE + TCR0) & ~TCR_TPSC, TMU_BASE + TCR0); |
| writeb(readb(TMU_BASE + TSTR) & ~TSTR_STR0, TMU_BASE + TSTR); |
| writeb(readb(TMU_BASE + TSTR) | TSTR_STR0, TMU_BASE + TSTR); |