LX2160 - how to disable sdhc2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LX2160 - how to disable sdhc2

441 Views
Lori1
Contributor I

I do not use SDHC2. We modified below rcw setting and Device Disable Register 1 (DEVDISR1).
RCW:
      SDHC2_BASE_PMUX=2
      SDHC2_DAT74_PMUX=2
Device Disable Register 1 (DEVDISR1) set 0x1e00070 = 0x400

After rebuild and fuse into sd card, it also check mmc1. Please help to check if any other register needs to set.

[ 13.538856] mmc1: Timeout waiting for hardware cmd interrupt. [ 13.544601] mmc1: sdhci: ============ SDHCI REGISTER DUMP =========== [ 13.551036] mmc1: sdhci: Sys addr: 0x00000000 | Version: 0x00002202 [ 13.557470] mmc1: sdhci: Blk size: 0x00000000 | Blk cnt: 0x00000000 [ 13.563902] mmc1: sdhci: Argument: 0x00000c00 | Trn mode: 0x00000000 [ 13.570335] mmc1: sdhci: Present: 0x00080009 | Host ctl: 0x00000020 [ 13.576767] mmc1: sdhci: Power: 0x00000000 | Blk gap: 0x00000000 [ 13.583200] mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x000040c8 [ 13.589632] mmc1: sdhci: Timeout: 0x00000000 | Int stat: 0x00000000 [ 13.596064] mmc1: sdhci: Int enab: 0x007f1007 | Sig enab: 0x007f1003 [ 13.602496] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00002202 [ 13.608928] mmc1: sdhci: Caps: 0x34fa0000 | Caps_1: 0x0000af00 [ 13.615360] mmc1: sdhci: Cmd: 0x0000341a | Max curr: 0x00000000 [ 13.621791] mmc1: sdhci: Resp[0]: 0x00000000 | Resp[1]: 0x00000000 [ 13.628223] mmc1: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000 [ 13.634654] mmc1: sdhci: Host ctl2: 0x00000000 [ 13.639091] mmc1: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000000000000000 [ 13.646216] mmc1: sdhci: ============================================

0 Kudos
Reply
2 Replies

432 Views
Lori1
Contributor I

I tried it on LX2160ardb_rev2 board

0 Kudos
Reply

375 Views
yipingwang
NXP TechSupport
NXP TechSupport

In Linux dts file arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts, please do the following modification.

&esdhc1 {
mmc-hs200-1_8v;
mmc-hs400-1_8v;
bus-width = <8>;
status = "okay";
};

=>

&esdhc1 {
mmc-hs200-1_8v;
mmc-hs400-1_8v;
bus-width = <8>;
status = "disabled";
};

0 Kudos
Reply