Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed example to use driver parameter consistently #39

Open
wants to merge 1,213 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
1213 commits
Select commit Hold shift + click to select a range
db87e85
v_sditx: driver update to support ST352 generation APIs
Sep 7, 2017
887639c
v_sditxss: Add support for interrupt enable/disable
Sep 7, 2017
126cd6b
v_sditx: Remove default interrupt enable
Sep 7, 2017
234a877
v_sdirxss: Add support for interrupt enable/disable
Sep 7, 2017
1b3ad11
v_sdirx: Remove default interrupt enable
Sep 7, 2017
642df00
v_sditx: Add support for Overflow and Underflow callbacks
Sep 7, 2017
c52dc28
v_sditxss: Add support for Overflow and Underflow callbacks
Sep 7, 2017
679ac25
v_sdirx: Add support for Overflow and Underflow
Sep 7, 2017
caa91e3
v_sdirxss: Add support for Overflow and Underflow
Sep 7, 2017
c70a64c
DPTXSS: Add userpixelwidth config support
Sep 7, 2017
16a2305
Updated addtogroup to appropriate files
Sep 7, 2017
e6cb5f1
PMUFW: SRST support for FPD WDT error
Sep 7, 2017
ef90461
v_sdirxss: Add SDI example application
Sep 7, 2017
c32d5d4
doc: add the sdirxss appliation support for example design
Sep 7, 2017
5883b0a
DP Appllication Example Design update 090717
Sep 8, 2017
47a73a4
dpdma: Done interrupt and descriptor chaining update
Sep 8, 2017
b5caae6
dpdma: Prevent the current descriptor chain from being updated.
Sep 8, 2017
fcb32a4
DP/DPTXSS: Moved default HPD interrupt sequence to driver
Sep 8, 2017
f464d8c
PMUFW: Powerup slave islands during PS/System restart
rajanv-xilinx Sep 7, 2017
6c8c59d
ZynqMP_FSBL: Added PPK revoke checks
Sep 8, 2017
bd3762c
ChangeLog: ZynqMP FSBL: Added PPK revoke checks
Sep 8, 2017
f035482
PMUFW: Update DDR driver for LPDDR4
Sep 8, 2017
a153dda
DPRXSS Added interrupt handler for video and power
Sep 8, 2017
6b57647
Updated addtogroup to appropriate files
Sep 8, 2017
fb3c4c9
dptxss: special case to handle htotal>4095 at 1 PPC.
Sep 8, 2017
0333f9a
avbuf: updated to use latest video_common
Sep 8, 2017
12ac67f
dpdma: updated to use latest video_common
Sep 8, 2017
afe2923
dppsu: updated to use latest video_common
Sep 8, 2017
c3e8172
v_sditx: fix for redundant ISR register check in self test
Sep 8, 2017
dadfe48
v_sditxss: Removed the TESTAPP_GEN definition
Sep 8, 2017
eef013f
v_sditxss: Add support for peripheral tests
Sep 8, 2017
eb73a24
v_sdirx: Fix for redundant ISR register check in self test
Sep 8, 2017
21489a6
v_sdirxss: Removed the TESTAPP_GEN definition
Sep 8, 2017
50cd86c
v_sdirxss: Add support for peripheral tests
Sep 8, 2017
b309118
csi2txss: Fix for removing TESTAPP_GEN definition
Sep 8, 2017
edbd636
v_csc: Support for YUV 4:2:0
Sep 8, 2017
1edb514
vprocss: updates to csc-only topology
Sep 8, 2017
d583de4
v_frmbuf_wr: new memory formats
Sep 8, 2017
63b3db4
v_gamma_lut: clean up and add example
Sep 8, 2017
8fe9ebd
v_demosaic: clean up and add example
Sep 8, 2017
65df936
DPTXSS: Remove compilation warning for VtcAdjustBSTimingEnable/Disabl…
Sep 9, 2017
92d7b5b
lwip: Add workaround for RX hang in Zynq when using freertos
harini-katakam Sep 11, 2017
587938b
lwip141: Disable L1 prefetch for ARMv8
Sep 12, 2017
211c52f
sw_apps :zynqmp_fsbl: Clear GIC interrupts in FSBL in case of APU onl…
Sep 14, 2017
33ef370
DP Application Example Design update 091517
Sep 16, 2017
a18fc6c
mix: update baud rate in readme
Sep 15, 2017
744797a
frmbuf_rd: update baud rate, add AXIMM_ADDR_WIDTH
Sep 15, 2017
5e1c1d2
v_sditx: update the return type XV_SdiTx_SetStream to u32
Sep 15, 2017
1722bf9
v_sditx: Fix the ST352 payload calculation for interlaced modes
Sep 15, 2017
b2d6714
v_sditxss: Added APIs for SDI Tx subsystem that exist for Tx subcore
Sep 15, 2017
639889e
v_sdirx: fix for checkpatch.pl errors
Sep 15, 2017
607f902
v_sdirxss: Fix for checkpatch.pl errors
Sep 15, 2017
bd7200e
v_sditx: Fix for checkpatch.pl errors
Sep 15, 2017
57bdd0e
v_sditxss: Fix for checkpatch.pl errors
Sep 15, 2017
2025f42
DPTXSS: Resolve multiple verion issue
Sep 18, 2017
9686e7d
DP: Resolve multiple verion issue
Sep 18, 2017
cf53b5a
v_hdmitx: Updated the macro's comment
Sep 15, 2017
7e3d49d
xilsecure: Added APIs to support linux
Sep 18, 2017
0c4a992
PMUFW:pm: Added APIs to support xilsecure in linux
Sep 18, 2017
a2a695b
rfdc: Add Initial version of rfdc driver
May 17, 2017
b7b7a9b
rfdc: Correct CoarseMix frequency macro
May 18, 2017
0d193e3
rfdc: Correct set QMC Settings in 4GSPS mode
May 22, 2017
d9e9afd
rfdc: Correct Threshold settings in 4GSPS mode
May 23, 2017
5ab1b9c
rfdc: Add libmetal support
May 23, 2017
49d8b80
rfdc: Correct the base address used in interrupt API's
May 24, 2017
b47a375
rfdc: Correct Tile BaseAddress in ISR
May 24, 2017
0b7b2ed
rfdc: Remove ready assert check in ISR
May 24, 2017
0ed8c05
rfdc: Add support for user callback
May 25, 2017
9d1a570
rfdc: Add examples to test rfdc driver
May 25, 2017
e0ab1c4
rfdc: Add README file
saikrishnapotthuri May 30, 2017
acded15
rfdc: Fixed Coarse Mixer configuration settings
Aug 9, 2017
faed2cf
rfdc: Return Error for Slice Event on 4G ADC block
Aug 9, 2017
b3ff103
rfdc: Corrected Interrupt Contsant typos
Aug 9, 2017
dc2d3e7
rfdc: Modified Interrupt handler API
Aug 9, 2017
81294d0
rfdc: Modified the examples to support Linux and Baremetal
Aug 9, 2017
6d6d4d7
rfdc: Add support for SYSREF and PL event sources
Aug 16, 2017
ae73eeb
rfdc: Use double type for Mixer settings frequency
Aug 16, 2017
7804f9e
rfdc: ModifY read-write example to test SYSREF and PL
Aug 16, 2017
b94100e
rfdc: ADD API to enable and disable FIFO
Aug 18, 2017
f138f38
rfdc: Fixed doxygen warnings
Aug 21, 2017
eae5c5e
rfdc: Remove SetOutputCurrent API
Aug 22, 2017
4b5d22e
rfdc: Remove SetOutputCurrent test
Aug 22, 2017
0295b9f
rfdc: Add API to configure Nyquist zone
Aug 23, 2017
efff3a3
rfdc: Add test case to configure Nyquist zone
Aug 23, 2017
7815bbf
rfdc: Fixed Compilation warnings
Aug 23, 2017
e34fd8b
rfdc: Add comments for Stim/cap block writes
Aug 28, 2017
dcc163d
rfdc: Add additional info to Block Status
Aug 30, 2017
435aac6
rfdc: Fixed PhaseOffset reading for negative values
Aug 30, 2017
9820ed5
rfdc: Add support for BYPASS mode in coarse mixer
Aug 30, 2017
795be3d
rfdc: Updated read-write example
Aug 30, 2017
8d6d9d9
rfdc: Removed Tile reset Assert and Deassert
Aug 31, 2017
baa8ad7
rfdc: Add NyquistZone API prototypes
Aug 31, 2017
c907822
rfdc: Updated version information for doxygen
Aug 31, 2017
4d59204
rfdc: Add support for negative NCO frequency
Sep 7, 2017
5b3fadc
rfdc: Add Test case for Negative freq values
Sep 7, 2017
7658394
rfdc: Improve precision for NCO frequency
Sep 12, 2017
d161718
rfdc: Restrict NCO freq compare to 10bit
Sep 12, 2017
7fd5ac6
rfdc: Fixed Immediate Event source issue
Sep 18, 2017
fc32359
rfdc: Add support for Microblaze.
Sep 18, 2017
fadea51
rfdc: Add API to clear the interrupts
Sep 18, 2017
4aaad69
dptxss: modified xil_printf to xdbg_printf
Sep 18, 2017
015de4d
xilsecure: Removed authentication from u-boot
Sep 19, 2017
00078c5
lwip141: Disable L1 prefetch for AXI DMA in lwip adapter
Sep 20, 2017
03d5f1e
XilPM: Version change
Sep 20, 2017
78fe44d
Xilfpga: Remove Authenticated BitStream Loading support from xilfpga …
Sep 18, 2017
a9bcbeb
rfdc: Add __BAREMETAL__ Compiler flag option
Sep 21, 2017
6713e45
rfdc: Add support for Over Voltage and Range interrupts
Sep 21, 2017
de5442f
rfdc: Fixed compilation issues for Linux
Sep 22, 2017
4994ca7
rfdc: Add README file for examples
Sep 22, 2017
3929276
DP Application Example Design update 091917
Sep 22, 2017
bce0d27
rfdc: Fix Get_Tile/Block BaseAddress API issue
Sep 24, 2017
26f3fa0
rfdc: Add Makefile for Linux
Sep 25, 2017
3a88467
rfdc: Modify GetBlockStatus API to give proper info
Sep 25, 2017
5a95325
Updated license for 2017.3 release
Sep 25, 2017
49fe1dc
rfdc: Add API to get Output current
Sep 25, 2017
ff7f580
rfdc: Updated Sysref master and source parameters
saikrishnapotthuri Sep 25, 2017
1b02634
rfdc: Add test case for get output current
Sep 25, 2017
1f2977b
sdps: Add UHS_MODE_ENABLE macro to enable UHS mode
mnarani Sep 26, 2017
06fc950
rfdc: Modified rfdc interrupt example
Sep 26, 2017
9d98496
dpdma: added audio done interrupt handler.
Sep 26, 2017
681a426
sw_apps: zynqmp_fsbl: Added misc folder for 16.1
Apr 14, 2016
cd989ce
sw_apps: zynqmp_fsbl: Updated the misc folder for 2016.4
Dec 8, 2016
f876f80
sw_apps:zynqmp_fsbl:Updated the bsp Makefile for vless 2017.3
Sep 26, 2017
7f1c46a
sw_apps:zynqmp_fsbl:Updated the pm_cfg_obj.c file for vless fsbl 2017.3
Sep 26, 2017
26c90b5
sw_apps:zynqmp_fsbl:Updated psu_init.c file for zcu102-ES1
Sep 25, 2017
a806eaf
sw_apps:zynqmp_fsbl:Updated psu_init.h file for zcu102-ES1
Sep 25, 2017
72aa84e
sw_apps:zynqmp_fsbl:Updated psu_init_gpl.c file for zcu102-ES1
Sep 25, 2017
109dbb3
sw_apps:zynqmp_fsbl:Updated psu_init_gpl.h file for zcu102-ES1
Sep 25, 2017
c43af18
sw_apps:zynqmp_fsbl:Updated the xparameters.h for zcu102-ES1
Sep 25, 2017
0102d2c
sw_apps:zynqmp_pmufw:Updated the xparameters.h for vless 2017.3
Sep 25, 2017
a35fb76
sw_apps:zynqmp_pmufw:Updated the common files in misc folder
Sep 25, 2017
a10e0c0
sw_apps:zynq_fsbl: Updated zynq fsbl Makefile for vless 2017.3
Sep 26, 2017
2d5bd7e
sw_apps:zynq_fsbl: Updated the misc folder for zc706
Sep 26, 2017
d8b27ce
sw_apps:zynq_fsbl: Updated the misc folder for zed board
Sep 26, 2017
b6e4106
sw_apps:zynq_fsbl: Updated copy_bsp.sh scripts for vless 2017.3
Sep 26, 2017
bf13e37
sw_apps:zynq_fsbl: Updated the misc folder for zc702
Sep 26, 2017
c2ca9b6
sw_apps:zynq_fsbl: Updated zynq fsbl Makefile for vless 2017.3
Oct 3, 2017
950b3e8
sw_apps:zynq_fsbl: Updated zynq bsp Makefile for vless 2017.3
Oct 3, 2017
a83e3f3
sw_apps:zynq_fsbl: Updated copy_bsp.sh scripts for vless 2017.3
Oct 3, 2017
24a5149
sw_apps:zynq_fsbl:Added file for latest compilation flag.
Oct 3, 2017
53abab9
rfdc: Add makefile for compiling examples
Sep 27, 2017
95d57dd
XilRSA: Support only for Linaro tool chain
Oct 3, 2017
45c989d
Updated Doxygen for 2017.3
Oct 4, 2017
39c88f1
Updated licence.txt
May 25, 2017
42bbc03
prc: Added a new parameter and status error flags
Jul 11, 2017
3cc8598
axiethernet: Fix pmufw compilation errors
kedareswararao Jul 28, 2017
141c07a
prc: Revert prc: Added a new parameter and status error flags
Aug 10, 2017
b013c07
prc: Added a new parameter and status error flags
Aug 10, 2017
b9f3b37
DP/DPTXSS: Moved default HPD interrupt sequence to driver
Sep 8, 2017
1f3f49d
qspipsu: replaced the #ifdef COMMENTS with #if USE_FOUR_BYTE
Sep 19, 2017
a39ec0d
cpu_cortexa53:Update tcl for extra compiler flag modification
mubinsyed Sep 25, 2017
2ce65b2
emacps: Export PL PCS PMA information for ETH1/2/3
harini-katakam Sep 14, 2017
d8e82c6
Remove dual splitter driver warning
Sep 18, 2017
a9598cb
v_sdirxss: Update of Makefile to avoid make clean errors for Windows OS
Sep 26, 2017
fe3f871
v_sditxss: Update of Makefile to avoid the make clean errros for Wind…
Sep 26, 2017
e4352d9
v_sditxss: Added support for Import Examples in SDK GUI
Sep 26, 2017
d3984c4
v_sdirxss: Added support for Import Examples in SDK GUI
Sep 26, 2017
abaa8cc
csi2txss: Exporting ulps API to subsystem
Sep 27, 2017
9a27aec
PMUFW: Optimize for size enable in HSI flow
Oct 5, 2017
5be6765
XilRSA: Support only for Linaro tool chain
Oct 4, 2017
0ed7804
rfdc: Updated rfdc driver version
Oct 10, 2017
ba17fc4
rfdc: Fixed XRFdc_GetNoOfADCBlocks API issue in 4GSPS
Oct 10, 2017
20011f3
rfdc: Enable decoder clock based on decoder mode
Oct 10, 2017
d256098
rfdc: Add API to get current FIFO status
Oct 10, 2017
caa8630
rfdc: Update XRFdc_DumpRegs API
Oct 10, 2017
c936752
rfdc: Updated the rfdc read-write example
Oct 10, 2017
b9b4155
rfdc: Add support for 4GSPS CoarseMixer frequency
Oct 11, 2017
223bbcd
rfdc: Modify float datatypes to double
Oct 11, 2017
84c736a
sw_apps :zynqmp_fsbl: Add functionality in FSBL to distinguish EV dev…
Oct 10, 2017
15b1312
PMUFW: Read-only access to PMU LOCAL FPD lock status register
Sep 25, 2017
18fe33d
PMUFW: Export efuse ipdisable as the part of version string
Aug 22, 2017
6f5a016
ttcps: Updated APIs to use correct match register width
Oct 9, 2017
8b4e7d1
Changelog: Updated ttcps driver
Oct 9, 2017
1efbe6a
PMUFW: pm_master: Clear master wakeup sources after wake event
Oct 3, 2017
92479d6
rfdc: Updated BlockStatus API to give updated info
Oct 13, 2017
2d6e7a1
rfdc: Fixed ADCBlockEnable API in 4GSPS
Oct 13, 2017
afcbf30
rfdc: Fixed Coarse mixer BYPASS mode issue
Oct 13, 2017
11936f3
sw_apps :zynq_fsbl: Update Zynq FSBL version to 2017.4 in 2017.4 branch
Oct 11, 2017
7c2d125
PMUFW: Change PMU Firmware version in 2017.4 branch
Oct 16, 2017
ea6a32e
axidma: Fix issue poll_multi_pkt example fails on a53
kedareswararao Oct 17, 2017
d70cb54
rfdc: Fixed Set Threshold API.
Oct 17, 2017
4152449
sw_apps :zynqmp_fsbl: Update ZynqMP FSBL version to 2017.4 in 2017.4 …
Oct 11, 2017
b902094
sw_apps :zynqmp_fsbl: Update cross compiler flags with hard floating …
Oct 16, 2017
31436ec
avbuf:created enums for audio and video sources instead of macros
Oct 17, 2017
bd2176e
rfdc: Add support for FIFO and DATA OF interrupts
Oct 18, 2017
02911f6
rfdc: Check for FIFO interrupt for success
Oct 18, 2017
79c8bd8
avbuf: Fix prototype mismatch
harini-katakam Oct 23, 2017
6ef7725
PMUFW: Add wrapper API for IPI poll for Ack
Oct 16, 2017
ee1490e
v_sdirx: Removed the redundant callbackset flags
Oct 25, 2017
bab194a
v_sditx: Removed the redundant callbackset flags
Oct 25, 2017
f847de0
v_sditx: Support for CE align errors and axi4s video lock interrupts
Oct 25, 2017
41fe120
v_sditxss: Support for CE align errors and axi4s video lock interrupts
Oct 25, 2017
c05a6b8
v_sditx: Fix for typos and empty lines
Oct 25, 2017
fe3ceb1
v_sditx: Fix the ST352 BIT(6) value of byte 3
Oct 25, 2017
4f86c86
v_sditx: Fix for ST352 BIT(7) and BIT(6) of byte 2 for PsF formats
Oct 25, 2017
7f950e7
v_sditx, v_sditxss: driver version changes to enhance st352 calculations
Oct 25, 2017
25267d6
v_sdirx, v_sdirxss: driver version changes fix the redundant flags
Oct 25, 2017
ef7fc87
v_sditx, v_sditxss, v_sdirx, v_sdirxss: Removing redundant code and e…
Oct 25, 2017
2a3adab
dppsu: Removed unapplicable registers from the driver
Oct 20, 2017
af2ad3e
BSP: Fix bug in mb_can_handle_exceptions_in_delay_slots proc
mubinsyed Oct 20, 2017
a2a13ea
Thirdparty:BSP: Point FreeRTOS to latest standalone BSP
mubinsyed Oct 20, 2017
8eafa4a
Changelog: Updated for bug fix related to standalone tcl
mubinsyed Oct 20, 2017
2b56aec
avbuf:SetOutputVideoFormat to check for OutputVideo variable
Oct 20, 2017
ea52d49
v_hdmirx: Added enum XV_HdmiRx_AudioFormatType
Oct 26, 2017
810cc10
v_hdmitx: Update on audio and scrambler V2
Oct 26, 2017
bf64e01
v_hdmirxss: Updated audio and reduced stack size
Oct 26, 2017
826bda7
v_hdmitxss: Updated audio and reduced stack size V2
Oct 26, 2017
b863c69
axidma: Fix bug in the XAxiDma_Reset() API
kedareswararao Oct 26, 2017
2f9d223
lwip141: Correct tx bd ring assigments in xemacpsif
harini-katakam Oct 27, 2017
7d3186f
v_sdirxss: Fix the SDI example application to reset QPLL only after s…
Oct 31, 2017
c21927f
v_sdirxss: Removed the C_INCLUDE_EDH paramter to reflect the subsyste…
Oct 30, 2017
26deced
v_sditxss: Removed the C_INCLUDE_EDH paramter to reflect the subsyste…
Oct 30, 2017
8ddc733
v_sditx: Add assertion to check the GUI SDI standard parameter agains…
Oct 30, 2017
cd94c4a
v_sditxss: Add assertion to check the GUI SDI standard parameter agai…
Oct 30, 2017
bc461f7
v_sdirx: Add assertion to check the GUI SDI standard parameter agains…
Oct 30, 2017
3152404
v_sdirxss: Add assertion to check the GUI SDI standard parameter agai…
Oct 30, 2017
59acbe6
dppsu: modified default selftest register values
Oct 30, 2017
bc2125a
dppsu: added selftest example for the DP driver.
Oct 31, 2017
37e1222
dppsu: added example for dp for ZU+
Oct 26, 2017
9d4c1a7
dpdma:Graphics overlay example added
Nov 1, 2017
01b3a31
v_sdirx: Add API to wait for payload valid bits are set.
Nov 2, 2017
02890f4
v_sdirxss: Add API to wait for payload valid bits are set.
Nov 2, 2017
39285ec
zdma: Fixed compilation errors for IAR compiler
kedareswararao Nov 2, 2017
7a300a5
qspipsu: example made compatible with u-boot and linux.
Nov 2, 2017
a01b64a
ChangeLog: Updated the ChangeLog for qspipsu.
Nov 1, 2017
da7ec38
axidma: Add interface to lookup XAxiDma_Config based on base address
radheyxilinx Nov 3, 2017
8014ecf
lwip141: Perform AXI DMA lookup based on base address
radheyxilinx Nov 3, 2017
0baf62f
xuartps: Fix the Buffer Overflow issue in the Receive path.
Oct 9, 2017
6a45b3e
qspipsu: Resolved errors in qspipsu for ICCARM compiler.
Nov 2, 2017
1dc985a
ChangeLog: Updated the ChangeLog for qspipsu.
Nov 2, 2017
e7a01ce
v_hdmirxss: Audio update for pass-through design example
Nov 6, 2017
5bbb0e8
v_hdmitxss: Audio update for pass-through design example
Nov 6, 2017
8dd31a8
qspipsu: lqspi and polldata examples made compatible with u-boot.
Nov 3, 2017
680a679
v_hdmirxss: Updated SI5324 driver
Nov 16, 2017
02b9ec8
v_hdmitxss: Updated SI5324 driver
Nov 16, 2017
ee704af
rfdc: Updated rfdc driver version
Nov 6, 2017
1903f74
rfdc: Fix PhaseOffset truncation issue
Nov 6, 2017
2373674
rfdc: Provide user configurability for Mixer scale
Nov 6, 2017
9a896fd
rfdc: Update read-write example with mixer scale
Nov 6, 2017
ce2f1e0
rfdc: Return error for invalid mixer modes
Nov 8, 2017
e37fbd6
rfdc: Modified read-write example
Nov 8, 2017
efc8d5d
rfdc: Modified macro names for mixer scale
Nov 8, 2017
337a15d
rfdc: Corrected FIFO and DATA interrupt masks
Nov 10, 2017
bc89dfa
v_sdirxss: Fix for zero payload value in example design
Nov 17, 2017
611252c
rfdc: Fixed startup, shutdown and Reset API's for TileId -1
Nov 20, 2017
693e995
Updated for changelog
saddepal Nov 22, 2017
05812ef
v_hdmitxss: Updated audiogen_drv to fix compilation issue found in RX…
Nov 30, 2017
5555763
v_hdmirxss: Updated audiogen_drv to fix compilation issue found in RX…
Nov 30, 2017
0951d83
Updated Doxygen for 2017.4
Dec 12, 2017
fb7b726
Fixed example to use driver parameter consistently
dglanzman Mar 14, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PMUFW: Update DDR driver for LPDDR4
Update DDR driver to handle data corruption
for LPDDR4.
  * Enable drift only if it is enabled by FSBL at bootup
  * New data store offset for LPDDR4
  * Update training data size for LPDDR4
  * Add WLADJ training for LPDDR4
  * Update function to check if old mapping is true or not.

