summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/include
diff options
context:
space:
mode:
authorSuresh Mangipudi <smangipudi@nvidia.com>2010-02-03 18:28:22 +0530
committerSuresh Mangipudi <smangipudi@nvidia.com>2010-02-03 18:59:35 +0530
commitdc62374e824785bffc7d611be06bc262f41944e5 (patch)
tree4d3c1b4f9b89bd059b181459d0b4337e0e2dc4eb /arch/arm/mach-tegra/include
parentbf55431904dc111a2ad17b7196abd8461de49d42 (diff)
tegra: OWR changes for readbyte, writebyte and Presence Pulse
Added support for doing readbyte, writebyte and reset Presence pulse added new enum for supporting these operations. By default made the ByteMode to FALSE Addresses Bug 509729 Change-Id: Ib9bdc983eadeda97592213dec7480ad4117dbcf6
Diffstat (limited to 'arch/arm/mach-tegra/include')
-rwxr-xr-x[-rw-r--r--]arch/arm/mach-tegra/include/nvrm_owr.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/arch/arm/mach-tegra/include/nvrm_owr.h b/arch/arm/mach-tegra/include/nvrm_owr.h
index 65b96ff8f946..c8af6f79c7a7 100644..100755
--- a/arch/arm/mach-tegra/include/nvrm_owr.h
+++ b/arch/arm/mach-tegra/include/nvrm_owr.h
@@ -49,7 +49,7 @@ extern "C"
/**
* NvRmOwrHandle is an opaque handle for the RM OWR driver.
*/
-
+
typedef struct NvRmOwrRec *NvRmOwrHandle;
/**
@@ -68,12 +68,12 @@ typedef struct NvRmOwrRec *NvRmOwrHandle;
* the memory.
*/
- NvError NvRmOwrOpen(
+ NvError NvRmOwrOpen(
NvRmDeviceHandle hDevice,
NvU32 instance,
NvRmOwrHandle * hOwr );
-/**
+/**
* @brief Closes the OWR driver. Disables the clock and invalidates the OWR handle.
* This API never fails.
*
@@ -81,7 +81,7 @@ typedef struct NvRmOwrRec *NvRmOwrHandle;
* nothing.
*/
- void NvRmOwrClose(
+ void NvRmOwrClose(
NvRmOwrHandle hOwr );
/**
@@ -99,6 +99,15 @@ typedef enum
/// OWR memory write transaction.
NvRmOwr_MemWrite,
+
+ /// OWR memory readbyte transaction.
+ NvRmOwr_ReadByte,
+
+ /// OWR memory writebyte transaction.
+ NvRmOwr_WriteByte,
+
+ /// OWR memory Check Presence
+ NvRmOwr_CheckPresence,
NvRmOwrTransactionFlags_Num,
NvRmOwrTransactionFlags_Force32 = 0x7FFFFFFF
} NvRmOwrTransactionFlags;
@@ -123,9 +132,9 @@ typedef struct NvRmOwrTransactionInfoRec
NvU32 Address;
} NvRmOwrTransactionInfo;
-/**
+/**
* @brief Does multiple OWR transactions. Each transaction can be a read or write.
- *
+ *
* @param hOwr Handle to the OWR channel.
* @param OwrPinMap for OWR controllers which are being multiplexed across
* multiple pin mux configurations, this specifies which pin mux configuration
@@ -133,7 +142,7 @@ typedef struct NvRmOwrTransactionInfoRec
* specifies a non-multiplexed configuration for the controller.
* @param Data Pointer to the buffer for all the required read, write transactions.
* @param DataLength Length of the data buffer.
- * @param Transcations Pointer to the NvRmOwrTransactionInfo structure.
+ * @param Transcations Pointer to the NvRmOwrTransactionInfo structure.
* See @NvRmOwrTransactionInfo
* @param NumOfTransactions Number of transcations
*
@@ -146,7 +155,7 @@ typedef struct NvRmOwrTransactionInfoRec
* OWR transaction.
*/
- NvError NvRmOwrTransaction(
+ NvError NvRmOwrTransaction(
NvRmOwrHandle hOwr,
NvU32 OwrPinMap,
NvU8 * Data,