* [U-Boot] [PATCH] sysreset: syscon: convert to use live dt @ 2018-03-17 11:22 Álvaro Fernández Rojas 2018-03-17 18:41 ` Daniel Schwierzeck 2018-04-11 14:04 ` [U-Boot] " Tom Rini 0 siblings, 2 replies; 3+ messages in thread From: Álvaro Fernández Rojas @ 2018-03-17 11:22 UTC (permalink / raw) To: u-boot Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> --- drivers/sysreset/sysreset_syscon.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/sysreset/sysreset_syscon.c b/drivers/sysreset/sysreset_syscon.c index 3abce7f678..22c602a4d2 100644 --- a/drivers/sysreset/sysreset_syscon.c +++ b/drivers/sysreset/sysreset_syscon.c @@ -15,8 +15,6 @@ #include <sysreset.h> #include <syscon.h> -DECLARE_GLOBAL_DATA_PTR; - struct syscon_reboot_priv { struct regmap *regmap; unsigned int offset; @@ -55,10 +53,8 @@ int syscon_reboot_probe(struct udevice *dev) return -ENODEV; } - priv->offset = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), - "offset", 0); - priv->mask = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), - "mask", 0); + priv->offset = dev_read_u32_default(dev, "offset", 0); + priv->mask = dev_read_u32_default(dev, "mask", 0); return 0; } -- 2.11.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] sysreset: syscon: convert to use live dt 2018-03-17 11:22 [U-Boot] [PATCH] sysreset: syscon: convert to use live dt Álvaro Fernández Rojas @ 2018-03-17 18:41 ` Daniel Schwierzeck 2018-04-11 14:04 ` [U-Boot] " Tom Rini 1 sibling, 0 replies; 3+ messages in thread From: Daniel Schwierzeck @ 2018-03-17 18:41 UTC (permalink / raw) To: u-boot On 17.03.2018 12:22, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> > --- > drivers/sysreset/sysreset_syscon.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> -- - Daniel -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180317/d04b0cff/attachment.sig> ^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] sysreset: syscon: convert to use live dt 2018-03-17 11:22 [U-Boot] [PATCH] sysreset: syscon: convert to use live dt Álvaro Fernández Rojas 2018-03-17 18:41 ` Daniel Schwierzeck @ 2018-04-11 14:04 ` Tom Rini 1 sibling, 0 replies; 3+ messages in thread From: Tom Rini @ 2018-04-11 14:04 UTC (permalink / raw) To: u-boot On Sat, Mar 17, 2018 at 12:22:24PM +0100, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> > Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180411/d6aa8699/attachment.sig> ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-11 14:04 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-03-17 11:22 [U-Boot] [PATCH] sysreset: syscon: convert to use live dt Álvaro Fernández Rojas 2018-03-17 18:41 ` Daniel Schwierzeck 2018-04-11 14:04 ` [U-Boot] " Tom Rini
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox