aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/samsung/stumpy/romstage.c
diff options
context:
space:
mode:
authordavid <david_wu@quantatw.com>2015-01-19 17:11:36 +0800
committerMartin Roth <martinroth@google.com>2015-12-26 20:51:29 +0100
commit80ef7b778e5e5ec8b2940c875df76bb705855ede (patch)
tree5579af966b3bae3ccb72e0f58179cc325441e4bd /src/mainboard/samsung/stumpy/romstage.c
parent0fa4f6f23d6bec4216e0be27526a009db50c8938 (diff)
IT8772F: Clean up it8772f includes and add a LED API
- Remove it8772f c includes - Add a new LED API, it8772f_gpio_led - Stumpy: using it8772f_gpio_led BUG=chrome-os-partner:28232 BRANCH=Guado TEST=emerge-guado coreboot chromeos-bootimage Change-Id: I08de52515d3c1e7e85d1761c09a0cebffda7dda3 Signed-off-by: David Wu <David_Wu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/241813 Tested-by: David Wu <david_wu@quantatw.com> Reviewed-by: Shawn N <shawnn@chromium.org> Commit-Queue: David Wu <david_wu@quantatw.com> Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/12797 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/mainboard/samsung/stumpy/romstage.c')
-rw-r--r--src/mainboard/samsung/stumpy/romstage.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainboard/samsung/stumpy/romstage.c b/src/mainboard/samsung/stumpy/romstage.c
index f76de7a8b0..bf1ddb37be 100644
--- a/src/mainboard/samsung/stumpy/romstage.c
+++ b/src/mainboard/samsung/stumpy/romstage.c
@@ -155,7 +155,10 @@ static void setup_sio_gpios(void)
/*
* GPIO45 as LED_POWER#
*/
- it8772f_gpio_setup(DUMMY_DEV, 4, 0x20, 0x20, 0x20, 0x20, 0x20);
+ it8772f_gpio_led(DUMMY_DEV, 4 /* set */, (0x1<<5) /* select */,
+ 0x00 /* polarity: non-inverting */, 0x00 /* 0=pulldown */,
+ (0x1<<5) /* output */, (0x1<<5) /* 1=Simple IO function */,
+ SIO_GPIO_BLINK_GPIO45, IT8772F_GPIO_BLINK_FREQUENCY_1_HZ);
/*
* GPIO51 as USBPWRON8#