* [U-Boot] [PATCH] sysreset: rockchip: use dev_read_addr_ptr get cru base
@ 2018-03-24 6:49 Andy Yan
2018-03-24 10:50 ` Dr. Philipp Tomsich
0 siblings, 1 reply; 3+ messages in thread
From: Andy Yan @ 2018-03-24 6:49 UTC (permalink / raw)
To: u-boot
Use system api dev_read_addr_ptr to get cru reg base,
rather than rockchip private api rockchip_get_cru, which
will be cleanup later.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---
drivers/sysreset/sysreset_rockchip.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/sysreset/sysreset_rockchip.c b/drivers/sysreset/sysreset_rockchip.c
index 894975f..6c584d0 100644
--- a/drivers/sysreset/sysreset_rockchip.c
+++ b/drivers/sysreset/sysreset_rockchip.c
@@ -10,14 +10,12 @@
#include <sysreset.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
-#include <asm/arch/cru_rk3328.h>
-#include <asm/arch/hardware.h>
#include <linux/err.h>
int rockchip_sysreset_request(struct udevice *dev, enum sysreset_t type)
{
struct sysreset_reg *offset = dev_get_priv(dev);
- unsigned long cru_base = (unsigned long)rockchip_get_cru();
+ unsigned long cru_base = (unsigned long)dev_read_addr_ptr(dev->parent);
if (IS_ERR_VALUE(cru_base))
return (int)cru_base;
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] sysreset: rockchip: use dev_read_addr_ptr get cru base
2018-03-24 6:49 [U-Boot] [PATCH] sysreset: rockchip: use dev_read_addr_ptr get cru base Andy Yan
@ 2018-03-24 10:50 ` Dr. Philipp Tomsich
2018-04-26 7:10 ` Dr. Philipp Tomsich
0 siblings, 1 reply; 3+ messages in thread
From: Dr. Philipp Tomsich @ 2018-03-24 10:50 UTC (permalink / raw)
To: u-boot
> On 24 Mar 2018, at 07:49, Andy Yan <andy.yan@rock-chips.com> wrote:
>
> Use system api dev_read_addr_ptr to get cru reg base,
> rather than rockchip private api rockchip_get_cru, which
> will be cleanup later.
>
> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] sysreset: rockchip: use dev_read_addr_ptr get cru base
2018-03-24 10:50 ` Dr. Philipp Tomsich
@ 2018-04-26 7:10 ` Dr. Philipp Tomsich
0 siblings, 0 replies; 3+ messages in thread
From: Dr. Philipp Tomsich @ 2018-04-26 7:10 UTC (permalink / raw)
To: u-boot
Andy,
> On 24 Mar 2018, at 11:50, Dr. Philipp Tomsich <philipp.tomsich@theobroma-systems.com> wrote:
>
>
>> On 24 Mar 2018, at 07:49, Andy Yan <andy.yan@rock-chips.com> wrote:
>>
>> Use system api dev_read_addr_ptr to get cru reg base,
>> rather than rockchip private api rockchip_get_cru, which
>> will be cleanup later.
>>
>> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
>
> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This one breaks the build:
https://travis-ci.org/ptomsich/u-boot-rockchip/builds/371147039
Please revise accordingly.
Always ensure that a submitted series does not cause any build failures
as this is a major distraction when trying to process multiple series…
Thanks,
Philipp.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-26 7:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-24 6:49 [U-Boot] [PATCH] sysreset: rockchip: use dev_read_addr_ptr get cru base Andy Yan
2018-03-24 10:50 ` Dr. Philipp Tomsich
2018-04-26 7:10 ` Dr. Philipp Tomsich
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.