1a0b30ca5STony Lindgren /* 2a0b30ca5STony Lindgren * Shared macros and function prototypes for the HDQ1W/1-wire IP block 3a0b30ca5STony Lindgren * 4a0b30ca5STony Lindgren * Copyright (C) 2012 Texas Instruments, Inc. 5a0b30ca5STony Lindgren * Paul Walmsley 6a0b30ca5STony Lindgren * 7a0b30ca5STony Lindgren * This program is free software; you can redistribute it and/or 8a0b30ca5STony Lindgren * modify it under the terms of the GNU General Public License 9a0b30ca5STony Lindgren * version 2 as published by the Free Software Foundation. 10a0b30ca5STony Lindgren * 11a0b30ca5STony Lindgren * This program is distributed in the hope that it will be useful, but 12a0b30ca5STony Lindgren * WITHOUT ANY WARRANTY; without even the implied warranty of 13a0b30ca5STony Lindgren * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14a0b30ca5STony Lindgren * General Public License for more details. 15a0b30ca5STony Lindgren * 16a0b30ca5STony Lindgren * You should have received a copy of the GNU General Public License 17a0b30ca5STony Lindgren * along with this program; if not, write to the Free Software 18a0b30ca5STony Lindgren * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 19a0b30ca5STony Lindgren * 02110-1301 USA 20a0b30ca5STony Lindgren */ 21a0b30ca5STony Lindgren #ifndef ARCH_ARM_MACH_OMAP2_HDQ1W_H 22a0b30ca5STony Lindgren #define ARCH_ARM_MACH_OMAP2_HDQ1W_H 23a0b30ca5STony Lindgren 242a296c8fSTony Lindgren #include "omap_hwmod.h" 25a0b30ca5STony Lindgren 26a0b30ca5STony Lindgren /* 27a0b30ca5STony Lindgren * XXX A future cleanup patch should modify 28a0b30ca5STony Lindgren * drivers/w1/masters/omap_hdq.c to use these macros 29a0b30ca5STony Lindgren */ 30a0b30ca5STony Lindgren #define HDQ_CTRL_STATUS_OFFSET 0x0c 31a0b30ca5STony Lindgren #define HDQ_CTRL_STATUS_CLOCKENABLE_SHIFT 5 32a0b30ca5STony Lindgren 33a0b30ca5STony Lindgren 34a0b30ca5STony Lindgren extern int omap_hdq1w_reset(struct omap_hwmod *oh); 35a0b30ca5STony Lindgren 36a0b30ca5STony Lindgren #endif 37