<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/cmd/pwm.c, branch next</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<entry>
<title>cmd: pwm: fix typo 'eisable' -&gt; 'disable'</title>
<updated>2022-03-04T20:20:06+00:00</updated>
<author>
<name>Sébastien Szymanski</name>
<email>sebastien.szymanski@armadeus.com</email>
</author>
<published>2022-02-25T13:48:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=55fd1c442e747338604ef0075a4a888a40399ddc'/>
<id>55fd1c442e747338604ef0075a4a888a40399ddc</id>
<content type='text'>
Fixed misspelled 'disable' in help text.

Signed-off-by: Sébastien Szymanski &lt;sebastien.szymanski@armadeus.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed misspelled 'disable' in help text.

Signed-off-by: Sébastien Szymanski &lt;sebastien.szymanski@armadeus.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd: pwm: Remove additional pwm description</title>
<updated>2021-08-26T06:08:11+00:00</updated>
<author>
<name>Michal Simek</name>
<email>michal.simek@xilinx.com</email>
</author>
<published>2021-07-01T09:44:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a84d3b6c563445e9626d77f1504b707f054f77cf'/>
<id>a84d3b6c563445e9626d77f1504b707f054f77cf</id>
<content type='text'>
The first name is taken from command name that's why shouldn't be listed in
help. And commands shouldn't be listed with &lt;&gt; which means value but value
itself is command name.
Also add description for commands to make it clear what it does.

Before
pwm pwm &lt;invert&gt; &lt;pwm_dev_num&gt; &lt;channel&gt; &lt;polarity&gt;
pwm &lt;config&gt; &lt;pwm_dev_num&gt; &lt;channel&gt; &lt;period_ns&gt; &lt;duty_ns&gt;
...

After:
pwm invert &lt;pwm_dev_num&gt; &lt;channel&gt; &lt;polarity&gt; - invert polarity
pwm config &lt;pwm_dev_num&gt; &lt;channel&gt; &lt;period_ns&gt; &lt;duty_ns&gt; - config PWM
pwm enable &lt;pwm_dev_num&gt; &lt;channel&gt; - enable PWM output
pwm disable &lt;pwm_dev_num&gt; &lt;channel&gt; - disable PWM output

Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The first name is taken from command name that's why shouldn't be listed in
help. And commands shouldn't be listed with &lt;&gt; which means value but value
itself is command name.
Also add description for commands to make it clear what it does.

Before
pwm pwm &lt;invert&gt; &lt;pwm_dev_num&gt; &lt;channel&gt; &lt;polarity&gt;
pwm &lt;config&gt; &lt;pwm_dev_num&gt; &lt;channel&gt; &lt;period_ns&gt; &lt;duty_ns&gt;
...

After:
pwm invert &lt;pwm_dev_num&gt; &lt;channel&gt; &lt;polarity&gt; - invert polarity
pwm config &lt;pwm_dev_num&gt; &lt;channel&gt; &lt;period_ns&gt; &lt;duty_ns&gt; - config PWM
pwm enable &lt;pwm_dev_num&gt; &lt;channel&gt; - enable PWM output
pwm disable &lt;pwm_dev_num&gt; &lt;channel&gt; - disable PWM output

Signed-off-by: Michal Simek &lt;michal.simek@xilinx.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;

</pre>
</div>
</content>
</entry>
<entry>
<title>global: Convert simple_strtoul() with decimal to dectoul()</title>
<updated>2021-08-02T17:32:14+00:00</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2021-07-24T15:03:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0b1284eb52578e15ec611adc5fee1a9ae68dadea'/>
<id>0b1284eb52578e15ec611adc5fee1a9ae68dadea</id>
<content type='text'>
It is a pain to have to specify the value 10 in each call. Add a new
dectoul() function and update the code to use it.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is a pain to have to specify the value 10 in each call. Add a new
dectoul() function and update the code to use it.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd: pwm: Rework argc sanity checking</title>
<updated>2021-02-24T21:51:48+00:00</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2021-01-26T16:44:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=da7991b38e1f6d9b172a72650286be2558dc447f'/>
<id>da7991b38e1f6d9b172a72650286be2558dc447f</id>
<content type='text'>
Currently, we check argc in a number of places to make sure that we have
all of the required arguments for each of the pwm sub-commands.
However, there's at least one place where we've got dead code as we'll
never have argc == 0, due to checking that argc was at least 4 earlier
and having only subtracted 3.  Rework things so that when we have
determined our subcommand make sure we have the right number of
arguments for it, or error out.  This means we can stop checking against
argc again later.

Reported-by: Coverity (CID: 316601)
Cc: Pragnesh Patel &lt;pragnesh.patel@sifive.com&gt;
Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, we check argc in a number of places to make sure that we have
all of the required arguments for each of the pwm sub-commands.
However, there's at least one place where we've got dead code as we'll
never have argc == 0, due to checking that argc was at least 4 earlier
and having only subtracted 3.  Rework things so that when we have
determined our subcommand make sure we have the right number of
arguments for it, or error out.  This means we can stop checking against
argc again later.

Reported-by: Coverity (CID: 316601)
Cc: Pragnesh Patel &lt;pragnesh.patel@sifive.com&gt;
Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cmd: Add a pwm command</title>
<updated>2021-01-18T20:23:06+00:00</updated>
<author>
<name>Pragnesh Patel</name>
<email>pragnesh.patel@sifive.com</email>
</author>
<published>2020-12-22T06:00:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=9e9a530a61c01e412a239d8c211d5b1e26b578fa'/>
<id>9e9a530a61c01e412a239d8c211d5b1e26b578fa</id>
<content type='text'>
Add the command "pwm" for controlling the pwm channels. This
command provides pwm invert/config/enable/disable functionalities
via PWM uclass drivers

Signed-off-by: Pragnesh Patel &lt;pragnesh.patel@sifive.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the command "pwm" for controlling the pwm channels. This
command provides pwm invert/config/enable/disable functionalities
via PWM uclass drivers

Signed-off-by: Pragnesh Patel &lt;pragnesh.patel@sifive.com&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
