Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30af5e91 authored by Saket Saurabh's avatar Saket Saurabh Committed by Stephen Boyd
Browse files

msm_serial_hs_hwreg.h: Correcting the even parity and odd parity bits



Currently parity bits are defined to be used with UART_DM_MR2
register with PARITY_MODE Bit as below :
EVEN_PARTIY = 1 and ODD_PARITY = 2
With these values, UART functionality doesn't work after enabling parity.
Hence adding correct used PARITY_MODE bits value as
EVEN_PARITY = 2 and ODD_PARITY = 1
after confirming with UART hardware programming guide.

CRs-Fixed: 410377
Change-Id: I1eeb599504285b4c153ad98f4b49fa2bfe6899b6
Signed-off-by: default avatarSaket Saurabh <ssaurabh@codeaurora.org>
parent 11907767
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -183,8 +183,8 @@ enum msm_hsl_regs {

/* Parity configuration */
#define NO_PARITY 0x0
#define EVEN_PARITY 0x1
#define ODD_PARITY 0x2
#define EVEN_PARITY 0x2
#define ODD_PARITY 0x1
#define SPACE_PARITY 0x3

#define UARTDM_IPR_STALE_TIMEOUT_MSB_BMSK 0xffffff80