Hi all,
I have a clone of beagleboard with TIWI wifi module on it connected to
omap via mmc sdio. I'm using a 2.6.39 kernel. Now I'm trying to
understand how to tune a regulators in initialization code to allow
omap to recognize wifi module. I tried to use "vmmc", but mmc core
cannot find it and start using dummy regulator. I think it may have
some influence on detecting of the wifi module (surely a bad
influence, it is not detected).
dmesg output and some part of init code are provided below.
Any advises and speculations about this problem are welcome.
A part of initialization code:
static struct regulator_consumer_supply blueshark_vmmc2_supply =
REGULATOR_SUPPLY("vmmc", "omap_hsmmc.1");
static struct regulator_init_data blueshark_vmmc2 = {
.constraints = {
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
},
.num_consumer_supplies = 1,
.consumer_supplies = &blueshark_vmmc2_supply,
};
static struct fixed_voltage_config blueshark_vwlan = {
.supply_name = "vwl1271",
.microvolts = 1800000, /* 1.8V */
.gpio = OMAP_BLUESHARK_WLAN_EN_GPIO,
.startup_delay = 70000, /* 70ms */
.enable_high = 1,
.enabled_at_boot = 0,
.init_data = &blueshark_vmmc2,
};
static struct platform_device blueshark_vwlan_device = {
.name = "reg-fixed-voltage",
.id = 1,
.dev = {
.platform_data = &blueshark_vwlan,
},
};
dmesg output:
michael@fatdog:~/Proj/core_2.6.39/test_results$ cat
boot_log_2.6.39_4.txt | grep mmc
Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw
vram=14M mpurate=600 rootfstype=ext3 rootwait mem=99M@0x80000000
mem=128M@0x88000000 omapfb.mode=dvi:1280x720MR-16@60
omapdss.def_disp=dvi omap_vout.vi
_regulator_get: omap_hsmmc.0 supply vmmc_aux not found, using dummy
regulator
_regulator_get: omap_hsmmc.1 supply vmmc not found, using dummy
regulator
_regulator_get: omap_hsmmc.1 supply vmmc_aux not found, using dummy
regulator
Waiting for root device /dev/mmcblk0p2...
mmc0: new high speed SD card at address e624
mmcblk0: mmc0:e624 SU02G 1.84 GiB
mmcblk0: detected capacity change from 0 to 1977614336
mmcblk0: p1 p2
omap_hsmmc omap_hsmmc.1: could not set regulator OCR (-22)
EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running
e2fsck is recommended
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
omap_hsmmc omap_hsmmc.1: could not set regulator OCR (-22)