blob: 63b259c33d4c9053e46d202ac071616cbb6a6f75 [file] [log] [blame]
Kevin Scholz521a4ef2019-10-07 19:26:36 +05301// SPDX-License-Identifier: BSD-3-Clause
Dave Gerlachd712b362021-05-11 10:22:11 -05002/*
3 * Cadence DDR Driver
4 *
Bryan Brattlof85b5cc82022-10-24 16:53:28 -05005 * Copyright (C) 2012-2022 Cadence Design Systems, Inc.
6 * Copyright (C) 2018-2022 Texas Instruments Incorporated - https://www.ti.com/
Kevin Scholz521a4ef2019-10-07 19:26:36 +05307 */
8
9#include "lpddr4_obj_if.h"
10
Dave Gerlachd712b362021-05-11 10:22:11 -050011lpddr4_obj *lpddr4_getinstance(void)
Kevin Scholz521a4ef2019-10-07 19:26:36 +053012{
Dave Gerlachd712b362021-05-11 10:22:11 -050013 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,
Bryan Brattlof85b5cc82022-10-24 16:53:28 -050048 .deferredregverify = lpddr4_deferredregverify,
Kevin Scholz521a4ef2019-10-07 19:26:36 +053049 };
50
51 return &driver;
52}