Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hdq1w.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <plat/omap_hwmod.h>
#include <plat/omap_device.h>
#include "hdq1w.h"
#include "common.h"

Go to the source code of this file.




int omap_hdq1w_reset (struct omap_hwmod *oh)
 arch_initcall (omap_init_hdq)

Macro Definition Documentation


Definition at line 37 of file hdq1w.c.

Function Documentation

arch_initcall ( omap_init_hdq  )
int omap_hdq1w_reset ( struct omap_hwmod oh)

omap_hdq1w_reset - reset the OMAP HDQ1W module : struct omap_hwmod *

OCP soft reset the HDQ1W IP block. Section "HDQ1W/1-Wire Software Reset" of the OMAP34xx Technical Reference Manual Revision ZR (SWPU223R) does not include the rather important fact that, for the reset to succeed, the HDQ1W module's internal clock gate must be programmed to allow the clock to propagate to the rest of the module. In this sense, it's rather similar to the I2C custom reset function. Returns 0.

Definition at line 51 of file hdq1w.c.