diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2016-04-29 16:36:02 -0700 |
---|---|---|
committer | Leroy P Leahy <leroy.p.leahy@intel.com> | 2016-05-05 17:55:26 +0200 |
commit | 4c3f5dc03ce5fa19cd087a62430239df6d86e54d (patch) | |
tree | 01b50f70a4f78bc26f3776923d4d72bbe39bf9b2 /src/soc/intel/quark/reg_access.c | |
parent | 63e3dff02f5b66b32b32fd1497f820532af25a07 (diff) | |
download | coreboot-4c3f5dc03ce5fa19cd087a62430239df6d86e54d.tar.xz |
soc/intel/quark: Add script time delay support
Add time delay support to the scripts.
TEST=Build and run on Galileo Gen2
Change-Id: I2c87977e2a2547e00769e59e1ee81fbbb5dff33f
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-on: https://review.coreboot.org/14555
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/soc/intel/quark/reg_access.c')
-rw-r--r-- | src/soc/intel/quark/reg_access.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/soc/intel/quark/reg_access.c b/src/soc/intel/quark/reg_access.c index fb80f3df0b..be023406a6 100644 --- a/src/soc/intel/quark/reg_access.c +++ b/src/soc/intel/quark/reg_access.c @@ -150,6 +150,16 @@ static void reg_write(struct reg_script_context *ctx) reg_soc_unit_write(step->reg, (uint32_t)step->value); break; + case MICROSECOND_DELAY: + /* The actual delay is >= the requested delay */ + if (ctx->display_features) { + /* Higher baud-rates will reduce the impact of displaying this message */ + printk(BIOS_INFO, "Delay %lld uSec\n", step->value); + ctx->display_features = REG_SCRIPT_DISPLAY_NOTHING; + } + udelay(step->value); + break; + case USB_PHY_REGS: ctx->display_prefix = "USB PHY"; reg_usb_write(step->reg, (uint32_t)step->value); |