mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 09:31:51 +00:00
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>
This commit is contained in:
committed by
chrome-internal-fetch
parent
68d005b104
commit
7c02461c5e
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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) \
|
||||
|
||||
Reference in New Issue
Block a user