Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: serial: better explanation of the last init operations
Writing 0x00 to MDR1 is actually part of the "change the clock" operation: 1/ The value 0x7 is written to the MDR1 register, meaning: the hardware block is disabled 2/ The baud divisors and various PLLs are initialized 3/ Tje MDR1 register is set to 0x0, meaning: let's use the UART (instead of IRDA). So move this line to stick to the block initializing the baud rate. Also update the comment because the next line does not reset anything, but just clears the FIFOs and FIFOs counters. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
- Loading branch information
1 parent
1bf077b
commit 9526fa6
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
/* Soft reset */ | ||
/* Clear UART FIFOs */ | ||
reg_write(serial, UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT, UART_FCR); | ||
reg_write(serial, 0x00, UART_OMAP_MDR1); |