2019-05-30 07:57:50 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2012-05-09 01:34:27 +08:00
|
|
|
/*
|
|
|
|
* Shared macros and function prototypes for the HDQ1W/1-wire IP block
|
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Texas Instruments, Inc.
|
|
|
|
* Paul Walmsley
|
|
|
|
*/
|
|
|
|
#ifndef ARCH_ARM_MACH_OMAP2_HDQ1W_H
|
|
|
|
#define ARCH_ARM_MACH_OMAP2_HDQ1W_H
|
|
|
|
|
2012-10-03 08:41:35 +08:00
|
|
|
#include "omap_hwmod.h"
|
2012-05-09 01:34:27 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* XXX A future cleanup patch should modify
|
|
|
|
* drivers/w1/masters/omap_hdq.c to use these macros
|
|
|
|
*/
|
|
|
|
#define HDQ_CTRL_STATUS_OFFSET 0x0c
|
|
|
|
#define HDQ_CTRL_STATUS_CLOCKENABLE_SHIFT 5
|
|
|
|
|
|
|
|
|
|
|
|
extern int omap_hdq1w_reset(struct omap_hwmod *oh);
|
|
|
|
|
|
|
|
#endif
|