X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=board%2Fkaro%2Ftx6%2Frn5t618.c;h=06dffa858589fdd3b6beb1e8fe51e7e5910c4459;hp=c68fd30713d4f7bc08bf675f1a57ff9494dd7a60;hb=1f2979b99ea4206881f280fe3ed12bc67c36ece7;hpb=0ec3e0464e923142c845b23b1fc34dc9310540db diff --git a/board/karo/tx6/rn5t618.c b/board/karo/tx6/rn5t618.c index c68fd30713..06dffa8585 100644 --- a/board/karo/tx6/rn5t618.c +++ b/board/karo/tx6/rn5t618.c @@ -72,6 +72,7 @@ static struct rn5t618_regs { u8 val; u8 mask; } rn5t618_regs[] = { +#if CONFIG_TX6_REV == 2 { RN5T618_NOETIMSET, 0, }, { RN5T618_DC1DAC, VDD_CORE_VAL, }, { RN5T618_DC2DAC, VDD_SOC_VAL, }, @@ -85,6 +86,23 @@ static struct rn5t618_regs { { RN5T618_LDO3DAC, VDD_HIGH_VAL, }, { RN5T618_LDORTCDAC, VDD_RTC_VAL, }, { RN5T618_LDORTC1_SLOT, 0x0f, ~0x3f, }, +#elif CONFIG_TX6_REV == 3 + { RN5T618_NOETIMSET, 0, }, + { RN5T618_DC1DAC, VDD_CORE_VAL, }, + { RN5T618_DC2DAC, VDD_SOC_VAL, }, + { RN5T618_DC3DAC, VDD_DDR_VAL, }, + { RN5T618_DC1DAC_SLP, VDD_CORE_VAL_LP, }, + { RN5T618_DC2DAC_SLP, VDD_SOC_VAL_LP, }, + { RN5T618_DC3DAC_SLP, VDD_DDR_VAL_LP, }, + { RN5T618_LDOEN1, 0x01f, ~0x1f, }, + { RN5T618_LDOEN2, 0x10, ~0x30, }, + { RN5T618_LDODIS, 0x00, }, + { RN5T618_LDO3DAC, VDD_HIGH_VAL, }, + { RN5T618_LDORTCDAC, VDD_RTC_VAL, }, + { RN5T618_LDORTC1_SLOT, 0x0f, ~0x3f, }, +#else +#error Unsupported TX6 module revision +#endif }; static int rn5t618_setup_regs(struct rn5t618_regs *r, size_t count)