summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines/meta-openpower
Commit message (Collapse)AuthorAgeFilesLines
...
* meta-zaius: Add AVSBus workaround script, servicesXo Wang2016-12-224-0/+131
| | | | | | | | | | Add AVSBus control script. Add systemd services to enable AVSBus after power on and disable AVSBus at power off. Add BitBake recipe to install script and services. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I3f7a36a6c16d32bb7b648b0f84c9ab3abb922399
* meta-zaius: Use P9 features and enable VCS controlXo Wang2016-12-221-0/+3
| | | | | | | | | | Set Zaius machine conf to use P9 features (pdbg host control and VCS workaround). Use Zaius vcs-control recipe for machine-specific VCS workaround components (virtual/p9-vcs-workaround). Signed-off-by: Xo Wang <xow@google.com> Change-Id: Ib75779da074b47c4fa335c5d2dfc40dc1bb82f04
* meta-zaius: Add VCS control script and servicesXo Wang2016-12-224-0/+145
| | | | | | | | | | | | | Add script for reading/writing VCS rail states on Zaius. Add systemd services with VCS on after workaround and VCS off at host power down. Add recipe to install script and services. This implementation of the VCS workaround is specific to Zaius as it requires UCD power sequencer logic to default to VCS rails off. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I3acf89f69c4d3df0036cd6fcc8639af0b3f3c68a
* Turn P9 VCS back off on a power off.Matt Spinler2016-12-202-0/+19
| | | | | | | | | | | After the system is powered off (PGOOD is a 0), we will make sure VCS is off. Even though the power on sequence also turns it off, we're being safe by also doing it here especially if some other code does the power on. Change-Id: I0834650083005bd41fbffc500cb2bc88b61d5c81 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Enable Witherspoon AVS bus and VRM controlMatt Spinler2016-12-201-0/+2
| | | | | Change-Id: I3739068a89645628d007e5fe1d530f51bbe1c3d6 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Witherspoon AVS Bus ControlMatt Spinler2016-12-207-0/+113
| | | | | | | | | | | | | Perform an AVS bus workaround on the VRMs attached to the processor. The AVS bus is how the processor talks to the VRMs. After the workaround, this also provides services to disable the AVS bus so a VRM override can be run, and then enable it again afterwards. Change-Id: I68c48ffaafe5d7125556aa9d36cf11bf55ca93ac Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Witherspoon VRM overridesMatt Spinler2016-12-203-0/+193
| | | | | | | | Overrides the default voltages of Witherspoon VRMs before a power on. Change-Id: Ide881b4b0656f53782459a427f8acde729137822 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add recipes for Witherspoon VCS workaroundSergey Solomin2016-12-169-3/+113
| | | | | | | | | | | | | | | Create vcs-workaround machine feature p9.inc Add new recipe vcs-pre-post.bb Add new recipe p9-vcs-workaround.bb Add new recipe start_host.bb Create preferred providers Create host control machine/distro/image feature Add dependencies Partially resolves openbmc/openbmc#647 Change-Id: I285cafc81afda20977fdf360ad8ad34d15e38685 Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
* meta-zaius: Order refclock fixup before VCS workaroundXo Wang2016-12-161-0/+1
| | | | | | | | No Wants= relationship added because the refclock fixup is not dependent on VCS workaround. Signed-off-by: Xo Wang <xow@google.com> Change-Id: Idd3904b17a2a56b9e57d05214b910faa560d8711
* pdbg.bb: bump versionPatrick Williams2016-12-141-1/+1
| | | | | Change-Id: Idf38914bec90a33198088b72918953aebcff91b3 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* op-pdbg-host-control: Fix boot scripts for pdbgXo Wang2016-12-122-8/+36
| | | | | | | | | | | | | | | | | | | The current scripts use ecmd-style bit ranges and call a "putcfam" function/command that doesn't exist. Use latest VCS fix and IPL start commands from Dean Sanner (including scratch register 8 value), converted to pdbg masked read-modify-write format. Add optional argument to scripts for specifying pdbg's '-d' flag. Scripts tested to boot a Zaius machine, but not tested with systemd services for sequencing. Partially resolves openbmc/openbmc#647. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I87761d1454306ebf4ad597057d2160eae10dc8cb
* disable UCD VCS railsSergey Solomin2016-12-112-0/+46
| | | | | | | Setup UCD module to disable VCS rails from power-on Change-Id: Ib72595cf120cd082bb8baf3657307154b5abd117 Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
* New recipe for setting Witherspoon fan speedsMatt Spinler2016-12-092-0/+26
| | | | | | | | For bringup use to set the fans to a fixed value until the real fan control code is ready. Can be removed then. Change-Id: I9e07d371222e19b542fd0c211180f5c5f5747061 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Service file to set Witherspoon fan speedsMatt Spinler2016-12-091-0/+16
| | | | | | | | | | Service file will call set_fan_speeds.sh at power on to set a default speed of 8000 RPM. Can be removed when real fan control is ready. Change-Id: I776e95effcb58dca330aa2f92b50c2c12ec14695 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Script to set witherspoon fan speedsMatt Spinler2016-12-091-0/+19
| | | | | | | | | | | Sets all fans to the RPM value passed in. Uses the i2cset command because there is no hwmon entry yet for the fan controller chip. Will be removed when real fan control is implemented. Change-Id: I50289dbcfcf175ab3349d851f4e45da061436b73 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Put the CFAM/FSI slave into async mode prior to starting the SBESergey Solomin2016-12-091-1/+1
| | | | | | | | Async mode changes the CFAM clock to an internal reference clock instead of the FSI clock (which on SoftFSI is intermittent). Change-Id: I8af7989de72774aae0e6ffb91bce7e70bd6592a1 Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
* meta-zaius: Fix up host reference clock after power onXo Wang2016-12-084-0/+66
| | | | | | | | | | | | | | | | Zaius's host reference clock generator IC requires an output configuration fixup before trying to send the P9 host any FSI transactions. The IC is powered by the main 3.3V rail (the BMC runs from standby 3.3V), so the fixup has to be applied every time after it is powered on. Add script that performs the I2C writes to the clock gen. Add systemd service that launches the script following power on. Add bitbake recipe to install service. Add image build append to build service into image. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I8b1b83d0dabbb86439a043f8a1d9cdcb56986c45
* Set MRW location for Witherspoon MRW XMLMatt Spinler2016-12-071-0/+3
| | | | | Change-Id: I175b1da5735ce022975354d3a961a94d223b5603 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add sd unit file for start_host.shSergey Solomin2016-11-211-0/+13
| | | | | | | | | Add systemd unit, which starts start_host script after vcs on. Partially resolves openbmc/openbmc#647 Change-Id: Ieaa3713ce200bc5f156ba0e4548e264de6918e45 Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
* Add sd unit file for vcs_on.shSergey Solomin2016-11-211-0/+13
| | | | | | | | | Add systemd unit, which starts vcs_on script after vcs workaround. Partially resolves openbmc/openbmc#647 Change-Id: Ibf13a24b592d6d526b1c599d8f7b4eb8c7596150 Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
* Add sd unit file for vcs_workaround.shSergey Solomin2016-11-211-0/+13
| | | | | | | | | Add systemd unit, which starts vcs_workaround script after pgood. Partially resolves openbmc/openbmc#647 Change-Id: I1ec8fecffcb4293238a0a0f486101c4bd2ecd05c Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
* Add sd unit file for vcs-off.shSergey Solomin2016-11-211-0/+13
| | | | | | | | | Add systemd unit, which orders itself before powering on Partially resolves openbmc/openbmc#647 Change-Id: Ibc3f3a928958b164c46056452c13f91c20b17277 Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
* Add supporting scripts for the OpenPOWER P9 processor.Sergey Solomin2016-11-184-0/+32
| | | | | | | | | | | Add Witherspoon power sequencer configuration scripts. Add P9 VCS workaround script. Add P9 SBE start instructions script. Partially resolves openbmc/openbmc#647 Change-Id: I0a25b2fc0fc74b2a88fd7d2c77b59aa72e0b2876 Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
* Fix pflash PNOR accessJoel Stanley2016-11-173-53/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pflash changes: Move to latest upstream release of skiboot which includes the mtd erase patch we were carrying. Adds a patch to fix parsing of the longer mtd labels we have since updating the device tree bindings. dev: size erasesize name mtd0: 00060000 00001000 "u-boot" mtd1: 00020000 00001000 "u-boot-env" mtd2: 00280000 00001000 "kernel" mtd3: 001c0000 00001000 "initramfs" mtd4: 01740000 00001000 "rofs" mtd5: 00400000 00001000 "rwfs" mtd6: 02000000 00001000 "1e620000.flash-controller:flash@1" mtd7: 08000000 00001000 "1e630000.flash-controller:pnor@0" Linux kernel changes: Three of the patches move the comaptible string for the bt interface to match what we have sent upstream. There is also a dts change to the mtd nodes that add back the 'pnor' label to the PNOR mtd device, as required by pflash. Cédric Le Goater (2): ipmi/bt-bmc: change compatible node to 'aspeed, ast2400-ibt-bmc' ARM: dts: aspeed: fix flash module device nodes Joel Stanley (2): ipmi/bt-bmc: Add comaptible node for ast2500 arm: dts: aspeed: Use upstream comaptible string Fixes openbmc/openbmc#785 Change-Id: If2c293b85075edcf3078ef599e7b61f3a6d77c66 Signed-off-by: Joel Stanley <joel@jms.id.au>
* meta-zaius: Add Linux config for I2C master selector and hotswap controllerXo Wang2016-11-161-0/+2
| | | | | | | | Include kernel drivers for the I2C arbitrator and the hotswap controller. Signed-off-by: Xo Wang <xow@google.com> Change-Id: Id6178e6e5c7eba0d71d2d57a0ec09c0ac8e49bb3
* meta-zaius: Add FLASH_SIZE to confXo Wang2016-11-141-0/+2
| | | | | | | This option pads unused portions of the flash, up to 64 MiB, with 0xFF. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I345a56342fdc16a079ea1b96d82adb2e1d9c4a15
* Add BMC flash section to devtree generator configMatt Spinler2016-11-141-3/+10
| | | | | Change-Id: I65e34e4b9e82957cc8c0b648a5ef0594790b6e59 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Add IIO kernel config for WitherspoonLei YU2016-11-141-0/+1
| | | | | | | The CONFIG_IIO is depended by CONFIG_BMP280. Change-Id: I543dac0485b6ebdc0c86397f61ac62e99e13fd6f Signed-off-by: Lei YU <mine260309@gmail.com>
* pdbg: version bumpJoel Stanley2016-11-081-1/+1
| | | | | | | Major update that adds support for i2c access to secondary processors. Change-Id: I79cae7a62f4e13e1bff01ae8dd579ad859a3ed79 Signed-off-by: Joel Stanley <joel@jms.id.au>
* Add BMP280 kernel config for Witherspoon.Lei YU2016-11-081-0/+1
| | | | | Change-Id: I09b7b98e03e5fa30dfd3c37563e68cf751dd8c84 Signed-off-by: Lei YU <mine260309@gmail.com>
* Add recipe to install device tree config YAML.Matt Spinler2016-11-081-0/+17
| | | | | | | | New recipe copies the devtree-config.yaml to a place the device tree generator can find it. Change-Id: I3ac107986de469ce47a4cd76cb790a8ab60988bc Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* pflash: fix erase command when using mtd backendJoel Stanley2016-11-072-0/+51
| | | | | | | | | | | | | | | | | | | | | | The libflash mtd backend lacked support for full-chip erase so it did not work. This patch adds that support to libflash. Patch is on it's way upstream[1]. Note: the old MMIO access method could perform a wole-chip erase on SPI NOR parts that supported it. This was sometimes a fraction faster than erasing each page one-by-one when re-flashing the entire chip. The mtd API does not (yet) provide a userspace API for that, so libflash always erases the flash one page at a time. This means you are better off using the -e command over -E. Fixes: openbmc/openbmc#747 [1] http://patchwork.ozlabs.org/patch/691765/ Change-Id: I20cf50e70a8487edc8cd77d41e73832913237b1b Signed-off-by: Joel Stanley <joel@jms.id.au>
* Switch userspace to use MTD access by defaultJoel Stanley2016-11-043-86/+2
| | | | | | | | | | | | | | | | | | Currently pflash defaults to using the MMIO interface through /dev/mem. We want to disable /dev/mem in production systems in the near future, so all non-debugging uses of it need to be eliminated. The new version of pflash defaults to MTD access. It also brings some API cleanups to libflash. We recently moved flasher to use MTD. This updates skeleton to pull in an update to flasher so that it can build against the new libflash API. Fixes: openbmc/openbmc#713 Change-Id: I6bde91c7df5d0588fc48dd2e847f21f0624a6950 Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* meta-obmc-machines: Add RTC_DRV_RV8803 to Witherspoon and Romulus kernelChris Smart2016-11-012-0/+2
| | | | | | | | | | | | | | | Witherspoon and Romulus contain an Epson RX8900CE RTC which is supported by the RV8803 kernel driver. This patch enables it now that the RTC is enabled in the respective device trees. See this commit for Witherspoon: 6c628de9d450b ARM: dts: witherspoon: add Epson RX8900CE RTC module And this commit for Romulus: c5682cbc3542a arm: dts: Add Romulus BMC machine Change-Id: I336a6a19c455d2e20084e7fd92c29404ccd5851c Signed-off-by: Chris Smart <chris@distroguy.com>
* Create YAML config file for device tree generation.Matt Spinler2016-10-311-0/+34
| | | | | | | | | This file will be read by the device tree generation code to fill in some things that aren't strictly hardware dependent so don't belong in the XML. Change-Id: I8d863adfd04c13dee5e133f1aceed76d470c2fe1 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* meta-zaius: Add kernel defconfig appendsXo Wang2016-10-312-0/+9
| | | | | | | | Add Zaius specific driver configs for RTC, 1-wire thermal sensor, and I2C mux. Signed-off-by: Xo Wang <xow@google.com> Change-Id: If265035e7a2f03e1a890c512f86cce27d091391c
* meta-openbmc-machines: Add RomulusJoel Stanley2016-10-279-0/+89
| | | | | | | | | | | Romulus is a Power9 OpenPOWER system developed by IBM. TODO: - bump skeleton for config/Romulus.py - bump kernel for device tree Change-Id: I9779f213e3ebc6286f6eaac35650e6c4fe395f80 Signed-off-by: Joel Stanley <joel@jms.id.au>
* Add UCD90160 kernel config for WitherspoonLei YU2016-10-251-0/+1
| | | | | | | Resolves openbmc/openbmc#653 Change-Id: I2c696ea0cf10b71ce971b456983ab0acdb5fed3f Signed-off-by: Lei YU <mine260309@gmail.com>
* meta-zaius: Patch U-Boot to enable BMC networkingXo Wang2016-10-243-0/+106
| | | | | | | | | Patch U-Boot to hard reset Zaius BMC's Broadcom PHY and to enable MAC2 that it's attached to. These are temporary Zaius-specific patches that should be removed when the Zaius U-Boot target is complete. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I0004b354d5774be1c244243e1bbbc527f195010c
* Add obmc-mrw Machine featureMatt Spinler2016-10-201-0/+2
| | | | | Change-Id: I0fbf66ee1cc06222d1cc24d94674b142d3c08363 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* meta-obmc-machines: Add MAX31785 to Firestone and WitherspoonJoel Stanley2016-10-142-0/+2
| | | | | | | | | These two machines contain the MAX31785 fan controller. We have an interim driver for these in the dev-4.7 Aspeed kernel tree, so add the driver to the configs for these machines. Change-Id: Id619e8b6e3338c880aabb8780db468cc5fff6a6f Signed-off-by: Joel Stanley <joel@jms.id.au>
* meta-obmc-machines: Witherspoon kernel overrideJoel Stanley2016-10-143-64/+0
| | | | | | | | | | This was an oversight when moving all of the systems to the 4.7 kernel tree. Fixes openbmc/openbmc#662 and fixes openbmc/openbmc#648. Change-Id: Idc39a1e8b8406f72f1c2c20a6a37af06eb2ad002 Signed-off-by: Joel Stanley <joel@jms.id.au>
* zaius-config: Add Zaius config recipeXo Wang2016-10-051-0/+5
| | | | | Signed-off-by: Xo Wang <xow@google.com> Change-Id: I3523a192f60e335a728c06d667bdf8836dde0a16
* obmc-op-control-power: Remove machine-specific patchesXo Wang2016-10-056-165/+0
| | | | | | | | | | | Remove net name patches from Firestone, Garrison, and Witherspoon. The equivalent configuration was moved into the Python machine config. Fixes openbmc/openbmc#601, fixes openbmc/openbmc#636, and fixes openbmc/openbmc#637. Change-Id: I2c2b03b506abffc1511e53dc622f42fe0589b00f Signed-off-by: Xo Wang <xow@google.com>
* ingrasys: Use openbmc.inc featuresXo Wang2016-10-041-1/+1
| | | | | | | | Include machine features in openpower.inc to enable host control functionality. This requires zaius-config (Zaius.py) in the skeleton group. Signed-off-by: Xo Wang <xow@google.com> Change-Id: If02e863f861618683cd3d547056ffb23b08e7f22
* pdbg: Version bumpPatrick Williams2016-09-291-1/+1
| | | | | Change-Id: I432b8b7fd7030b320bba4560245cfab6d2db79ac Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* firestone/garrison: fix build breakBrad Bishop2016-09-235-3/+3
| | | | | | | | Firestone & Garrison systems weren't building after a6bd1e. Change-Id: Ida8deaf8d5d00b1c5df16ab9b0410ca6f2b17cb6 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Revert "Create Palmetto inventory recipe."Matt Spinler2016-09-212-157/+0
| | | | | | | | | | Don't need this anymore now that inventory.json is generated dynamically. This reverts commit 38a21ef5b470dac705ff0c05dd883518eeb4d2e2. Change-Id: I10ff6b9a30f79de236c1d6186e4e2a3868ea5656 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Fixup inventory generation dependenciesMatt Spinler2016-09-213-1/+6
| | | | | | | Resolves openbmc/openbmc#567. Change-Id: I68e8e726f839038a6a256ff18a88d936ab0af3e4 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* skiboot: Race condition in 'gard' buildPatrick Williams2016-09-162-0/+44
| | | | | Change-Id: Ieddbc96706ceb1dfd3a124a4c4b5c7b198af4b46 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
OpenPOWER on IntegriCloud