Re: [U-Boot] [PATCH v2 21/51] x86: Add macros to clear and set I/O bits

2016-03-13 Thread Bin Meng
On Mon, Mar 14, 2016 at 1:10 PM, Bin Meng wrote: > On Sat, Mar 12, 2016 at 1:07 PM, Simon Glass wrote: >> The clrsetbits_...() macros are useful for working with memory mapped I/O. >> But they do not work with I/O space, as used on x86 machines. >> >> Add some macros to provide similar features f

Re: [U-Boot] [PATCH v2 21/51] x86: Add macros to clear and set I/O bits

2016-03-13 Thread Bin Meng
On Sat, Mar 12, 2016 at 1:07 PM, Simon Glass wrote: > The clrsetbits_...() macros are useful for working with memory mapped I/O. > But they do not work with I/O space, as used on x86 machines. > > Add some macros to provide similar features for I/O. > > Signed-off-by: Simon Glass > --- > > Change

[U-Boot] [PATCH v2 21/51] x86: Add macros to clear and set I/O bits

2016-03-11 Thread Simon Glass
The clrsetbits_...() macros are useful for working with memory mapped I/O. But they do not work with I/O space, as used on x86 machines. Add some macros to provide similar features for I/O. Signed-off-by: Simon Glass --- Changes in v2: - Use setio_32() instead of setio_le32(), etc. arch/x86/i