platform: tegra: bootrom: add support for power off commands
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 6 Nov 2015 14:03:42 +0000 (19:03 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Tue, 10 Nov 2015 23:01:32 +0000 (15:01 -0800)
commitdacbaae16de0e5e4d902ad3464ecb262c665f548
tree8996a6e14ee1d086aa0e3f96a075cfcd9109e3eb
parentf7009f5155b0e43371baaba39ee0fc6328ea102e
platform: tegra: bootrom: add support for power off commands

Add support for power off commands fro bootrom. The commands
are provided from DT as follows:
pmc {
bootrom-commands {
reset-commands {
};
power-off-commands {
};
};
};

If power off and reset commands are not available from child node
then properties and command in node bootrom-commands are used. This
is done to support backward compatibility.

The commands properties are same as earlier.

bug 200146310

Change-Id: I3a2102a20424c81310a7c96041884b24ce6e9e15
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/829398
GVS: Gerrit_Virtual_Submit
drivers/platform/tegra/tegra-bootrom-pmc-config.c