Commit 49bf9b22b76c934b71bdf9cbcc028938a8cc0d86
Committed by
Afzal Mohammed
1 parent
72e9d52328
Exists in
master
ARM:omap:am33xx: avoid write-protection reading for beaglebone
Beaglebone has Micro-SD adpater which doesnt use write-protect pins. So inform mmc layer according. Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
arch/arm/mach-omap2/board-am335xevm.c
... | ... | @@ -1286,6 +1286,9 @@ |
1286 | 1286 | { |
1287 | 1287 | pr_info("The board is a AM335x Beaglebone.\n"); |
1288 | 1288 | |
1289 | + /*Beagle Bone has Micro-SD slot which doesn't have Write Protect pin */ | |
1290 | + am335x_mmc[0].gpio_wp = -EINVAL; | |
1291 | + | |
1289 | 1292 | _configure_device(LOW_COST_EVM, beaglebone_dev_cfg, PROFILE_NONE); |
1290 | 1293 | |
1291 | 1294 | phy_register_fixup_for_uid(BBB_PHY_ID, BBB_PHY_MASK, |