Commit 82d4c96b authored by Anas Nashif's avatar Anas Nashif
Browse files

pwm: unify driver names



Use same string for driver name used for binding and fix
sample app to work with multiple drivers, not only DW driver.

Change-Id: I4d40aa9d4e83fcf16dc883bb74c3f0e3e30e3502
Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent a7d33296
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,10 +27,10 @@ menuconfig PWM_DW

if PWM_DW

config PWM_DW_DEV_NAME
config PWM_DW_0_DRV_NAME
	string "DesignWare PWM Device Name"
	depends on PWM_DW
	default "PWM_DW"
	default "PWM_0"
	help
	  Specify the device name for the DesignWare PWM driver.

+4 −4
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ config PWM_K64_FTM_0
config PWM_K64_FTM_0_DEV_NAME
	string "K64 FTM PWM Module 0 Device Name"
	depends on PWM_K64_FTM_0
	default "PWM_K64_FTM0"
	default "PWM_0"
	help
	Specify the device name for the FTM0 source module.

@@ -159,7 +159,7 @@ config PWM_K64_FTM_1
config PWM_K64_FTM_1_DEV_NAME
	string "K64 FTM PWM Module 1 Device Name"
	depends on PWM_K64_FTM_1
	default "PWM_K64_FTM1"
	default "PWM_1"
	help
	Specify the device name for the FTM1 source module.

@@ -268,7 +268,7 @@ config PWM_K64_FTM_2
config PWM_K64_FTM_2_DEV_NAME
	string "K64 FTM PWM Module 2 Device Name"
	depends on PWM_K64_FTM_2
	default "PWM_K64_FTM2"
	default "PWM_2"
	help
	Specify the device name for the FTM2 source module.

@@ -377,7 +377,7 @@ config PWM_K64_FTM_3
config PWM_K64_FTM_3_DEV_NAME
	string "K64 FTM PWM Module 3 Device Name"
	depends on PWM_K64_FTM_3
	default "PWM_K64_FTM3"
	default "PWM_3"
	help
	Specify the device name for the FTM3 source module.

+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ config PWM_PCA9685_0
config PWM_PCA9685_0_DEV_NAME
	string "PCA9685 PWM chip #0 Device Name"
	depends on PWM_PCA9685_0
	default "PWM_P0"
	default "PWM_0"
	help
	  Specify the device name for the PCA9685 I2C-based PWM chip #0.

+1 −1
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ static struct pwm_dw_config pwm_dw_cfg = {
	.num_ports = PWM_DW_NUM_PORTS,
};

DEVICE_AND_API_INIT(pwm_dw_0, CONFIG_PWM_DW_DEV_NAME, pwm_dw_init,
DEVICE_AND_API_INIT(pwm_dw_0, CONFIG_PWM_DW_0_DRV_NAME, pwm_dw_init,
		    NULL, &pwm_dw_cfg,
		    SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
		    &pwm_dw_drv_api_funcs);
+0 −1
Original line number Diff line number Diff line
CONFIG_STDOUT_CONSOLE=y
CONFIG_PRINTK=y
CONFIG_PWM=y
CONFIG_PWM_DW=y
CONFIG_NANO_TIMERS=y
CONFIG_NANO_TIMEOUTS=y
Loading