]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00274473-1 regulator: add more notifier events
authorAnson Huang <b20788@freescale.com>
Thu, 8 Aug 2013 21:05:38 +0000 (17:05 -0400)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:33 +0000 (09:54 +0800)
commit98816980ae2106a35fae64f910309751398352bc
tree68cd85b3d4d12b483e9dc2ce8c8e85d2d65e1523
parent9f9c0a41db1d61d54d563e0f8ac39793a81c0aba
ENGR00274473-1 regulator: add more notifier events

Some hardware modules need strict flows according
to regulator's enable/disable, such as for i.MX6
SOC's PU regulator, there is another power gate
in GPC module, it needs to disable PU modules' clock
before PU regulator is disabled and need to enable
clock right after PU regulator is enabled, then it
can do GPC's power gate operation.

So we need to add REGULATOR_EVENT_PRE_DISABLE and
REGULATOR_EVENT_ENABLE for regulator's notifier events.

Signed-off-by: Anson Huang <b20788@freescale.com>
drivers/regulator/core.c
include/linux/regulator/consumer.h