Commit graph

19 commits

Author SHA1 Message Date
Andrei-Liviu Simion
b926ec9238 tmrctr: Added AXI clock frequency to config.
Expose the AXI bus clock frequency to the higher-level.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:09:07 +05:30
Andrei-Liviu Simion
eb17e0e830 tmrctr: Protect against driver inclusion without core.
A driver may be included even when there is no associated core
present. (See the DEPENDS option in data/*.mdd).

If another driver includes this TmrCtr driver, despite no
associated timer counter core existing, then xtmrctr.tcl won't be
invoked by SDK and the xtmrctr_g.c will not be generated.
If this file is not generated, the BSP will include the default
xtmrctr_g.c which was previously assuming that there is at least
one instance of the core in the system.

Also, the XPAR_XTMRCTR_NUM_INSTANCES wasn't being defined in this
case.

Protection against such a scenario is required.
Some subsystem drivers will include all subcore drivers,
regardless whether they are a part of the system or not.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:08:56 +05:30
Andrei-Liviu Simion
772862ce87 tmrctr: Updated version to 4.0.
Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:08:01 +05:30
Andrei-Liviu Simion
58cb1f1c3c tmrctr: Moved configuration look up function to sinit file.
For consistency with common driver style.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:07:53 +05:30
Andrei-Liviu Simion
ce787a5831 tmrctr: Added a default stub for callbacks.
To prevent unexpected behavior resulting from jumping to a NULL
address.

Previously, if the user didn't define a callback before the
occurence of an interrupt, the driver's interrupt handler would have
invoked a function pointer to NULL.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:07:43 +05:30
Andrei-Liviu Simion
573bc5b06b tmrctr: Updated initialization API.
Added configuration initialization and hardware initialization API
functions.
The XTmrCtr driver is now consistent with other drivers.

The previous initialization structure disallowed using a different
base address from what was found in the xparameters and the
configuration table of the core.
The XTmrCtr_Initialize function was overriding the effective base
address internal to the core - it still as to keep the API
functionality intact for backward-compatibility.
Internally, the function is calling the new APIs.

This poses an issue if the memory addresses have been translated
differently from the physical base address.
Also, such as is for subsystem drivers, the base address of one
of the subsystem's subcores will appear as a relative offset to
the base address of the subsystem.

This issue is addressed by providing the higher level with control
of which base address will be used by the driver.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Acked-by: Shadul Shaikh <shaduls@xilinx.com>
2015-10-11 12:07:31 +05:30
Nava kishore Manne
e35699808d Update Tcl files to support MultiBd and Packaged Bd Designs
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Acked-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
2015-07-31 16:55:01 +05:30
Nava kishore Manne
607a6324f3 Drivers: Retain @details only in the primary header file.
Removed all other instances.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-07-13 18:30:19 +05:30
Nava kishore Manne
146cd64c83 Doxygen changes for drivers 2015-06-12 12:50:09 +05:30
Nava kishore Manne
0c9ca599cf Drivers:standalone drivers license changes.
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
2015-05-13 17:05:11 +05:30
Kishore Kumar Korathaluri
0050802087 tmrctr : added hsi namespace to xdefine procs.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2015-02-04 15:57:55 +05:30
Kishore Kumar Korathaluri
41f577b865 tmrctr : added common namespace to all common tcl commands.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2015-01-22 11:52:48 +05:30
Kishore Kumar Korathaluri
6ab51722bd tmrctr : added namespace for all HSI TCL commands.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2015-01-08 16:15:00 +05:30
Kishore Kumar Korathaluri
0e43d545e9 tmrctr : Modified namespace from HSM to HSI.
Signed-off-by: Kishore Kumar Korathaluri <kkorath@xilinx.com>
2014-12-23 16:09:30 +05:30
Suneel Garapati
0ae197d5e4 all: make source code non-executable
Changes -
find -name "*.h" -exec chmod a-x '{}' ';'
find -name "*.c" -exec chmod a-x '{}' ';'
find -name "*.S" -exec chmod a-x '{}' ';'
find -name "*.ld" -exec chmod a-x '{}' ';'
find -name Makefile -exec chmod a-x '{}' ';'

Signed-off-by: Suneel Garapati <suneel.garapati@xilinx.com>
2014-12-17 15:13:03 +05:30
Kishore Kumar Korathaluri
fbb6edaf03 Renaming of common TCL procs of HSM
CR: 767582

Wall Data:
  Originally submitted from RDI_kkorath_new
  Build Type: full
  Test Types: pre-commits, gui pre-commits
[git-p4: depot-paths = "//Rodin/HEAD/data/embeddedsw/": change = 926519]
2014-06-03 17:15:22 +05:30
Kedareswara rao Appana
3b7e442200 drivers: Update copyright for drivers.
This patch updates the copy right information for the
following drivers.
enhance
generic
tmrctr
tpg
wdttb

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
2014-05-28 11:36:36 +05:30
Jagannadha Sutradharudu Teki
4724b51b94 embeddedsw: dos2unix conversion
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
2014-05-27 21:49:50 +05:30
git perforce import user
a539aa2c1a Initial import of //Rodin/HEAD/data/embeddedsw/ from the state at revision #head
[git-p4: depot-paths = "//Rodin/HEAD/data/embeddedsw/": change = 884492]
2014-04-09 17:06:57 +05:30