diff options
author | Tom Rini <trini@konsulko.com> | 2020-07-02 09:53:34 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-07-02 09:53:34 -0400 |
commit | 785195941b0746ac987a0ca501dae3e570b9f042 (patch) | |
tree | 317f4d937fb80de27123a1d18adc29ad5bf9337c /drivers/cpu/cpu-uclass.c | |
parent | e2a4d24e6b1f3d30136e2dde7b6fbf35bd427b8a (diff) | |
parent | add0dc1f7de91112d9e738f9482b09b75fa86acb (diff) |
Merge branch 'next' of https://gitlab.denx.de/u-boot/custodians/u-boot-riscv into next
- Add Sipeed Maix support
- Update clock handler and proper cpu features
Diffstat (limited to 'drivers/cpu/cpu-uclass.c')
-rw-r--r-- | drivers/cpu/cpu-uclass.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c index 7418c26ed8b..cbb4419ec0c 100644 --- a/drivers/cpu/cpu-uclass.c +++ b/drivers/cpu/cpu-uclass.c @@ -86,6 +86,9 @@ int cpu_get_info(struct udevice *dev, struct cpu_info *info) if (!ops->get_info) return -ENOSYS; + /* Init cpu_info to 0 */ + memset(info, 0, sizeof(struct cpu_info)); + return ops->get_info(dev, info); } |