Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: pwm: pwm-axi-pwmgen: Add support for 16 channels #2336

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

alin724
Copy link
Contributor

@alin724 alin724 commented Nov 12, 2023

This commit will add support for up to 16 PWM output channels and update to the corresponding [period,width,offset] regs' addresses.
HDL repo PR;

Add support for up to 16 PWM output channels and update
to the corresponding [period,width,offset] regs' addresses

Signed-off-by: Alin-Tudor Sferle <[email protected]>
@alin724 alin724 force-pushed the update_pwm_gen_16ch branch from e84fbb4 to 0f81415 Compare November 12, 2023 11:28
@nunojsa nunojsa requested a review from a team November 13, 2023 08:15
@@ -196,7 +196,7 @@ static int axi_pwmgen_setup(struct pwm_chip *chip)
}

pwm->chip.npwm = axi_pwmgen_read(pwm, AXI_PWMGEN_REG_NPWM);
if (pwm->chip.npwm > 4)
if (pwm->chip.npwm > 16)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit: Maybe add a define for the number of channels since you're doing this change...

Copy link
Contributor

@amiclaus amiclaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ltgm, after rest of the comments are addressed.

@nunojsa
Copy link
Collaborator

nunojsa commented Nov 13, 2023

Well, 6h went so I will merge this... If you want to make the change to have a #define, we can always have a follow up PR

@nunojsa nunojsa merged commit 25afd8b into master Nov 13, 2023
@nunojsa nunojsa deleted the update_pwm_gen_16ch branch November 13, 2023 14:29
@alin724
Copy link
Contributor Author

alin724 commented Nov 16, 2023

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants