From 694f88b42ee7d27e6d83c07ad8189dbeb19736f0 Mon Sep 17 00:00:00 2001 From: Rahix Date: Thu, 19 Nov 2020 20:43:48 +0100 Subject: [PATCH] patch: spi: Patch enumerated values for SPI prescaler Rename the values for the SPI clock prescaler from VAL_0xXX to more meaningful identifiers. Signed-off-by: Rahix --- patch/common/spi.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/patch/common/spi.yaml b/patch/common/spi.yaml index 67669c1..5a2dded 100644 --- a/patch/common/spi.yaml +++ b/patch/common/spi.yaml @@ -13,3 +13,10 @@ SPI*: access: read-only SPI2X: access: read-write + SPCR: + SPR: + _replace_enum: + FOSC_4_2: [0, "Fosc/4 if SPI2X == 0 else Fosc/2"] + FOSC_16_8: [1, "Fosc/16 if SPI2X == 0 else Fosc/8"] + FOSC_64_32: [2, "Fosc/64 if SPI2X == 0 else Fosc/32"] + FOSC_128_64: [3, "Fosc/128 if SPI2X == 0 else Fosc/64"] -- 2.49.0