- 13 Oct, 2017 1 commit
-
-
Bora Guvendik authored
TEST=Boot to OS using Intel NVMe SSD Pro 6 Change-Id: I01da152eae5ef640613c2f94d176d33f24a09530 Signed-off-by:
Bora Guvendik <bora.guvendik@intel.com> Reviewed-on: https://chromium-review.googlesource.com/706106 Reviewed-by:
Aaron Durbin <adurbin@chromium.org>
-
- 26 Sep, 2017 1 commit
-
-
Bora Guvendik authored
Add cnl rvp board and config files BRANCH=None BUG=None TEST=Boot to OS via SATA/eMMC/USB on cnl-u rvp Change-Id: I7c75e47f7d90a22ce34bb1b62d3b54a2eab71ad7 Signed-off-by:
Bora Guvendik <bora.guvendik@intel.com> Reviewed-on: https://chromium-review.googlesource.com/667873 Reviewed-by:
Aaron Durbin <adurbin@chromium.org> Reviewed-by:
Furquan Shaikh <furquan@chromium.org> Reviewed-by:
Nick Vaccaro <nvaccaro@chromium.org>
-
- 19 Aug, 2017 1 commit
-
-
Caveh Jalali authored
just cleaning up some spurious execute permissions on *.c, */Makefile.inc and defconfig. i don't think repo upload even allows this any more.... BUG=none BRANCH=none TEST=rebuilt depthcharge for reef (not that that acutally tests this) verified all *.c, Makefile.inc, defconfig files in depthcharge tree no longer have the X bit set. Change-Id: I327ec8fdc8ce7ab74799c02f689c014c4fb607d7 Signed-off-by:
Caveh Jalali <caveh@google.com> Reviewed-on: https://chromium-review.googlesource.com/620280 Reviewed-by:
Julius Werner <jwerner@chromium.org>
-
- 24 Jun, 2017 1 commit
-
-
Naresh G Solanki authored
Enable boot from sata drives. Change-Id: I653cab96e4ea816032d5d9b427ae1d196032b6e4 Signed-off-by:
Naresh G Solanki <naresh.solanki@intel.com> Reviewed-on: https://chromium-review.googlesource.com/505795 Commit-Ready: Naresh Solanki <naresh.solanki@intel.com> Tested-by:
Naresh Solanki <naresh.solanki@intel.com> Reviewed-by:
Furquan Shaikh <furquan@chromium.org>
-
- 20 Jun, 2017 1 commit
-
-
Naresh G Solanki authored
Add board support for kblrvp. This patch adds basic skeleton for kblrvp board such as fmap.dts, defconfig and the board.c BUG=None TEST= emerge-kblrvp depthcharge Change-Id: I88efa794cfc6342fab0fbc486b3e35bb9adb0620 Signed-off-by:
Naresh G Solanki <naresh.solanki@intel.com> Reviewed-on: https://chromium-review.googlesource.com/465027 Commit-Ready: Naresh Solanki <naresh.solanki@intel.com> Tested-by:
Naresh Solanki <naresh.solanki@intel.com> Reviewed-by:
Furquan Shaikh <furquan@chromium.org>
-
- 26 May, 2016 1 commit
-
-
Xing Zheng authored
Because the GpioCfg is the private structure and only is used on the Intel platform. The max98357a is a common DAC driver, it should be referred by any other SoCs. We need to use the GpioOps to instead of it. BRANCH=none BUG=chrome-os-partner:52172 TEST=boot kevin rev1, press ctrl+u and hear the beep voice. Change-Id: I297790ab4eba3f217d2152cc7f45baf51c3ffc3f Signed-off-by:
Xing Zheng <zhengxing@rock-chips.com> Reviewed-on: https://chromium-review.googlesource.com/345744 Commit-Ready: Vadim Bendebury <vbendeb@chromium.org> Tested-by:
Vadim Bendebury <vbendeb@chromium.org> Reviewed-by:
Vadim Bendebury <vbendeb@chromium.org>
-
- 03 May, 2016 1 commit
-
-
Julius Werner authored
Depthcharge's current cros_ec code doesn't really match the object-oriented one-instance-per-device design of its other drivers. Instead, it is a singleton design with hardcoded support for only up to one additional chip by passing devidx=1 to certain functions. In addition, the vboot callback implementations for EC software sync are tightly interwoven with the cros_ec driver. This patch changes that code to be more in line with depthcharge's other drivers. EC and PD chips are represented as separate objects (sharing the same bus object), and the connection to vboot callbacks is abstracted in a VbootEcOps superclass. This is intended to make it easier to hook up other embedded controllers that don't run the Chrome EC embedded OS to vboot's software sync mechanism, such as the ANX7688 used on Elm. (This is intended to be the first step. We may or may not decide that it makes sense to also make changes to vboot code and the callback interface later.) Also try to clean up namespacing a bit (cros_ec_... only for exported functions), only export functions that are really needed by other files, and remove some unused code. BUG=chrome-os-partner:52434 TEST=FAFT on Oak. Manually triggered software sync both after cold reboot and when the EC was already in RW. Change-Id: I6666c4382ef40d1211995101c97a52346963fa4a Signed-off-by:
Julius Werner <jwerner@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/341542 Reviewed-by:
Aaron Durbin <adurbin@chromium.org>
-
- 24 Mar, 2016 1 commit
-
-
Patrick Georgi authored
checkpatch actually looks for this, and coreboot has a ready-to-use script for that purpose, so... BUG=none BRANCH=none TEST=none Change-Id: Ic8cfb3191c10876d86b0a29ade0fcf8bc53c0604 Signed-off-by:
Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://chromium-review.googlesource.com/333904 Commit-Ready: Patrick Georgi <pgeorgi@chromium.org> Tested-by:
Patrick Georgi <pgeorgi@chromium.org> Reviewed-by:
Stefan Reinauer <reinauer@chromium.org>
-
- 21 Mar, 2016 1 commit
-
-
Naveen Krishna Chatradhi authored
With the new Silego fix on the DVT boards. We can remove the software workaround for LARS boards. BUG=chrome-os-partner:49847 BRANCH=glados TEST=manual testing (in additon to FAFT) 1) set GBB flag 0x300 2) enter recovery mode with: dut-control power_state:rec 3) press Ctrl+D on keyboard to transition to developer mode 4) also verify that when the GBB flag is not set that if the EC is in RW and steps 2-3 are executed that it does not allow entry into developer mode 5) also verify that keyboard controlled recovery mode does clear the EC_IN_RW flag properly and does not need GBB flag to be set. Change-Id: I14dbb7c0731853065dce724a6c3294626c2dd71d Signed-off-by:
Naveen Krishna Chatradhi <naveenkrishna.ch@intel.com> Reviewed-on: https://chromium-review.googlesource.com/331366 Commit-Ready: Naveenkrishna Ch <naveenkrishna.ch@intel.com> Tested-by:
Naveenkrishna Ch <naveenkrishna.ch@intel.com> Reviewed-by:
Duncan Laurie <dlaurie@chromium.org>
-
- 04 Feb, 2016 1 commit
-
-
Naveen Krishna Chatradhi authored
On skylake boards the silego chip is unable to see EC resets and clear the latch on EC_IN_RW state. This means that FAFT is unable to switch to developer mode because VbExTrustEC() will always fail. This only matters for FAFT because entering recovery mode with the keyboard still works properly and this VbExTrustEC() callback is only ever used in the developer mode transition screen. As such, use the existing FAFT override GBB flag that is used for similar workarounds in the firmware to enable FAFT testing. This is a bit messy, using an overridden flag to check at runtime, because GBB flags are not available in the board_setup() function as they have not been read yet and due to the structure of RO/RW depthcharge it is not convenient to change that behavior. This is a port for Kunimitsu and lars boards following CL for https://chromium-review.googlesource.com/#/c/319245/ BUG=chrome-os-partner:47648 BRANCH=none TEST=manual testing (in additon to FAFT) 1) set GBB flag 0x300 2) enter recovery mode with: dut-control power_state:rec 3) press Ctrl+D on keyboard to transition to developer mode 4) also verify that when the GBB flag is not set that if the EC is in RW and steps 2-3 are executed that it does not allow entry into developer mode 5) also verify that keyboard controlled recovery mode does clear the EC_IN_RW flag properly and does not need GBB flag to be set. Change-Id: Icd120cbff4d19b51f193c5ed9c40ec3098820f5e Signed-off-by:
Naveen Krishna Chatradhi <naveenkrishna.ch@intel.com> Reviewed-on: https://chromium-review.googlesource.com/319208 Commit-Ready: Divya Jyothi <divya.jyothi@intel.com> Tested-by:
Divagar Mohandass <divagar.mohandass@intel.com> Reviewed-by:
Duncan Laurie <dlaurie@chromium.org>
-
- 13 Jan, 2016 1 commit
-
-
Rohit Ainapure authored
Add support for using GPIO based I2S output to MAX98357A audio amplifiers. GPP_F0, GPP_F1, GPP_F2 are used to driver the I2S signals. They are configured as outputs and both the left & the right channels are used. GPP_F23 is used to activate the buffer to isolate the I2S signals from PCH. GPP_B2 is used for SD_MODE and configued as output. BUG=chrome-os-partner:47124 BRANCH=None TEST=test audio beep on lars using devbeep and other usecase. Verify Audio codec gets detected and play works. Change-Id: Ie0417cade0653f390c938beac6aea0e197e7bbe7 Signed-off-by:
Rohit Ainapure <rohit.m.ainapure@intel.com> Signed-off-by:
Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://chromium-review.googlesource.com/318362 Reviewed-by:
Aaron Durbin <adurbin@chromium.org>
-
- 03 Dec, 2015 1 commit
-
-
Subrata Banik authored
LARs design don't have SD Connector over SD 3.0 Ctrl rather using USB interface, hence need to disable SDHC bootable entry from list. BUG=chrome-os-partner:48190 BRANCH=None TEST=Build & boot LARs. SD over USB booting fine Change-Id: I420d4471163a574c656c29ccede0b39531c31850 Signed-off-by:
Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://chromium-review.googlesource.com/315381 Reviewed-by:
Aaron Durbin <adurbin@chromium.org>
-
- 09 Oct, 2015 1 commit
-
-
david authored
Cloned files from kunimitsu with name changes. BUG=None TEST=emerge-lars depthcharge Change-Id: I86af18ea4f5ce38b915a4e7abddd1b4f132f0d66 Signed-off-by:
David Wu <David_Wu@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/304453 Commit-Ready: David Wu <david_wu@quantatw.com> Tested-by:
David Wu <david_wu@quantatw.com> Reviewed-by:
Shawn N <shawnn@chromium.org>
-
- 10 Sep, 2015 1 commit
-
-
Duncan Laurie authored
Make the glados and kunimitsu board setup files the same since they are both doing the same things. This may reduce confusion when porting to a new skylake board in the future. BUG=chrome-os-partner:40635 BRANCH=none TEST=emerge-glados depthcharge && emerge-kunimitsu depthcharge Change-Id: I197dac9e13dcfc7d9ef093e1ac9b592027ea34b6 Signed-off-by:
Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/298265 Reviewed-by:
Aaron Durbin <adurbin@chromium.org>
-
- 27 Aug, 2015 2 commits
-
-
Aaron Durbin authored
Use the correct power ops. BUG=chrome-os-partner:44562 BRANCH=None TEST=None Change-Id: Ia4a1fa6526d42c08474f931952bc9ad95c339031 Signed-off-by:
Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/295245
-
Naveen Krishna Chatradhi authored
This patch install the flag for EC_IN_RW for kunimitsu board. While at it, remove the AHCI initialization for Kunimitsu. BRANCH=none BUG=chrome-os-partner:43707 TEST=built for kunimitsu ran test_that --board=kunimitsu 10.223.211.42 firmware_DevMode Pass Change-Id: I62f940f4a24ec6f158513ec00b303dd02992cb53 Signed-off-by:
Naveen Krishna Chatradhi <naveenkrishna.ch@intel.com> Reviewed-on: https://chromium-review.googlesource.com/294749 Commit-Ready: Wenkai Du <wenkai.du@intel.com> Tested-by:
Wenkai Du <wenkai.du@intel.com> Reviewed-by:
Aaron Durbin <adurbin@chromium.org>
-
- 21 Aug, 2015 1 commit
-
-
Wenkai Du authored
Fixed TPM and incorrectly configured EC driver. BUG=chrome-os-partner:44214 TEST=Verify depthcharge prints EC ID on boot up BRANCH=None Change-Id: I4875abf1489ce7353ad9d72733a42315d49bd67f Signed-off-by:
Wenkai Du <wenkai.du@intel.com> Reviewed-on: https://chromium-review.googlesource.com/294764 Reviewed-by:
Duncan Laurie <dlaurie@chromium.org> Reviewed-by:
Aaron Durbin <adurbin@chromium.org>
-
- 14 Aug, 2015 1 commit
-
-
Wenkai Du authored
Disable HS200 on the eMMC because it is not working on some SKUs which have different eMMC. BUG=chrome-os-partner:43534 BRANCH=none TEST=Boot eMMC on Kunimitsu Fab3 Change-Id: I64c838ff57a13fd97c9304074b8abbb9c857a691 Signed-off-by:
Wenkai Du <wenkai.du@intel.com> Reviewed-on: https://chromium-review.googlesource.com/293810 Reviewed-by:
Duncan Laurie <dlaurie@chromium.org>
-
- 27 May, 2015 1 commit
-
-
Neeraj Tayal authored
BRANCH=None BUG=chrome-os-partner:40452 TEST=With other pending SKL RVP patches in series, built & booted on Kunimitsu Fab 2 board Change-Id: Ief734f7d9e58e5c03cfa45864418ec4c4f773f39 Signed-off-by:
Neeraj Tayal <neeraj.tayal@intel.com> Reviewed-on: https://chromium-review.googlesource.com/272777 Reviewed-by:
Aaron Durbin <adurbin@chromium.org>
-
- 04 Apr, 2015 1 commit
-
-
Shawn Nematbakhsh authored
Add read / write byte sequence function pointers to accomodate variant protocols. Currently these functions are only implemented for LPC. BUG=chrome-os-partner:38224 TEST=Manual on Samus. Verify system boots cleanly in normal mode and successfully boots image in recovery mode. BRANCH=None Change-Id: Ib056afa55256fbc68ddc791f781796def71b3538 Signed-off-by:
Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/263766 Reviewed-by:
Duncan Laurie <dlaurie@chromium.org>
-
- 11 Mar, 2015 1 commit
-
-
Lee Leahy authored
Add necessary files to build depthcharge for sklrvp. BRANCH=none BUG=None TEST=Build and run on sklrvp Change-Id: I7c9fdd0a3886b08b2add5c829202226b2e0517d2 Signed-off-by:
Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://chromium-review.googlesource.com/258581 Reviewed-by:
Aaron Durbin <adurbin@chromium.org> Commit-Queue: Leroy P Leahy <leroy.p.leahy@intel.com> Tested-by:
Leroy P Leahy <leroy.p.leahy@intel.com>
-
- 11 Feb, 2015 1 commit
-
-
Erik Bjorge authored
Initial files for the glados board. BRANCH=None BUG=None TEST=Build depthcharge for glados Change-Id: I59e7edf34db4a40401b7ceaf91405f1278f27e03 Signed-off-by:
Erik Bjorge <erik.c.bjorge@intel.com> Reviewed-on: https://chromium-review.googlesource.com/248302 Reviewed-by:
Shawn N <shawnn@chromium.org>
-
- 02 Dec, 2014 1 commit
-
-
Julius Werner authored
We have always had a 'port' field in struct cb_gpio that contains some kind of platform specific description of the GPIO, but until now we have never made use of it. Instead, depthcharge just relies on the values coreboot read and pretends they never change. For some GPIOs (especially those which aren't actually GPIOs anymore like the dev switch), this behavior makes sense... but for others like the power button, it absolutely doesn't. In these cases depthcharge boards always had to override the flag manually with another flag_replace() after sysinfo_install_flags(), which is easy to forget. In addition, these GPIOs often like to change with board revisions, requiring developers to not only specify them twice (in coreboot and depthcharge) but also remember to apply all changes on new board revisions to both repositories. This patch redesigns the sysinfo GPIO API. Boards can now pass a platform-specific converter function that can create a depthcharge GPIO from the description passed in the coreboot table. It implements exemplary support for the new feature on Tegra- and Rockchip-based boards, while all others will still work the old way (emitting a warning). Over time, all current platforms should change to the new model and redundant GPIO definitions should become a thing of the past. (Also fix rush_ryu's explicit use of the sysinfo GPIO API to work with the new functions, and implement a stopgap wrapper for Storm. It's not yet possible to add full support to Storm since the Qualcomm drivers don't support the basic depthcharge GPIO API.) CQ-DEPEND=CL:231222 BRANCH=None BUG=None TEST=Booted on Veyron_Pinky, Nyan_Blaze and Falco. Made sure that the power button shuts the system down from depthcharge. Compiled for Storm and Rush_Ryu. Change-Id: I532ff1e5cb0912bd2c0764deedd8448ae81023d0 Signed-off-by:
Julius Werner <jwerner@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/231250 Reviewed-by:
Aaron Durbin <adurbin@chromium.org>
-
- 23 Jan, 2014 1 commit
-
-
Gabe Black authored
Use die_if and assert to catch errors in *_set_ops, and to make sure ops are set in functions that use them. These are from programming mistakes, and the calling code can't really compensate for them and shouldn't try. BUG=None TEST=Built and booted on nyan. Built for all other affected platforms. BRANCH=None Change-Id: Ib2b6d59bc3953c35719079f045155d9203ef9085 Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/183173 Reviewed-by:
Gabe Black <gabeblack@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org>
-
- 22 Jan, 2014 1 commit
-
-
Gabe Black authored
If there are errors setting up flags, that's a programming error which must be corrected. There's no reason to return an error, because that's not the sort of problem the calling code will be able to or should try to recover from. BUG=None TEST=Built and booted on nyna. Built for all other affected boards. BRANCH=None Change-Id: Idedcf9f55f2c60c1634bf22f5bb6c9e2187336c8 Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/183172 Reviewed-by:
Julius Werner <jwerner@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org>
-
- 04 Dec, 2013 1 commit
-
-
Gabe Black authored
Since the new_* functions can't fail any more and any failure they might have reported can be handled using die and die_if, we don't need to check their return value any more. Rip all those checks out. BUG=None TEST=Built and booted on nyan, built for all platforms. BRANCH=None Change-Id: I881675fc3eb2121c6570526b2681553291908284 Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/177846 Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org> Reviewed-by:
Gabe Black <gabeblack@chromium.org>
-
- 20 Sep, 2013 2 commits
-
-
Gabe Black authored
A collection of flags are passed into depthcharge from coreboot using the coreboot tables and end up in the sysinfo structure. It's reasonable to use the static value in some of those flags, but for some other values we need to know their current and changing value. To support that and to avoid having to install all the sysinfo GPIOs manually, a new function has been added to allow replacing flags which were already installed. Since there's no guaranteed ordering between init functions, the sysinfo flags need to be installed at the same time as the other flags. BUG=chrome-os-partner:22764 TEST=Built for all supported boards, booted on kirby. BRANCH=None Change-Id: Iec8340b65df5c63e446a51354c631dc9e0de487e Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/170000 Reviewed-by:
Stefan Reinauer <reinauer@google.com> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org>
-
Gabe Black authored
Narrow the TPM interface to just a transmit function. When the transmit function is called for the first time the TPM is initialized. When that happens, a cleanup function is installed which closes the TPM. Rework and simplify the file structure of the I2C TPM driver. It's now split into some generic bits and chip specific bits without also having a wrapper layer between it and the real TPM interface. BUG=None TEST=Built for all boards. Booted on link, pit, and snow. Measured boot performance on pit and verified it didn't change. BRANCH=None Change-Id: If1e40e706345ecd08fe4acbfd40d0c2e49306d14 Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/169057 Reviewed-by:
Gabe Black <gabeblack@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org>
-
- 11 Sep, 2013 1 commit
-
-
Gabe Black authored
This isn't really necessary now, but it makes these drivers more consistent with the others and will allow parameterizing those drivers in the future. BUG=None TEST=Built and booted on kirby. Built for all platforms. BRANCH=None Change-Id: I7a44f38194befd151a0c70bcc6ee93820228758d Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/168708 Reviewed-by:
David Hendrix <dhendrix@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org>
-
- 04 Sep, 2013 2 commits
-
-
Gabe Black authored
Instead of having an init callback and a refresh callback, there is now an update call back which is called if need_update is set to 1. Controllers that have fixed media attached to them will set need_update when their drivers are initially set up and clear it after the first update. Controllers that might have removable media attached will leave need_update turned on. Both will call their own init function when necessary, probably the first time update is called. Also, to avoid initializing controllers which aren't attached to the types of media we're concerned with, the single block_dev_controller list is split into two lists, one for controllers that have fixed media and one for those that could have removable media. The lists are not mutually exclusive, and the same mechanism which determines when to initialize the controller on a single list will prevent a controller for being initialized for each list it occurs on. BUG=None TEST=Built for all boards. Built and booted from emmc and sd card on snow and pit. Booted from ahci and usb on link. Booted from USB on kirby. BRANCH=None Change-Id: I134c207c61fa553a759bd54dcacbf5d93efb12e4 Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/168044 Reviewed-by:
ron minnich <rminnich@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org>
-
Gabe Black authored
Switch the storage drivers (AHCI, USB, both types of MMC) over to using structures of function pointers like most of the other drivers. This change touches all boards and heavily affects the MMC drivers, but the other drivers were fairly straightforward to port over. BUG=None TEST=Built for all boards, built and booted on Falco, pit, and snow. BRANCH=None Change-Id: I4d5c9259e7f97eebe9b82a3bdbe112b2e2625d34 Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://chromium-review.googlesource.com/168043 Reviewed-by:
ron minnich <rminnich@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org>
-
- 31 Jul, 2013 1 commit
-
-
Gabe Black authored
Also introduce a wrapper class which represents the path audio takes through the system called a SoundRoute. When you play a sound through the SoundRoute, it first makes sure all of its components are enabled which would typically include the codec, and then it calls through to the underlying sound source. BUG=chrome-os-partner:19420 TEST=Built and booted on link and snow and verified that the developer mode beep still works and the proceeded to the kernel. Built and booted on Falco and saw consistent messages about not finding a beep node. Built for all other platforms other than bolt. Built and booted on pit with no audio set up and saw that it could still get through to the kernel with appropriate error messages from the firmware. BRANCH=none Change-Id: Ifbe7909cfb632c70e6a03c2ab47f0444fdef22a9 Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/63545 Reviewed-by:
Hung-Te Lin <hungte@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org>
-
- 23 Jul, 2013 2 commits
-
-
Gabe Black authored
Separate the Exynos SPI driver from the flash drivers. The ICH drivers are still flash drivers since they can't really be used for anything else, and there's now a flash driver which calls into an underlying SPI driver for the actual bus transactions. The ICH flash, memory mapped flash, SPI flash, and exynos SPI drivers are now all organized as structures of function pointers who's parameters are set when structure is set up. Also, the interface to SPI drivers is more in line with what's provided by the hardware, so the code in the exynos SPI driver needed to be redistributed. In the process the transfer function can now send, receive, or both, and it decides whether to use 4 byte packets or not based on whether the total size divides evenly by 4. To keep the SPI bus running with 4 byte packets when loading from flash, the SPI flash wrapper rounds the region being requested outward (start down, end up) to ensure that the size is a multiple of 4 and you're getting at least the data you're asking for. Ideally the driver would keep track of what it's already loaded and not load it again, but that's not implemented as of now. BUG=chrome-os-partner:19420 TEST=Built for all platforms except bolt. Booted on snow with the exynos SPI driver, on Link with the memory mapped flash driver and also the ICH SPI flash driver, booted RW on Link, and booted on Lumpy. BRANCH=None Change-Id: Ib0348bd468896a569288d3ca2dfca534569195b9 Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/62537 Reviewed-by:
David Hendricks <dhendrix@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org>
-
Gabe Black authored
The term MKBP actually refers to the keyboard protocol implemented by the ChromeOS EC, but it ended up being used for all ChromeOS EC related bits. BUG=chrome-os-partner:19420 TEST=Built for all supported boards. BRANCH=None Change-Id: Ic275fc3ce990695c6da0a0329911b3f79fcb7cde Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/62080 Reviewed-by:
Aaron Durbin <adurbin@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org>
-
- 16 Jul, 2013 1 commit
-
-
Gabe Black authored
Instead of determining which bus type the EC was over and its location on that bus using static Kconfig options, this change introduces an Ops type structure like what's being used for the GPIOs and the I2C bus drivers. This lets us get rid of the somewhat hacky global variable and accessor that let you set up a particular i2c bus. BUG=chrome-os-partner:19420 TEST=Built and booted into ChromeOS on Link and Snow, built for all boards supported by depthcharge except for bolt where there seems to be some sort of overlay problem. BRANCH=none Change-Id: I517c2a559508ccc97fbc22ccd2ae4f4a010d7845 Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/61871 Reviewed-by:
Aaron Durbin <adurbin@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org>
-
- 10 Jul, 2013 1 commit
-
-
Gabe Black authored
Reduce the generic GPIO interface to get and set functions, consolidate the sysinfo functions into that interface, simplify the flag management code, move the now extraneous GPIO functions into the driver specific driver structures, and adjust the exynos5250 I2C driver to use the new interface. Also, since there isn't a global and necessarily available GPIO API which can only be implemented once, it doesn't need to be a "choice" type config option. Since there doesn't need to be a default, inert choice any more, the stub driver has been deleted. BUG=None TEST=Built and booted on link, snow, and peach pit, built for bolt, falco, peppy and slippy. BRANCH=None Change-Id: Icb70b250417765ac857c8b0a7943b4e22587bf37 Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/60984 Reviewed-by:
Aaron Durbin <adurbin@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org>
-
- 09 Jul, 2013 1 commit
-
-
Gabe Black authored
The idea is that the board.c in each of these directories will have an init func in it which will instantiate and interconnect driver instances which fit with that particular board. That will make things more flexible for drivers, and avoid having to have hacks and board specifics wedged into drivers to support specific boards. For instance, on snow, one of the I2C busses is shared with the EC, and is arbitrated using a request/grant pair of GPIOs. Instead of having the driver know about that arbitration mechanism and which bus it goes with and which GPIOs to use, the GPIOs could be instantiated as instances of the exynos GPIO driver, the I2C driver can drive the most busses directly, and a wrapper which handles the arbitration can be implemented which is called into by the device driver on the I2C bus and which, after arbitration, then calls into the generic driver. Another example would be if there are two different types of I2C busses like on both Exynos chips. There actually are two types of busses on both those chips, but we've been able to ignore that by either turning off one type, or only attaching devices to one type. If we can't or don't want to work around the problem any more, we could implement drivers for both types of controller and then pass the right instance to the right driver for the devices on those busses. BUG=None TEST=Built for all supported boards. Booted on Link. BRANCH=None Change-Id: I349ebf4df1fc8d5763aa7d49fd70c85cc333c9f3 Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/60983 Reviewed-by:
Aaron Durbin <adurbin@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by:
Gabe Black <gabeblack@chromium.org>
-
- 26 Feb, 2013 2 commits
-
-
Gabe Black authored
The timekeeping code in libpayload was dependent on rdtsc, and when it was split up by arch, that code was duplicated even though it was mostly the same. This change factors out actually reading the count from the timer and the speed of the timer and puts the definitions of ndelay, udelay, mdelay and delay into generic code. Then, in x86, the timer_hz and timer_get_raw_value functions which used to be in depthcharge were moved over to libpayload's arch/x86/timer.c. In ARM where there isn't a single, canonical timer, those functions are omitted with the intention that they'll be implemented by a specific timer driver chosen elsewhere. BUG=chrome-os-partner:17340 BUG=chrome-os-partner:17334 TEST=Built and booted depthcharge on Link and Daisy. BRANCH=None CQ-DEPEND=CL:*32858 Change-Id: If1b18658deb9fffd38c70920e2b16f8e184e410d Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit-int.chromium.org/32894 Reviewed-by:
Stefan Reinauer <reinauer@google.com>
-
Gabe Black authored
Change the names of the timer driver API so that they have the prefix "timer" at their start. It also introduces a new function called "timer_hz" to seperate the idea of CPU frequency and the frequency of the system timer. BUG=chrome-os-partner:17340 TEST=Built for Link and Daisy. BRANCH=None Change-Id: I526c6e4922653a6632fd3caabb408bfcef516a3f Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit-int.chromium.org/32857 Reviewed-by:
Stefan Reinauer <reinauer@google.com>
-
- 11 Feb, 2013 1 commit
-
-
Gabe Black authored
The change was made using the following commands, run from the root of the depthcharge source directory. find ./ -type f | xargs sed -i 's/The Chromium OS Authors/Google Inc/' find ./ -type f | xargs sed -i 's/20[0-9][0-9]-2012 Google Inc/2012 Google Inc/' find ./ -type f | xargs sed -i 's/Copyright (c)/Copyright/ BUG=chrome-os-partner:8339 TEST=Builf for Link, manual inspection. BRANCH=None Change-Id: Icc90f16fd82a9160d54fb1ed87744fada89cbbfa Signed-off-by:
Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit-int.chromium.org/32285 Reviewed-by:
David Hendricks <dhendrix@google.com>
-