lightbar: refactoring RAMP_ONCE and CYCLE_ONCE
lightbar: refactoring RAMP_ONCE and CYCLE_ONCE

These opcodes basically do the same thing, but with minor
changes. We can factor this out to avoid code duplication.
Saves 90 bytes.

BUG=None
BRANCH=ToT
TEST=Inspected programs that use RAMP_ONCE and CYCLE_ONCE with
  both nonzero and zero ramp delay.

Change-Id: I0105dbd4fc0af86beea993dbef85a0e0f01a0a90
Signed-off-by: Eric Caruso <b4dfd424537681137c06263971140211e84cb3c6@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/220604
Reviewed-by: Vic Yang <5fd92abeee651458f98e2856f4f200ee971cee4d@chromium.org>

fourier49/BIZ_EC,longsleep/ec,fourier49/BZ_DEV_EC,eatbyte/chromium-ec,fourier49/BZ_DEV_EC,akappy7/ChromeOS_EC_LED_Diagnostics,coreboot/chrome-ec,md5555/ec,fourier49/BZ_DEV_EC,longsleep/ec,mtk09422/chromiumos-platform-ec,fourier49/BIZ_EC,md5555/ec,mtk09422/chromiumos-platform-ec,coreboot/chrome-ec,eatbyte/chromium-ec,md5555/ec,fourier49/BZ_DEV_EC,coreboot/chrome-ec,fourier49/BIZ_EC,akappy7/ChromeOS_EC_LED_Diagnostics,mtk09422/chromiumos-platform-ec,akappy7/ChromeOS_EC_LED_Diagnostics,md5555/ec,mtk09422/chromiumos-platform-ec,eatbyte/chromium-ec,eatbyte/chromium-ec,longsleep/ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,akappy7/ChromeOS_EC_LED_Diagnostics,longsleep/ec,fourier49/BIZ_EC,akappy7/ChromeOS_EC_LED_Diagnostics