Signed-off-by: Tejas Patel <tejasp@xilinx.com>

Acked-by: Will Wong <willw@xilinx.com>
  • Loading branch information
Tejas Patel authored and vdubakul committed Oct 4, 2017
commit f0354827bb1655e6f347839a248260e153eebafa
53 changes: 41 additions & 12 deletions lib/sw_apps/zynqmp_pmufw/src/pm_ddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,14 @@ static u32 training_data[NUM_TRAIN_WORDS];
#define DDR4_SIZE 0x200U >> 2
#define DDR4_SIZE_OLD 0x100U >> 2
#define LPDDR3_SIZE 0x100U >> 2
#define LPDDR4_SIZE 0x80U >> 2
#define LPDDR4_SIZE 0x100U >> 2

/* DDR4 old mapping ddr data training location offset */
#define OLD_MAP_OFFSET 0x2000U
#define LPDDR4_OLD_MAP_OFFSET 0x4000U

/* If it is required to enable drift */
static u8 drift_enable_req;

/* DDR states */
static const u32 pmDdrStates[PM_DDR_STATE_MAX] = {
Expand Down Expand Up @@ -843,6 +847,10 @@ static void ddr_enable_rd_drift(void)

static void ddr_enable_drift(void)
{
/* Enable drift only if it is previously enabled */
if (!drift_enable_req)
return;

u32 readVal = Xil_In32(DDRC_MSTR);
if (0U != (readVal & DDRC_MSTR_LPDDR3)) {
/* enable read drift only for LPDDR3 */
Expand All @@ -852,6 +860,7 @@ static void ddr_enable_drift(void)
ddr_enable_rd_drift();
ddr_enable_wr_drift();
}
drift_enable_req = 0;
/* do not enable drift for DDR3/4, and LPDDR2 is not supported */
}

Expand Down Expand Up @@ -1365,12 +1374,14 @@ static void DDR_reinit(bool ddrss_is_reset)
DDRPHY_PIR_WREYE |
DDRPHY_PIR_RDEYE |
DDRPHY_PIR_WRDSKW |
DDRPHY_PIR_RDDSKW);
DDRPHY_PIR_RDDSKW |
DDRPHY_PIR_WLADJ);
Xil_Out32(DDRPHY_PIR, DDRPHY_PIR_CTLDINIT |
DDRPHY_PIR_WREYE |
DDRPHY_PIR_RDEYE |
DDRPHY_PIR_WRDSKW |
DDRPHY_PIR_RDDSKW |
DDRPHY_PIR_WLADJ |
DDRPHY_PIR_INIT);
status = XPfw_UtilPollForMask(DDRPHY_PGSR(0U),
DDRPHY_PGSR0_IDONE,
Expand Down Expand Up @@ -1460,15 +1471,27 @@ static void DDR_reinit(bool ddrss_is_reset)
}
}

