hdq1w.h 1.1 KB

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