blob: 2e2f1e88af64b1023df928ec02ee145c8ef14a89 [file] [log] [blame]
Thomas Gleixner2b27bdc2019-05-29 16:57:50 -07001/* SPDX-License-Identifier: GPL-2.0-only */
Paul Walmsley9e1b7492012-05-08 11:34:27 -06002/*
3 * Shared macros and function prototypes for the HDQ1W/1-wire IP block
4 *
5 * Copyright (C) 2012 Texas Instruments, Inc.
6 * Paul Walmsley
Paul Walmsley9e1b7492012-05-08 11:34:27 -06007 */
8#ifndef ARCH_ARM_MACH_OMAP2_HDQ1W_H
9#define ARCH_ARM_MACH_OMAP2_HDQ1W_H
10
Tony Lindgren2a296c82012-10-02 17:41:35 -070011#include "omap_hwmod.h"
Paul Walmsley9e1b7492012-05-08 11:34:27 -060012
13/*
14 * XXX A future cleanup patch should modify
15 * drivers/w1/masters/omap_hdq.c to use these macros
16 */
17#define HDQ_CTRL_STATUS_OFFSET 0x0c
18#define HDQ_CTRL_STATUS_CLOCKENABLE_SHIFT 5
19
20
21extern int omap_hdq1w_reset(struct omap_hwmod *oh);
22
23#endif