static inline u32 get_old_map_offset(void)
{
if (DDRC_MSTR_LPDDR4 ==
(Xil_In32(DDRC_MSTR) & DDRC_MSTR_DDR_TYPE)) {
return LPDDR4_OLD_MAP_OFFSET;
} else {
return OLD_MAP_OFFSET;
}
}

static bool ddr4_is_old_mapping()
{
u32 bg_b0, col_b4;
bool old_mapping = false;

bg_b0 = Xil_In32(DDRC_ADDRMAP(8U)) & DDRC_ADDRMAP8_ADDRMAP_BG_B0;
col_b4 = (Xil_In32(DDRC_ADDRMAP(2U)) & DDRC_ADDRMAP2_ADDRMAP_COL_B4) >>
DDRC_ADDRMAP2_ADDRMAP_COL_B4_SHIFT;
if ((bg_b0 + 2U) > (col_b4 + 4U)) {
DDRC_ADDRMAP2_ADDRMAP_COL_B4_SHIFT;
if (((bg_b0 + 2U) > (col_b4 + 4U)) ||
(DDRC_MSTR_DDR4 != (Xil_In32(DDRC_MSTR) &
DDRC_MSTR_DDR_TYPE))) {
old_mapping = true;
}

Expand Down Expand Up @@ -1525,12 +1548,13 @@ static u32 ddr_training_size()

static void store_training_data()
{
u32 axi_cs, size, i, j, step;
u32 axi_cs, size, i, j, step, old_map_offset;
bool old_mapping;

axi_cs = ddr_axi_cs();
size = ddr_training_size();
old_mapping = ddr4_is_old_mapping();
old_map_offset = get_old_map_offset();

if (axi_cs && old_mapping) {
step = 4;
Expand All @@ -1543,14 +1567,14 @@ static void store_training_data()
for (i = 0U, j = 0U; i < size; i++, j += step) {
training_data[j] = Xil_In32(i << 2U);
if ((0 != old_mapping) && (0 != axi_cs)) {
training_data[j + 1U] = Xil_In32(OLD_MAP_OFFSET +
training_data[j + 1U] = Xil_In32(old_map_offset +
(i << 2U));
training_data[j + 2U] = Xil_In32((1U << axi_cs) +
(i << 2U));
training_data[j + 3U] = Xil_In32(OLD_MAP_OFFSET +
training_data[j + 3U] = Xil_In32(old_map_offset +
(1U << axi_cs) + (i << 2U));
} else if (0 != old_mapping) {
training_data[j + 1U] = Xil_In32(OLD_MAP_OFFSET +
training_data[j + 1U] = Xil_In32(old_map_offset +
(i << 2U));
} else if (0 != axi_cs) {
training_data[j + 1U] = Xil_In32((1U << axi_cs) +
Expand All @@ -1562,12 +1586,13 @@ static void store_training_data()

static void restore_training_data()
{
u32 axi_cs, size, i, j, step;
u32 axi_cs, size, i, j, step, old_map_offset;
bool old_mapping;

axi_cs = ddr_axi_cs();
size = ddr_training_size();
old_mapping = ddr4_is_old_mapping();
old_map_offset = get_old_map_offset();

if (axi_cs && old_mapping) {
step = 4;
Expand All @@ -1580,14 +1605,14 @@ static void restore_training_data()
for (i = 0U, j = 0U; i < size; i++, j += step) {
Xil_Out32((i << 2U), training_data[j]);
if ((0 != old_mapping) && (0 != axi_cs)) {
Xil_Out32(OLD_MAP_OFFSET + (i << 2U),
Xil_Out32(old_map_offset + (i << 2U),
training_data[j + 1U]);
Xil_Out32((1U << axi_cs) + (i << 2U),
training_data[j + 2U]);
Xil_Out32(OLD_MAP_OFFSET + (1U << axi_cs) + (i << 2U),
Xil_Out32(old_map_offset + (1U << axi_cs) + (i << 2U),
training_data[j + 3U]);
} else if (0 != old_mapping) {
Xil_Out32(OLD_MAP_OFFSET + (i << 2U),
Xil_Out32(old_map_offset + (i << 2U),
training_data[j + 1U]);
} else if (0 != axi_cs) {
Xil_Out32((1U << axi_cs) + (i << 2U),
Expand All @@ -1603,6 +1628,10 @@ static int pm_ddr_sr_enter(void)

store_training_data();

/* Identify if drift is enabled */
if (Xil_In32(DDRPHY_DQSDR(0U)) & DDRPHY_DQSDR0_DFTDTEN)
drift_enable_req = 1;

/* disable read and write drift */
ddr_disable_rd_drift();
ddr_disable_wr_drift();
Expand Down