[U-Boot] [RFC] POWER framework v3 - wish list
Marek Vasut
marex at denx.de
Thu May 15 21:01:45 CEST 2014
On Friday, May 09, 2014 at 08:58:02 AM, Przemyslaw Marczak wrote:
> Hello,
[...]
> struct power_ops_key_power {
> int (*key_state) (int *state);
> };
This could be a key input device.
> struct power_ops_rtc {
> int (*sec) (int set_get, int *val);
> int (*min) (int set_get, int *val);
> int (*hour) (int set_get, int *val);
> int (*day) (int set_get, int *val);
> int (*month) (int set_get, int *val);
> int (*year) (int set_get, int *val);
> };
RTC device.
> struct power_ops_motor {
> int (*configure) (void);
> int (*enable) (int time, int gain);
> };
>
> struct power_ops_led_flash {
> int (*configure) (void);
> int (*enable) (void);
> int (*disable) (void);
> };
LED device.
It seems like you're trying to assemble a huge framework while avoiding the
already-present frameworks. No?
Best regards,
Marek Vasut
More information about the U-Boot
mailing list