pit: Replace the snow GPIO indexes with ones for pit.
The GPIOs used by vboot and setting up the display and backlight were still the ones for snow. This change updates them so they're correct for pit. BUG=chrome-os-partner:19420 TEST=Built and booted to when the payload is loaded on pit BRANCH=None Change-Id: I3ae4c2baefbab26bbc7b3716242c37885a5b44c0 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/59241 Reviewed-by: Gabe Black <gabeblack@chromium.org> Reviewed-by: David Hendricks <dhendrix@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org>
This commit is contained in:
parent
bacd1810e4
commit
3db641c4d9
3 changed files with 20 additions and 18 deletions
|
|
@ -36,9 +36,9 @@ void fill_lb_gpios(struct lb_gpios *gpios)
|
|||
int count = 0;
|
||||
|
||||
/* Write Protect: active low */
|
||||
gpios->gpios[count].port = EXYNOS5_GPD1;
|
||||
gpios->gpios[count].port = EXYNOS5_GPX3;
|
||||
gpios->gpios[count].polarity = ACTIVE_LOW;
|
||||
gpios->gpios[count].value = gpio_get_value(GPIO_D16); // WP_GPIO
|
||||
gpios->gpios[count].value = gpio_get_value(GPIO_X30); // WP_GPIO
|
||||
strncpy((char *)gpios->gpios[count].name, "write protect",
|
||||
GPIO_MAX_NAME_LENGTH);
|
||||
count++;
|
||||
|
|
@ -54,7 +54,7 @@ void fill_lb_gpios(struct lb_gpios *gpios)
|
|||
/* Lid: active high */
|
||||
gpios->gpios[count].port = EXYNOS5_GPX3;
|
||||
gpios->gpios[count].polarity = ACTIVE_HIGH;
|
||||
gpios->gpios[count].value = gpio_get_value(GPIO_X35); // LID_GPIO
|
||||
gpios->gpios[count].value = gpio_get_value(GPIO_X34); // LID_GPIO
|
||||
strncpy((char *)gpios->gpios[count].name, "lid", GPIO_MAX_NAME_LENGTH);
|
||||
count++;
|
||||
|
||||
|
|
@ -62,7 +62,7 @@ void fill_lb_gpios(struct lb_gpios *gpios)
|
|||
gpios->gpios[count].port = EXYNOS5_GPX1;
|
||||
gpios->gpios[count].polarity = ACTIVE_LOW;
|
||||
gpios->gpios[count].value =
|
||||
gpio_get_value(GPIO_X13); // POWER_GPIO
|
||||
gpio_get_value(GPIO_X12); // POWER_GPIO
|
||||
strncpy((char *)gpios->gpios[count].name, "power",
|
||||
GPIO_MAX_NAME_LENGTH);
|
||||
count++;
|
||||
|
|
@ -91,7 +91,7 @@ int get_recovery_mode_switch(void)
|
|||
uint32_t ec_events;
|
||||
|
||||
/* The GPIO is active low. */
|
||||
if (!gpio_get_value(GPIO_Y10)) // RECMODE_GPIO
|
||||
if (!gpio_get_value(GPIO_X07)) // RECMODE_GPIO
|
||||
return 1;
|
||||
|
||||
ec_events = google_chromeec_get_events_b();
|
||||
|
|
|
|||
|
|
@ -49,9 +49,11 @@ static struct edid edid = {
|
|||
};
|
||||
|
||||
/* TODO: transplanted DP stuff, clean up once we have something that works */
|
||||
static enum exynos5_gpio_pin dp_pd_l = GPIO_Y25; /* active low */
|
||||
static enum exynos5_gpio_pin dp_rst_l = GPIO_X15; /* active low */
|
||||
static enum exynos5_gpio_pin dp_hpd = GPIO_X07; /* active high */
|
||||
static enum exynos5_gpio_pin dp_pd_l = GPIO_X35; /* active low */
|
||||
static enum exynos5_gpio_pin dp_rst_l = GPIO_Y77; /* active low */
|
||||
static enum exynos5_gpio_pin dp_hpd = GPIO_X26; /* active high */
|
||||
static enum exynos5_gpio_pin bl_pwm = GPIO_B20; /* active high */
|
||||
static enum exynos5_gpio_pin bl_en = GPIO_X22; /* active high */
|
||||
|
||||
static void exynos_dp_bridge_setup(void)
|
||||
{
|
||||
|
|
@ -115,14 +117,14 @@ static void exynos_dp_reset(void)
|
|||
static void backlight_pwm(void)
|
||||
{
|
||||
/*Configure backlight PWM as a simple output high (100% brightness) */
|
||||
gpio_direction_output(GPIO_B20, 1);
|
||||
gpio_direction_output(bl_pwm, 1);
|
||||
udelay(LCD_T6_DELAY_MS * 1000);
|
||||
}
|
||||
|
||||
static void backlight_en(void)
|
||||
{
|
||||
/* Configure GPIO for LCD_BL_EN */
|
||||
gpio_direction_output(GPIO_X30, 1);
|
||||
gpio_direction_output(bl_en, 1);
|
||||
}
|
||||
|
||||
//static struct video_info smdk5420_dp_config = {
|
||||
|
|
|
|||
|
|
@ -129,17 +129,17 @@ static void setup_graphics(void)
|
|||
|
||||
static void setup_gpio(void)
|
||||
{
|
||||
gpio_direction_input(GPIO_D16); // WP_GPIO
|
||||
gpio_set_pull(GPIO_D16, GPIO_PULL_NONE);
|
||||
gpio_direction_input(GPIO_X30); // WP_GPIO
|
||||
gpio_set_pull(GPIO_X30, GPIO_PULL_NONE);
|
||||
|
||||
gpio_direction_input(GPIO_Y10); // RECMODE_GPIO
|
||||
gpio_set_pull(GPIO_Y10, GPIO_PULL_NONE);
|
||||
gpio_direction_input(GPIO_X07); // RECMODE_GPIO
|
||||
gpio_set_pull(GPIO_X07, GPIO_PULL_NONE);
|
||||
|
||||
gpio_direction_input(GPIO_X35); // LID_GPIO
|
||||
gpio_set_pull(GPIO_X35, GPIO_PULL_NONE);
|
||||
gpio_direction_input(GPIO_X34); // LID_GPIO
|
||||
gpio_set_pull(GPIO_X34, GPIO_PULL_NONE);
|
||||
|
||||
gpio_direction_input(GPIO_X13); // POWER_GPIO
|
||||
gpio_set_pull(GPIO_X13, GPIO_PULL_NONE);
|
||||
gpio_direction_input(GPIO_X12); // POWER_GPIO
|
||||
gpio_set_pull(GPIO_X12, GPIO_PULL_NONE);
|
||||
}
|
||||
|
||||
static void setup_memory(struct mem_timings *mem, int is_resume)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue