summaryrefslogtreecommitdiff
path: root/meta-openbmc-bsp
AgeCommit message (Collapse)AuthorFilesLines
2018-04-24kernel: Add ASPEED AST2500 DRM driverJoel Stanley1-1/+2
This updates the kernel to include the ASPEED DRM driver. Note that the defconfig update has no affect on the I2C support; it drops out only due to being selected by other dependencies. Joel Stanley (6): drm: Add ASPEED GFX driver drm: aspeed: Debugfs interface for GFX registers ARM: dts: aspeed-g5: Add resets and clocks to GFX node ARM: dts: ast2500-evb: Enable the GFX IP ARM: dts: witherspoon: Enable the GFX IP ARM: dts: aspeed-g5: Add DAC MUX userspace control Change-Id: I084c4df8b7d4bcc183a865c9eabb0154570e0342 Signed-off-by: Joel Stanley <joel@jms.id.au>
2018-04-18aspeed: move MTD partition rulesBrad Bishop3-0/+18
Move the MTD partition rules to their own recipe under udev rather than appending u-boot-fw-utils. Additionally the rules are an artifact of the aspeed u-boot-fw-utils configuration, so place the new recipe in the aspeed layer. Tested: Built a witherspoon image Change-Id: I1fec995dd75543b2630db29d78bfb29a1a5949d5 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-04-10aspeed: Move vuart rules to udevBrad Bishop2-0/+0
The convention seems to be that udev rule generating recipes go in recipes-core/udev. Tested: No functional change Change-Id: I947a5f060e33b696cfa5528c09e164d047f78cae Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-04-05AST2500: Add loop device support in defconfigLei YU1-0/+1
Without this kernel is unable to mount loop device, and cause the init script failing to copy rofs into ram in legacy code update. Resolves openbmc/openbmc#3064. Tested: Successfully run legacy code update on Romulus. Change-Id: I22cdff51ac24a8ca00e1ed2b5d1d06d827b9eb74 Signed-off-by: Lei YU <mine260309@gmail.com>
2018-03-29aspeed: Append -layer to bbfile collection nameBrad Bishop3-9/+9
This seems to be the upstream convention. Update to match. Change-Id: I51557baebee8890d983d878779a5dd76ffa309be Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-29fsp2: Append -layer to bb file collection nameBrad Bishop1-2/+2
This seems to be the upstream convention. Update to match. Change-Id: Ie56cfd4cce1d1d49a3edeaf734fcfbbc665a55c8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-29aspeed: Remove duplicate kernel providerBrad Bishop1-1/+0
virtual/kernel was specified twice in the common Aspeed configuration. Change-Id: I808d5359fbfb8986c6b194dc5c0a8dc1e5268999 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-23kernel: Move to 4.13 kernelJoel Stanley2-38/+59
We have 236 commits, 127 files changed, 17766 insertions(+), 2128 deletions(-). Some of these are backports from upstream. This list does not include patches from the 4.13 stable releases, but we do include those in the dev-4.13 branch. 1 Alexey Khoroshilov 34 Andrew Jeffery 1 Arnd Bergmann 1 Benjamin Herrenschmidt 1 Bhumika Goyal 1 Brad Bishop 1 Brendan Higgins 11 Christopher Bostic 1 Cyril Bur 14 Cédric Le Goater 49 Edward A. James 3 Gavin Shan 1 Guenter Roeck 8 Ivan Mikhaylov 1 Jacek Anaszewski 1 James Feist 7 Jeremy Kerr 72 Joel Stanley 2 Julia Lawall 1 Ken Chen 6 Lei YU 3 Milton Miller 1 Mykola Kostenok 1 Patrick Venture 2 Philipp Zabel 1 Rick Altherr 11 Samuel Mendoza-Jonas 2 Wei Yongjun 1 Xo Wang 1 Yong Li Note that the 4.13 branch is EOL'd by the Linux community, and as such should not be used for any products beyond development. React to removal of occ hwmon instances from device trees with a new startup/shutdown mechanism for phosphor-hwmon. To fix this, a helper script will be used to start the service that will pass the service the device tree name if it is present, or the udev device path if it isn't. This script will still run from the udev rule as before, but it will stop and start the service itself without using the SYSTEMD_WANTS attribute. As the path to the hwmon environment file matches the service template argument, the paths for the OCC .conf files need to change to match the device path instead of the previous device tree path. Note that the pure device path would have the hwmon instance number in it, but since that can't be known ahead of time it is stripped off by the script that starts the service. In addition, the pure device path for the OCCs contain several ':'s, meaning the associated environment files would also need to. However, Yocto/Bitbake cannot handle a ':' in a file path, so they are converted to '--'s by the script that starts the service and phosphor-hwmon will convert them back internally when it starts. The service file also needed some changes now that the service lifetime is no longer controlled by systemd via SYSTEMD_WANTS. This script will be called by a udev rule to start and stop phosphor-hwmon when the hwmon device driver is started and stopped. It is passed both the device path and the OF_FULLNAME device tree attribute. If OF_FULLNAME is present, it will start the service with that as its template argument, otherwise it will use the device path. This is to handle devices that aren't in the device tree so they won't have OF_FULLNAME. If a '/hwmon/hwmonN' is in the path it is removed, as this path is also used as a path to an environment file and so must be known ahead of time, which the hwmon instance N is not. If there is a ':' in the path name, it is converted to a '--'. Yocto/Bitbake cannot handle a ':' in file paths. Resolves openbmc/openbmc#2953 Change-Id: I815be4d6d9e1cbea8428bb1bb8c332776ee71ece Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Matt Spinler <spinler@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-13Yocto 2.3Brad Bishop4-4/+45
Move OpenBMC to Yocto 2.3(pyro). Tested: Built and verified Witherspoon and Palmetto images Change-Id: I50744030e771f4850afc2a93a10d3507e76d36bc Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Resolves: openbmc/openbmc#2461
2018-02-23u-boot: Drop bootcmd support for legacy imagesJoel Stanley1-1/+1
This u-boot bump contains one patch: Brad Bishop (1): aspeed: Drop bootcmd support for legacy images Rebase out of tree Witherspoon patches. Change-Id: Ie8f4453a9d88823d7a97b9cd172089ead045024d Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-02-23u-boot: Move recipes to the Aspeed BSP layerBrad Bishop3-0/+55
Move the u-boot recipes out of the Phosphor layer to the Aspeed layer. When a SOC requires a specific u-boot tree, convention dictates the BSP layer supporting the SOC includes recipes for that tree. Tested: Built image and verified in witherspoon qemu Change-Id: I4d5bade05566ae4cbcf5a2c637a1ed275c63ab36 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-02-23aspeed: Add Aspeed global configuration fileBrad Bishop3-4/+12
Create a common Aspeed layer configuration file to host pointers to things like u-boot and kernel trees that support SOCs from Aspeed. Tested: Built image and verified in witherspoon qemu Change-Id: I9ad2720d8b4dff191e43be0b2c1514d25d7bf3ef Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-02-21add sunray2, fsp2 based socIvan Mikhaylov9-0/+274
* add fsp2 meta * add sunray2 evaluation board * create zobmc ppc kernel for fsp2 based boards * remove phosphor gpio keys * only -k core-image-minimal working fine for now due to problems with workbook and ipmi dependencies Change-Id: Id84614a78bc875206ccc0450885261258e4adb26 Signed-off-by: Ivan Mikhaylov <ivan@de.ibm.com>
2018-02-01Systemd: backport a new api for uuid generationYong Li2-0/+6
The current uuid generation method just export the machine-id, it does not match the systemd description (https://www.freedesktop.org/software/systemd/man/machine-id.html): This ID uniquely identifies the host. It should be considered "confidential", and must not be exposed in untrusted environments, in particular on the network. If a stable unique identifier that is tied to the machine is needed for some application, the machine ID or any part of it must not be used directly. Backport the new sd_id128_get_machine_app_specific from systemd 233, to replace the old uuid generation method. Change-Id: I44e7b32ca951a9fa591761c3a3e4f27da04d2b6f Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
2018-01-23meta-ast2500: Tune for ARM1176JZ-SXo Wang1-2/+2
Include tune-arm1176jz-s.inc in the ast2500 SoC include file and set its default tune to the core-specific variable. This enables Thumb package builds and adds a compiler tune for the ARM1176 core. AST2500 BMC developers won't likely observed any differences other than seeing in the build log: TUNE_FEATURES = "arm armv6 thumb arm1176jzs" Tested: Inspected some packages with the bb utility that TUNE_PKGARCH="armv6" and verified booting Zaius BMC. Signed-off-by: Xo Wang <xow@google.com> Change-Id: I70beab3d4e930b22dd4dd7b42e56971448396a7b
2018-01-23meta-ast2500: Add tune file for ARM1176JZ-SXo Wang1-0/+11
Add a tune file for the ARM1176JZ-S without the VFP FPU. The Raspberry Pi machine layer contains a tune file for ARM1176JZF-S which has a VFP FPU. In addition to adding a core-specific compiler tuning option, this tune enables packages to be compiled to emit Thumb instructions if ARM_INSTRUCTION_SET = "thumb" which will generate slower but more compact code. Note that packages default to ARM-only code and even if enabled, the compiler may choose not to emit Thumb code. Packages built with Thumb support will have this reflected in the naming (armv6t instead of armv6) but the architecture name will remain armv6. Tested: Included the file into the build and verified it has no effect. Signed-off-by: Xo Wang <xow@google.com> Change-Id: Icad4be206b384e9b5157423b6c7880f0bd1dd3a3
2018-01-23meta-aspeed: Set SOC_FAMILY in SoC include filesXo Wang2-0/+4
Set SOC_FAMILY to aspeed-g4 and aspeed-g5 in ast2400 and ast2500 SoC include files, respectively. Include soc-family.inc so that the family is added to MACHINEOVERRIDES. This is just minor cleanup that helps set the scene for creating Aspeed model-specific include files (though I don't plan to do this). Tested: Inspected OVERRIDES with the bb utility. MACHINEOVERRIDES for witherspoon is now "openbmc:armv6:aspeed-g5:witherspoon:ast2500". Signed-off-by: Xo Wang <xow@google.com> Change-Id: I4175915b750b04f36e7b3bd354a55b6a4f7f51fb
2018-01-18Enable perf in obmc-phosphor-debugtoolsJoel Stanley2-4/+5
This enables the userspace 'perf' tool and the corresponding kernel configuration. PERF_EVENTS is enabled on ast2500. It was already enabled on ast2400. TIMER_STATS is enabled. This has low runtime impact when not enabled. It defaults to off. Change-Id: Iac1761aec999679b611e9bf9b51d0fe585d7ac5c Signed-off-by: Joel Stanley <joel@jms.id.au>
2018-01-17Add AST2400 BSP Layer READMEGunnar Mills1-0/+8
Change-Id: I0f8a18e9dece67f122b059b73f6bc1147255f5d5 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2018-01-17Add AST2500 BSP Layer READMEGunnar Mills1-0/+8
Change-Id: I6d6d21aea6e96408b3458afd5ea971fcc968e7e1 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2018-01-16Add OpenBMC BSP Layer READMEGunnar Mills1-0/+8
Change-Id: I0ad9cd55f4320b63ff08417a1e546ca9517810d1 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2017-11-13Spelling fixesGunnar Mills4-4/+4
Change-Id: I6d52d12e5409ffdf825234cf9f92ac36c39f0c62 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
2017-08-29u-boot fw-utils: Add alternate fw_env configEdward A. James6-0/+56
Allows fw_setenv/fw_printenv tools to access alternate bmc image. Change-Id: I7f634fd1201f5df1af01f4407d9d8791557242ae Signed-off-by: Edward A. James <eajames@us.ibm.com>
2017-08-18Add u-boot redundant environmentsEdward A. James2-2/+4
Update fw_env config with two sections. Update init script to handle redundant envs. Patch u-boot. Can be removed when openbmc/u-boot is updated and recipe bumped. Resolves openbmc/openbmc#1937 Change-Id: I15137f55d960381a0b3fbb58c53090bbd5b86482 Signed-off-by: Edward A. James <eajames@us.ibm.com>
2017-08-18Remove initramfs workaround for u-boot environment.Edward A. James2-2/+2
Early in the dev-4.4 kernel lifetime a workaround was developed when the fw_setenv command was failing. That issue does not appear with the current kernel and the workaround can be removed. Change-Id: I2a0f01f274b7ce76fbd1e80fe901cc86087ee5d8 Signed-off-by: Edward A. James <eajames@us.ibm.com>
2017-08-15kernel: IBM PSU driver, hwmon core additions, and aspeed-pwm-tachoJoel Stanley2-0/+4
Edward A. James (8): hwmon: (pmbus): Switch status registers to 16 bit hwmon: (pmbus): Access word data for STATUS_WORD hwmon: (pmbus): Add generic alarm bit for iin and pin hwmon: (pmbus): Add debugfs for status registers dt-bindings: i2c: Document the IBM CCF power supply version 1 hwmon: (pmbus): Add IBM Common Form Factor (CFF) power supply driver Documentation: hwmon: Document the IBM CFF power supply ARM: dts: aspeed: Witherspoon: Add power supplies to i2c bus Jaghathiswari Rankappagounder Natarajan (1): Documentation: dt-bindings: Document bindings for ASPEED AST2400/AST2500 PWM and Fan tach control Joel Stanley (2): ARM: configs: aspeed: Add VLAN options ARM: configs: aspeed: Enable IBM CFF Power Supply driver Mykola Kostenok (2): Documentation: dt-bindings: aspeed-pwm-tacho cooling device. hwmon: (aspeed-pwm-tacho) cooling device support. Change-Id: I78081bba5af67a1b1987fe256dd1f2ff3182472d Signed-off-by: Joel Stanley <joel@jms.id.au>
2017-08-09kernel: Add CONFIG_KEYBOARD_GPIO_POLLED to configEdward A. James1-0/+1
Change-Id: Iceafce789eb56f54494b6b9f7c3c2939e5b2087d Signed-off-by: Edward A. James <eajames@us.ibm.com>
2017-08-01kernel: Watchdog gpio, upstream vuart, pca955x and i2c fixesJoel Stanley2-4/+4
Update defconfigs with new VUART kconfig symbol. The MAX31785 symbol moves as it is now sorted with the PMBUS drivers. Andrew Jeffery (4): ARM: aspeed: Request WDTRST1 pinctrl function dt-bindings: watchdog: aspeed: External reset signal properties watchdog: aspeed: Support configuration of external signal properties ARM: dts: aspeed: Witherspoon WDT1 external signal is push-pull Brendan Higgins (1): i2c: aspeed: fixed potential null pointer dereference Cédric Le Goater (1): leds: pca955x: fix typo Jeremy Kerr (1): drivers/serial: Add driver for Aspeed virtual UART Joel Stanley (4): Revert "drivers/serial: Add driver for Aspeed virtual UART" serial: 8250: Add flag so drivers can avoid THRE probe ARM: dts: aspeed: Update vuart compatible ARM: configs: aspeed: Regenerate defconfigs Change-Id: I151016c7ea98fc6552ce8ab54661dd1353834deb Signed-off-by: Joel Stanley <joel@jms.id.au>
2017-07-13kernel: Build config in to kernelJoel Stanley2-0/+4
Requested by openpower partners doing bringup. Change-Id: I86632bbdeb416a3fc268c1446727f0e6b799c050 Signed-off-by: Joel Stanley <joel@jms.id.au>
2017-07-07Add override for aspeed bsp machine.Patrick Venture8-14/+18
Upstream yocto is organized such that there is only bblayer for all builds and overrides are used to customize recipes for any specific platform. It's possible for a group to use openbmc/openbmc as part of their distro and run into issues with recipes that are comingled. Change-Id: I5dc6e8c1448d95da1b5ee64b220e2955466cdf4e Signed-off-by: Patrick Venture <venture@google.com>
2017-06-28linux-obmc: Patch to disable CONFIG_MTD_SPI_NOR_USE_4KAdriana Kobylak2-0/+2
Disable the 4KB erase block size from the spi nor to be able to use UBIFS, since UBIFS requires the erase size to be at least 15KB. Change-Id: I94de7daa82c4f925ad55c97f104dd0cb1d2d3dcb Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
2017-06-21kernel: Add DPS310, max31785 fixes, wdt2 enablementJoel Stanley1-0/+1
Andrew Jeffery (2): hwmon: occ: Fix uninitialised variable warning hwmon: max31785: Enable dual rotor if functionality is detected Benjamin Herrenschmidt (2): aspeed: Don't blast SCU04 at boot time spi-nor: Add Winbond w25m512jv Christopher Bostic (1): drivers/hwmon: max31785 Set fan fault response based on dev tree Joel Stanley (3): iio: Add driver for Infineon DPS310 ARM: configs: aspeed_g5: Add DPS310 driver ARM: dts: aspeed: Enable WDT2 for all platforms Patrick Venture (1): ARM: dts: aspeed: quanta-q71l: i2c-mux compat fix Change-Id: I2a71977b959227762d62f803a3593c8fc16cc2c2 Signed-off-by: Joel Stanley <joel@jms.id.au>
2017-06-19kernel: FSI, hwmon, LED GPIO and device tree fixesJoel Stanley2-0/+5
Andrew Jeffery (2): hwmon: max31785: Clean up uninitialised values hwmon: max31785: Use standard sysfs ABI for fast rotor inputs Cédric Le Goater (5): leds: pca955x: add device tree support leds: pca955x: use devm_led_classdev_register leds: pca955x: add GPIO support dt-bindings leds: add pca955x ARM: dts: aspeed: witherspoon: Add pca9552 device Edward A. James (7): fsi: occ: Fix 1 byte response and rc for O_NONBLOCK hwmon: occ: Add new sensor versions and non-hwmon attributes hwmon: occ: Add P8 OCC access occ: hwmon and fsi probing fix ARM: aspeed: Power9 dts and defconfigs for OCC drivers: fsi: sbefifo: Fix buffer initialization drivers: hwmon: occ: Add "master" attribute and remove status files Joel Stanley (1): ARM: configs: aspeed: Add pca9552 driver Rick Altherr (1): ARM: dts: aspeed: quanta-q71l: Add i2c and LED devices Change-Id: I9d1307cd3d8e0eaa86197a2da858dd0d83174d6c Signed-off-by: Joel Stanley <joel@jms.id.au>
2017-06-15kernel: Update 4.10 treeJoel Stanley2-82/+58
Move to 4.10.17. This incorporates all of the 4.10 stable fixes. 4.10 is now end of lifed and does not receive further fixes. New drivers: - LPC snoop - OCC SBE - SBE FIFO - Infineon IR35221 - Maxim MAX31785 - of_serial reset support - Aspeed PWM and fan tach driver - UCHI driver - FSI device tree match support New platforms: - Mellanox MSN BMC Config and device tree changes: - Enable VMSPLIT_2G for ast2400. This is allows us to map all of the mtd flash - Fix device trees for ast2400 mtd support Resolves openbmc/openbmc#1686 - Add CFAM layout to device tree Resolves openbmc/openbmc#1697 - Enable new drivers [the content below is for the changes made in c13af44db76bd1 and are included so that the details are in openbmc history] This is OpenBMC's third major kernel change. We now move to a 4.10 base, where a larger amount of our driver support has been upstreamed. - NCSI stack - IRQ driver - Watchdog driver - Clocksource driver - GPIO driver - Pinmux driver - ftgmac100 ast2500 support - IPMI BT driver - adm1275 driver fix In addition, this contains backports of a significant amount of work that was done post-4.10. - LPC bindings - Pinctrl enhancements - Flash controller (spi-nor) basic support - ast2500 GPIO support - LPC host interface controller driver - Aspeed ADC - GPIO debounce support - Pinconf (biasing and drive strength) driver Finally, there is the work-in-progress that has been temporarly staged in the dev tree while we get it reviewed and upstreamed. - New I2C driver - OCC driver - LPC mailbox driver - FSI core - VUART driver Defconfig updates - Optmise options for network performance - Update for upstreamed drivers (MTD driver was renamed, etc) - Enable drivers that are in use Legacy Yocto layer changes - Remove palmetto GPIO hog patch. It is in the kenrel tree Change-Id: I4b48b843572c8f8d547763f0d3cb5a6742bbf0e3 Signed-off-by: Joel Stanley <joel@jms.id.au>
2017-06-14aspeed config: Add IR35221 sensorChristopher Bostic1-0/+1
Set IR35221 sensor config option to 'y' Change-Id: I15f6c0489432489e0491ee0423e5de5d5676b15b Signed-off-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>
2017-05-31aspeed ast2400 enable aspeed-pwm-tachoPatrick Venture1-0/+1
This enables the following for images built against the meta-ast2400: - aspeed-pwm-tacho Change-Id: I89b3e56e98dd525104441946909c43b71ecd1366 Signed-off-by: Patrick Venture <venture@google.com>
2017-05-25kernel: Move to Linux 4.10 treeEdward A. James4-263/+50
Tested on witherspoon. Change-Id: Ib74dd9b3acaf3528d029591645ca30add67de71e Signed-off-by: Edward A. James <eajames@us.ibm.com>
2017-05-11config: Add OCC driver to the ast2500 configEdward A. James1-0/+1
Change-Id: I2dfcbcdb27fe4aa2cb148de9d9ce2c0b5c5429d1 Signed-off-by: Edward A. James <eajames@us.ibm.com>
2017-05-02config: Add FSI SBEFIFO driver to the ast2500 config.Edward A. James1-0/+1
Change-Id: I8b608fb7e3f075b03516870ffbdb509b7c8afb83 Signed-off-by: Edward A. James <eajames@us.ibm.com>
2017-02-24kernel: Enable UBI, FSI hub support and device tree updatesJoel Stanley2-0/+8
This introduces hub master support for the FSI driver, enabling it to initialise and talk to the FSI address space on the second socket of P9 machines. UBI and UBIFS support is enabled in the kernel in preparation for using them in OpenBMC. The P9 device trees have been brought in sync with each other, with all now describing the mailbox and lpc drivers necessary for using mboxd for host boot firmware communication. Adriana Kobylak (1): arm: configs: aspeed: Add UBI support Christopher Bostic (4): drivers/fsi: Add hub master support drivers/fsi: Move common read/write code into shared utility drivers/fsi: Cleanup and retry op on error drivers/fsi: Initialize slave link field Edward A. James (3): drivers: fsi: scom: Zero out user buffer first drivers: fsi: Fix FSI core size checking user interfaces drivers: fsi: i2c: Fixup probe to allow multiple engines Joel Stanley (2): ARM: dts: aspeed: Fix RAM size in Romulus and Witherspoon ARM: dts: aspeed: Reserve RAM on P9 machines Lei YU (1): ARM: dts: aspeed: Enable Romulus mailbox and LPC control nodes Change-Id: I26855d0fcce0ba435892cc1f031a0e1b10121f5c Signed-off-by: Joel Stanley <joel@jms.id.au>
2017-02-13meta-aspeed: Add kernel panic timeoutXo Wang2-0/+2
Set a one-second timeout observed by the kernel after panicking. The system will reset after the timeout is up. The default timeout is 0, which means to wait indefinitely after panic. Fixes openbmc/openbmc#1114 Signed-off-by: Xo Wang <xow@google.com> Change-Id: I2eec2113fd7598f84dd91412b212ecc2a6949214 Signed-off-by: Joel Stanley <joel@jms.id.au>
2017-02-09kernel: Add FSP FSI I2C driver and Zaius UART fixJoel Stanley2-0/+2
This bumps the kernel to include a port of the FSI I2C driver from the FSP. It drives the I2C master in the CFAM logic of the host processor over FSI. This driver is being rewritten to be a proper i2c bus driver, and as such will be removed once that driver is functionally equivalent. There is also a fix for the Zaius UART. A device tree for the Qanta Q71L, a non-openpower BMC, was added. Christopher Bostic (3): drivers/fsi: Add slave interrupt polling drivers/fsi: Add Client IRQ Enable / Disable drivers/fsi: Add sysfs file to adjust i-poll period Edward A. James (5): drivers: fsi: Add i2c client driver drivers: fsi: i2c: Add engine access wrappers drivers: fsi: i2c: probe fsi device for i2c client drivers: fsi: i2c: add driver file operations and bus locking drivers: fsi: i2c: boe engine Joel Stanley (2): drivers: fsi: Fix compilation warnings aspeed: defconfig: add FSI_I2C driver Rick Altherr via openbmc (2): dts: Minimal device tree for Quanta Q71L BMC arm: aspeed: zaius: Disable LPC reset for UART1 Change-Id: I4fd4e4e347cfe3dead1d84de8b79dc2121346b02 Signed-off-by: Joel Stanley <joel@jms.id.au>
2017-01-17kernel: Add mailbox and LPC driversJoel Stanley2-0/+6
Mailbox and LPC drivers: drivers/mailbox: Add Aspeed mailbox driver drivers/misc: Add Aspeed LPC control driver dt-bindings: Add Aspeed LPC Control bindings dt-bindings: Add Aspeed mailbox bindings Enable the devices for Zaius and Witherspoon: ARM: dts: aspeed-bmc-opp-witherspoon: Enable mailbox and LPC control ARM: dts: aspeed-bmc-opp-zaius: Enable mailbox and LPC control node ARM: dts: aspeed-g5: Add mailbox and LPC control node Change-Id: I8030404c5c2f6d90935bbd6b26de7143f564f06d Signed-off-by: Joel Stanley <joel@jms.id.au>
2017-01-15kernel: add high res timers to kernel configRobert Lippert2-0/+2
High res timers are useful in general, particularly for userspace apps that call usleep(). Change-Id: I15be1b20141423650ed7f049a4b9ea53160260e3 Signed-off-by: Robert Lippert <rlippert@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2017-01-04Remove setting of explicit ramdisk load addressRick Altherr1-3/+0
U-Boot in Aspeed's SDK had a hack to manually relocate the ramdisk into RAM because of a bug that caused the normal ramdisk relocation not to happen if ATAGS was being used. Now that the ATAGS ramdisk relocation bug is fixed, the load address and entrypoint of a ramdisk image are ignored. The ramdisk is relocated to an address chosen by U-Boot and the address is passed to the kernel. Remove the override of oe_mkimage() in obmc-phosphor-image_types_uboot as the default implementation is sufficient. This also removes the only reference to a fixed ramdisk location in RAM. Change-Id: Id92c8dc9ebeb905401e3056fcf841d982abbd3d1 Signed-off-by: Rick Altherr <raltherr@google.com>
2016-12-19kernel: FSI, Zaius LPC mapping and device tree fixesJoel Stanley2-0/+6
- FSI changes * Merge v1 of the FSI patchset as sent to lkml * Merge Jeremy's raw driver for slave address-space access * Define pins in Palmetto DTS * Build the FSI SCOM driver for both ast2400 and ast2500 systems. The driver has not been enabled in the device tree so it will not affect any sytems at this stage. We will enable systems as the userspace changes are made to support the kernel driver. - Zaius * Enable LPC to AHB mapping for flash access - Update the ast2400 systems with the correct amount of RAM * They systems have 512MB, minus the 16MB framebuffer, but our device tree restricted them to 256MB. * We now set them to 512MB with a 16MB no-map reservation at the top for RAM for the PCI framebuffer Change-Id: I7377e0f3bd075b78d923ff7295b133a75158e5d9 Signed-off-by: Joel Stanley <joel@jms.id.au>
2016-11-10Move to the upstream IPMI BT kernel driverJoel Stanley2-2/+2
The kernel driver for the iBT interface has landed upstream. In the review process, the location of the device node was changed, as was the naming of the ioctls and the kconfig symbol. This change moves to the new version of btbridge, which brings in autotools support from Matt Barth and a port to the new kernel driver from Cédric Le Goater. The .bb file is modified to support the autotools dependencies. Convert build process to autotools replace bt_host by bt_bmc add a --device option Corrected resulting errors from -Wall & -Werror. We update the ast2400 and ast2500 defconfigs with the new config symbol, and bump the kernel to the latest version. The kernel changes clean up the old driver, and add the new one, including device tree changes. ARM: dts: aspeed: Enable BT IPMI BMC device ARM: aspeed: Add defconfigs for CONFIG_ASPEED_BT_IPMI_BMC ipmi: add an Aspeed BT IPMI BMC driver ARM: dts: aspeed: remove previous iBT definitions ARM: aspeed: remove previous definitions in default config Revert "misc: Add Aspeed BT IPMI host driver" Change-Id: I8fcc43deaf5db71d587e34c4e4ed2111e7f3e182 Signed-off-by: Joel Stanley <joel@jms.id.au>
2016-11-07Fix vuart symlink udev ruleJoel Stanley1-1/+1
The rule was not creating the /dev/ttyVUART0 rule. ``` root@palmetto:~# udevadm info -q all /dev/ttyS0 P: /devices/platform/ahb/ahb:apb/1e787000.vuart/tty/ttyS0 N: ttyS0 E: DEVNAME=/dev/ttyS0 E: DEVPATH=/devices/platform/ahb/ahb:apb/1e787000.vuart/tty/ttyS0 E: MAJOR=4 E: MINOR=64 E: SUBSYSTEM=tty E: TAGS=:systemd: E: USEC_INITIALIZED=22674274 ``` ``` root@palmetto:~# systemctl status dev-ttyVUART0.device --no-pager ● dev-ttyVUART0.device Loaded: loaded Active: inactive (dead) Nov 07 05:43:37 palmetto systemd[1]: dev-ttyVUART0.device: Job dev-ttyVUART0.device/start timed out. Nov 07 05:43:37 palmetto systemd[1]: Timed out waiting for device dev-ttyVUART0.device. Nov 07 05:43:37 palmetto systemd[1]: dev-ttyVUART0.device: Job dev-ttyVUART0.device/start failed with result 'timeout'. ``` This just sits there without returning: ``` root@palmetto:~# systemctl start dev-ttyVUART0.device ``` This is the reason udev does not trigger due to the lpc address on this system being set to 0x417 when the rule expects 0x3f8: ``` root@palmetto:~# cat /sys/devices/platform/ahb/ahb\:apb/1e787000.vuart/lpc_address 0x417 ``` - `obmc-console-server` is launched when `/dev/ttyVUART0` is created. - `/dev/ttyVUART0` is created when a device with `lpc_address` of `0x3f8` is created - `lpc_address` is configured by obmc-console-server. - GOTO 10; A fix would be to match the udev rule on the address of the peripheral. This is what Cedric's original patch did: ``` SUBSYSTEM=="tty", ATTR{iomem_base}=="0x1E787000", SYMLINK+="tty-host" ``` Use the iomem_base in place of the lpc_address condition. The rule was not matching with the driver==aspeed_vuart condition, so that was removed as well. Fixes: openbmc/openbmc#749 Fixes: openbmc/openbmc#718 Fixes: openbmc/openbmc#706 Change-Id: Ia55f47a84d657ab9572a8b0495420b1f56e16c02 Signed-off-by: Joel Stanley <joel@jms.id.au>
2016-10-20linux-obmc: Unifiy defconfigsJoel Stanley2-66/+45
Minimaise the differences between the ast2400 and ast2500 defconifgs. ast2500 changes: - Enable IPv6 - Disable unused compression algorithms - Enable SYN cookies * resolves https://github.com/openbmc/openbmc/issues/504 - Enable kenrel hardening features - Disable unused USB support - Enable earlyprintk - Disable support for ancient libc ast2400 changes: - Remove unused configfs support - Disable IPv6 IPSec support Change-Id: Id1e388723160541de80b26c378b87a1a2da8091e Signed-off-by: Joel Stanley <joel@jms.id.au>
2016-10-20Fixed build problem by modifying CONSOLES variableJosh King2-0/+5
Modified SERIAL_CONSOLES variable in the hardware systems so that we can get rid of the hacks file. The hacks file was used to manually stop the issue but now that is taken out and the issue is handled in the include files so the process doesn't start in the first place. This fixes issue number 586. Resolves openbmc/openbmc#586 Change-Id: I1eb54dae6cbec661f4b8865875e0fe5bd734c70c Signed-off-by: Josh King <jdking@us.ibm.com>