Re: [PATCH v2 2/7] fbdev: sm712fb: add 2D-related I/O headers and functions.

2019-04-02 Thread Tom Li
On Sun, Mar 31, 2019 at 06:25:58PM +0100, Sudip Mukherjee wrote: > On Fri, Mar 22, 2019 at 01:17:54PM +0800, Yifeng Li wrote: > > +#define DE_CTRL_COMMAND_SHIFT 16 > > +#define DE_CTRL_COMMAND_BITBLT 0x00 > > +#define DE_CTRL_COMMAND_SOLIDFILL 0x01

Re: [PATCH v2 2/7] fbdev: sm712fb: add 2D-related I/O headers and functions.

2019-03-31 Thread Sudip Mukherjee
On Fri, Mar 22, 2019 at 01:17:54PM +0800, Yifeng Li wrote: > This commit adds I/O macros and functions related to 2D opeartions. > A hunk of hardware register definitions are taken verbatim from > OpenBSD. > > In addition, a utility function pad_to_dword() is added to help > padding data for the 2

[PATCH v2 2/7] fbdev: sm712fb: add 2D-related I/O headers and functions.

2019-03-24 Thread Yifeng Li
This commit adds I/O macros and functions related to 2D opeartions. A hunk of hardware register definitions are taken verbatim from OpenBSD. In addition, a utility function pad_to_dword() is added to help padding data for the 2D engine. It accepts 3, 2, or 1 byte(s) of data, and pads it to a 32-b