2 * Qualcomm APQ8016 reset controller driver
4 * (C) Copyright 2015 Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
6 * SPDX-License-Identifier: GPL-2.0+
15 DECLARE_GLOBAL_DATA_PTR
;
17 static int msm_sysreset_request(struct udevice
*dev
, enum sysreset_t type
)
19 phys_addr_t addr
= devfdt_get_addr(dev
);
26 static struct sysreset_ops msm_sysreset_ops
= {
27 .request
= msm_sysreset_request
,
30 static const struct udevice_id msm_sysreset_ids
[] = {
31 { .compatible
= "qcom,pshold" },
35 U_BOOT_DRIVER(msm_reset
) = {
36 .name
= "msm_sysreset",
37 .id
= UCLASS_SYSRESET
,
38 .of_match
= msm_sysreset_ids
,
39 .ops
= &msm_sysreset_ops
,