[PATCH RESEND v5 2/2] i2c: spacemit: add support for SpacemiT K1 SoC
Wolfram Sang
wsa+renesas at sang-engineering.com
Sun Mar 2 22:08:41 PST 2025
> +/* spacemit i2c registers */
> +#define SPACEMIT_ICR 0x0 /* Control Register */
> +#define SPACEMIT_ISR 0x4 /* Status Register */
> +#define SPACEMIT_IDBR 0xc /* Data Buffer Register */
> +#define SPACEMIT_IBMR 0x1c /* Bus monitor register */
> +
> +/* register SPACEMIT_ICR fields */
> +#define SPACEMIT_CR_START BIT(0) /* start bit */
> +#define SPACEMIT_CR_STOP BIT(1) /* stop bit */
> +#define SPACEMIT_CR_ACKNAK BIT(2) /* send ACK(0) or NAK(1) */
> +#define SPACEMIT_CR_TB BIT(3) /* transfer byte bit */
This looks like a lot like a variant of the i2c-pxa register set. Has it
been considered to reuse that driver?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20250303/846f2c2a/attachment.sig>
More information about the linux-riscv
mailing list