Re: [meta-intel] Xeon D1500 GPIO userspace access write error: No such device or address

2017-09-06 Thread Wold, Saul
On Fri, 2017-09-01 at 09:12 +0800, Lai Eddy wrote:
> I have just build and run Yocto(Pyro 2.3.1) Linux on my Xeon D1500
> board, 
> I want to use the SOC's GPIO pins for a push button, so I use
> "bitbake linux-yocto -c menuconfig" to enable the 
> "Device Drivers"-->"GPIO Support"-->"sysfs interface", and also
> enable the "Intel ICH GPIO"
> after the kernel boot on the board, there's a gpiochip available:
> # cd /sys/class/gpio/
> # ls
> exportgpiochip436  unexport
> # more gpiochip436/ngpio 
> 76
> but I got an error when I issue the command to export GPIO#1 
> # echo 436 > export
> -sh: echo: write error: No such device or address
> # echo 437 > export
> -sh: echo: write error: No such device or address
> 
> is there kernel miss configured or something wrong on the operation?
> 
Can you also verify with the output of dmesg that the gpio device is
initialized?

Sau!

> Eddy Lai
-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


[meta-intel] [ANNOUNCEMENT] meta-intel 8.0 for Yocto Project "rocko" 2.4_M3 (Milestone 3) now available

2017-09-06 Thread Tracy Graydon
All,

The meta-intel 8.0 layer for the Yocto Project 2.4 Milestone 3 “rocko" release 
is now available.

repo: git://git.yoctoproject.org/meta-intel branch: master
tag: 8.0-rocko-2.4_M3
hash: 8d44e72d6eff173d96eb5b2571e8c1e10de53816
download: 
http://downloads.yoctoproject.org/releases/yocto/milestones/yocto-2.4_M3/meta-intel-8.0-rocko-2.4_M3.tar.bz2
md5sum: 881788c2aeb272a9c1c826a97c8da6e6

Known issue: 
The hddimg's fail to boot or install correct with m3 and
meta-intel BSP machines
https://bugzilla.yoctoproject.org/show_bug.cgi?id=12048

WIC images do boot correctly, and this issue has been fixed in OE-Core
master.


Tracy Graydon 
Intel Corporation
-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel


Re: [meta-intel] change hostctrl2_presetvalueenable default value

2017-09-06 Thread Tan, Jui Nee
You have to modify in the following file in the yocto build to enable preset 
value:

tmp/work-shared//kernel-source/drivers/mmc/host/sdhci.c

The following function does the enabling of preset value:

static void sdhci_enable_preset_value(struct sdhci_host *host, bool enable)
{
u16 ctrl;

/* Host Controller v3.00 defines preset value registers */
if (host->version < SDHCI_SPEC_300)
return;

ctrl = sdhci_readw(host, SDHCI_HOST_CONTROL2);

/*
 * We only enable or disable Preset Value if they are not already
 * enabled or disabled respectively. Otherwise, we bail out.
 */
if (enable && !(ctrl & SDHCI_CTRL_PRESET_VAL_ENABLE)) {
ctrl |= SDHCI_CTRL_PRESET_VAL_ENABLE;
sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);
host->flags |= SDHCI_PV_ENABLED;
} else if (!enable && (ctrl & SDHCI_CTRL_PRESET_VAL_ENABLE)) {
ctrl &= ~SDHCI_CTRL_PRESET_VAL_ENABLE;
sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);
host->flags &= ~SDHCI_PV_ENABLED;
}
}

The function can be called in the following way:

sdhci_enable_preset_value(host, true);

Thanks,
Juinee

From: meta-intel-boun...@yoctoproject.org 
[mailto:meta-intel-boun...@yoctoproject.org] On Behalf Of Francesco Camarda 
(fcamarda)
Sent: Tuesday, August 8, 2017 6:24 PM
To: meta-intel@yoctoproject.org
Subject: [meta-intel] change hostctrl2_presetvalueenable default value


Hi,

>From of the Apollo Lake SoC External Design Specification (EDS) Volume 2 of 
>3
> document # 557556 (on pages from 4511 to 4515) it is possible to change the 
>driver strength that depends on the setting of bit 15 
>(hostctrl2_presetvalueenable).
If Preset Value Enable = 0, the driver strength is set by the host driver. If 
Preset Value Enable = 1, the driver strength is automatically set to the values 
specified in the Capabilities Register (capabilities)-Offset 40h (refer also to 
Capabilities Register (capabilities)-Offset 40h).



Which of the file of the build (EC31) I should modify to put the Preset Value 
Enable = 1?





Thanks & Regards,

Francesco


-- 
___
meta-intel mailing list
meta-intel@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-intel