Kevin Scholz | 521a4ef | 2019-10-07 19:26:36 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: BSD-3-Clause |
Dave Gerlach | d712b36 | 2021-05-11 10:22:11 -0500 | [diff] [blame] | 2 | /* |
| 3 | * Cadence DDR Driver |
| 4 | * |
| 5 | * Copyright (C) 2012-2021 Cadence Design Systems, Inc. |
| 6 | * Copyright (C) 2018-2021 Texas Instruments Incorporated - https://www.ti.com/ |
Kevin Scholz | 521a4ef | 2019-10-07 19:26:36 +0530 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include "lpddr4_obj_if.h" |
| 10 | |
Dave Gerlach | d712b36 | 2021-05-11 10:22:11 -0500 | [diff] [blame] | 11 | lpddr4_obj *lpddr4_getinstance(void) |
Kevin Scholz | 521a4ef | 2019-10-07 19:26:36 +0530 | [diff] [blame] | 12 | { |
Dave Gerlach | d712b36 | 2021-05-11 10:22:11 -0500 | [diff] [blame] | 13 | static lpddr4_obj driver = { |
| 14 | .probe = lpddr4_probe, |
| 15 | .init = lpddr4_init, |
| 16 | .start = lpddr4_start, |
| 17 | .readreg = lpddr4_readreg, |
| 18 | .writereg = lpddr4_writereg, |
| 19 | .getmmrregister = lpddr4_getmmrregister, |
| 20 | .setmmrregister = lpddr4_setmmrregister, |
| 21 | .writectlconfig = lpddr4_writectlconfig, |
| 22 | .writephyconfig = lpddr4_writephyconfig, |
| 23 | .writephyindepconfig = lpddr4_writephyindepconfig, |
| 24 | .readctlconfig = lpddr4_readctlconfig, |
| 25 | .readphyconfig = lpddr4_readphyconfig, |
| 26 | .readphyindepconfig = lpddr4_readphyindepconfig, |
| 27 | .getctlinterruptmask = lpddr4_getctlinterruptmask, |
| 28 | .setctlinterruptmask = lpddr4_setctlinterruptmask, |
| 29 | .checkctlinterrupt = lpddr4_checkctlinterrupt, |
| 30 | .ackctlinterrupt = lpddr4_ackctlinterrupt, |
| 31 | .getphyindepinterruptmask = lpddr4_getphyindepinterruptmask, |
| 32 | .setphyindepinterruptmask = lpddr4_setphyindepinterruptmask, |
| 33 | .checkphyindepinterrupt = lpddr4_checkphyindepinterrupt, |
| 34 | .ackphyindepinterrupt = lpddr4_ackphyindepinterrupt, |
| 35 | .getdebuginitinfo = lpddr4_getdebuginitinfo, |
| 36 | .getlpiwakeuptime = lpddr4_getlpiwakeuptime, |
| 37 | .setlpiwakeuptime = lpddr4_setlpiwakeuptime, |
| 38 | .geteccenable = lpddr4_geteccenable, |
| 39 | .seteccenable = lpddr4_seteccenable, |
| 40 | .getreducmode = lpddr4_getreducmode, |
| 41 | .setreducmode = lpddr4_setreducmode, |
| 42 | .getdbireadmode = lpddr4_getdbireadmode, |
| 43 | .getdbiwritemode = lpddr4_getdbiwritemode, |
| 44 | .setdbimode = lpddr4_setdbimode, |
| 45 | .getrefreshrate = lpddr4_getrefreshrate, |
| 46 | .setrefreshrate = lpddr4_setrefreshrate, |
| 47 | .refreshperchipselect = lpddr4_refreshperchipselect, |
Kevin Scholz | 521a4ef | 2019-10-07 19:26:36 +0530 | [diff] [blame] | 48 | }; |
| 49 | |
| 50 | return &driver; |
| 51 | } |