History log of /fuchsia/zircon/system/dev/board/astro/astro-clk.c
Revision Date Author Comments
# 7a6b09c1 21-Aug-2018 Brijen Raval <braval@google.com>

[astro][clocks] Add clock measure IOCTL

Added support to measure all clock frequency.
This IOCTL will be consumed by a command line
utility which will be a separate CL.

Test: Manual testing on Astro, verified by changing Mali CLK

Change-Id: I3fd51de0a1ff6685c2f1514bca3c45f85c4710d8


# 0d71f953 21-Aug-2018 Mike Voydanoff <voydanoff@google.com>

[dev][platform-bus] Clean-up and simplify platform bus protocol:

- Remove "flags" parameter from pbus_device_add().
Now platform devices can only be started in new devhosts.

- Add new API pbus_protocol_device_add(), for binding drivers that implement
platform bus protocols like GPIO and I2C_IMPL.
pbus_protocol_device_add() is equivalent to pbus_device_add(PDEV_ADD_PBUS_DEVHOST)
followed by pbus_wait_protocol().

- Remove pbus_wait_protocol(). pbus_protocol_device_add() does the wait for you automatically.

- Rename pbus_set_protocol() to pbus_register_protocol()

These changes will hopefully make the platform bus protocol easier
to understand and use.
I found two places where people accidentally using PDEV_ADD_PBUS_DEVHOST
inappropriately (probably copy & paste errors), which resulted in
the entire network stack and storage stack running in the platform bus devhost.
Hopefully this change will make it impossible for mistakes like that to happen again.

While doing this I also noticed that the gauss nand driver and vim2 ethernet driver
were running in the platform bus devhost. This change fixes that.

Also removed some remnants of the pbus_device_enable() API, which has been removed previously.

TEST: boot up on qemu, VIM2, gauss and astro and verified platform devices all start up properly

Change-Id: I580269bc6f53a63348ba8ab580259b1ba56dd393


# 3e75c4d7 20-Aug-2018 Brijen Raval <braval@google.com>

[clock][amlogic] Add clock driver to VIM & Astro

Test: Boot up on vim & astro

Change-Id: I55cb7db3bda0a84fd75f75e62ef981a528e761fd