summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehoon Kim <jh228.kim@samsung.com>2014-01-13 19:34:44 +0900
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-01-14 00:13:43 +0000
commit7c02461c5e582ac5e7643f26401e5e1ffd5af55c (patch)
treee4dd044687fb0857cc94c76bff402211d5aeba76
parent68d005b104e447f647cecec634cea97cef1e6ede (diff)
downloadchrome-ec-7c02461c5e582ac5e7643f26401e5e1ffd5af55c.tar.gz
Pit: Remove pwm and power_led task
From DV2 board of pit, we'll use 3 color-LED instead of power LED on keyboard. So, we have to remove pwm and power_led task from pit branch. BUG=chrome-os-partner:24855 TEST=Tested on the pi and pit board about all power status. BRANCH=pit Change-Id: I875567d8f7d544cb5b9d6057b94c26d1989b0c67 Signed-off-by: Jaehoon Kim <jh228.kim@samsung.com> Reviewed-on: https://chromium-review.googlesource.com/181607 Reviewed-by: Randall Spangler <rspangler@chromium.org> Tested-by: Randall Spangler <rspangler@chromium.org> Commit-Queue: Randall Spangler <rspangler@chromium.org>
-rw-r--r--board/pit/board.c10
-rw-r--r--board/pit/board.h8
-rw-r--r--board/pit/ec.tasklist1
3 files changed, 0 insertions, 19 deletions
diff --git a/board/pit/board.c b/board/pit/board.c
index afd8112f94..8f5ed840e7 100644
--- a/board/pit/board.c
+++ b/board/pit/board.c
@@ -15,8 +15,6 @@
#include "lid_switch.h"
#include "pmu_tpschrome.h"
#include "power.h"
-#include "pwm.h"
-#include "pwm_chip.h"
#include "registers.h"
#include "spi.h"
#include "timer.h"
@@ -93,7 +91,6 @@ BUILD_ASSERT(ARRAY_SIZE(gpio_list) == GPIO_COUNT);
/* Pins with alternate functions */
const struct gpio_alt_func gpio_alt_funcs[] = {
- {GPIO_A, 0x0004, GPIO_ALT_TIM2, MODULE_POWER_LED},
{GPIO_A, 0x00f0, GPIO_ALT_SPI, MODULE_SPI},
{GPIO_A, 0x0600, GPIO_ALT_USART, MODULE_UART},
{GPIO_B, 0x0cc0, GPIO_ALT_I2C, MODULE_I2C},
@@ -134,13 +131,6 @@ struct keyboard_scan_config keyscan_config = {
},
};
-/* PWM channels. Must be in the exactly same order as in enum pwm_channel. */
-const struct pwm_t pwm_channels[] = {
- {STM32_TIM(2), STM32_TIM_CH(3),
- PWM_CONFIG_ACTIVE_LOW, GPIO_LED_POWER_L},
-};
-BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT);
-
int pmu_board_init(void)
{
int ver, failure = 0;
diff --git a/board/pit/board.h b/board/pit/board.h
index c5ef19fbcd..52ef14ecaf 100644
--- a/board/pit/board.h
+++ b/board/pit/board.h
@@ -22,7 +22,6 @@
#define CONFIG_PMU_HARD_RESET
#define CONFIG_PMU_POWERINFO
#define CONFIG_PMU_TPS65090
-#define CONFIG_PWM
#define CONFIG_SPI
#define CONFIG_VBOOT_HASH
@@ -99,13 +98,6 @@ enum gpio_signal {
/* Number of GPIOs; not an actual GPIO */
GPIO_COUNT
};
-
-enum pwm_channel {
- PWM_CH_POWER_LED = 0,
- /* Number of PWM channels */
- PWM_CH_COUNT
-};
-
#endif /* !__ASSEMBLER__ */
#endif /* __BOARD_H */
diff --git a/board/pit/ec.tasklist b/board/pit/ec.tasklist
index dcdca4df28..9be4b0787b 100644
--- a/board/pit/ec.tasklist
+++ b/board/pit/ec.tasklist
@@ -16,7 +16,6 @@
*/
#define CONFIG_TASK_LIST \
TASK_ALWAYS(HOOKS, hook_task, NULL, LARGER_TASK_STACK_SIZE) \
- TASK_NOTEST(POWERLED, power_led_task, NULL, 256) \
TASK_ALWAYS(CHARGER, charger_task, NULL, TASK_STACK_SIZE) \
TASK_NOTEST(CHIPSET, chipset_task, NULL, TASK_STACK_SIZE) \
TASK_ALWAYS(HOSTCMD, host_command_task, NULL, TASK_STACK_SIZE) \