summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-11-04Merge pull request #15 from jk-ozlabs/openbmc/config-fixesopenbmc-20151104-1devJeremy Kerr1-4/+2
Openbmc/config fixes
2015-11-04Merge pull request #14 from jk-ozlabs/openbmc/i2c-fixesJeremy Kerr2-1/+1
Openbmc/i2c fixes
2015-11-04Merge pull request #13 from jk-ozlabs/openbmc/dt-fixesJeremy Kerr3-585/+352
Openbmc/dt fixes
2015-11-04i2c/i2c-aspeed: Set of_node of i2c bus devicesJeremy Kerr1-0/+1
So the core code will enumerate for devices. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-11-04i2c: Don't print in i2c_device_ueventJeremy Kerr1-1/+0
CONFIG_I2C_DEBUG_CORE + systemd-journald = infinite loop Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-11-04arm/configs/aspeed_defconfig: Enable i2c driversJeremy Kerr1-1/+2
We have these listed in the device tree. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-11-04arm/configs/aspeed_defconfig: Remove i2c debuggingJeremy Kerr1-3/+0
... so we don't lose too much dmesg output. These can be enabled through dynamic debug anyway. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-11-04arch/arm/boot/dts/ast2400: Add #address- & #size-cells properties to i2cJeremy Kerr1-0/+26
We geta bunch of warnings at the moment. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-11-04arch/arm/boot/dts: Use a common dtsi file for aspeed devicesJeremy Kerr3-585/+326
the dts files for palmetto and barreleye are mostly the same; use a dtsi file for the common chip parts, keeping only the board-specific things in the per-platform files. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-11-02arm/dts/aspeed: Added i2c busses and devicesopenbmc-20151102-1Norman James2-7/+354
Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-10-30aspeed/i2c: add all buses to device treeJoel Stanley2-8/+103
They will only be enabled if the status property is changed from "disabled". Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-10-30aspeed/i2c: Add working driver for multiple busesJoel Stanley2-538/+477
We do not support DMA, and have not tested any slave support, however master mode byte-at-a-time is working. The device tree currently includes the first and second buses. Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-10-28gpio/aspeed: constify the aspeed_gpio_banks structureopenbmc-20151028-1Joel Stanley1-14/+14
Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-10-28gpio/aspeed: Don't set names for aspeed GPIOsJeremy Kerr1-31/+0
We need the numbers for exporting anyway. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-27gpio/aspeed: Implement interrupts for GPIO banksJeremy Kerr2-2/+232
We have a set of interrupt registers in each bank; this change adds a gpio irqchip to hook them up to the GPIO code. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-27gpio/aspeed: Expose entire bank as one gpio chipJeremy Kerr2-37/+98
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-27gpio/aspeed: Pass struct resource directly to devm_ioremap_resourceJeremy Kerr1-2/+1
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: read bt ctrl state after poll_waitJeremy Kerr1-1/+3
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: remove bt_host->ctrlJeremy Kerr1-2/+0
... nothing uses it. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: Add ioctl to assert SMS_ATNJeremy Kerr3-0/+38
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: Avoid global bt_hostJeremy Kerr1-9/+13
Rather than having a global bt_host, use references from the file & miscdev. This removes the restriction on the number of bt-host devices. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: Use a dynamic miscdevJeremy Kerr1-9/+10
No need to use a global miscdev here. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23arm/dts/aspeeed: Fix unit address for ibtJeremy Kerr1-1/+1
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: use a more explicit compatible stringJeremy Kerr2-2/+2
The interface we're using here is specific to the aspeed hardware implementation. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: unify device name to bt-hostJeremy Kerr1-3/+3
We have 'bt' in a few places, 'bt-host' in others. Unify on bt-host. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: remove chrdev_region, use module_platform_driverJeremy Kerr1-31/+1
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: use explicit u8 type for bt registersJeremy Kerr1-9/+7
.. to avoid any issues with signed vs unsigned types. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: fix whitespace issuesJeremy Kerr1-19/+19
No functional changes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: remove unused members of struct bt_hostJeremy Kerr1-3/+0
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-23misc/bt-host: Fix compile warningsJeremy Kerr1-16/+1
We have a bunch of unused functions. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-22watchdog/aspeed_wdt: Set system reset mode to 'full chip'Jeremy Kerr1-1/+3
Currently, the watchdog timer does nothing on expiry - the 'SoC system' reset type doesn't seem to have any effect. This change uses the 'full chip' reset type instead. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-22watchdog/aspeed_wdt: Move watchdog reset to a separate functionJeremy Kerr1-12/+14
We do the same reset procedure in apeed_wdt_enable and our reboot notifier, so move these to a separate function. Also, use a couple of definitions for the watchdog control value rather than a hardcoded '3'. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-22watchdog/aspeed_wdt: Unify register names with the docJeremy Kerr1-11/+11
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-16Merge pull request #3 from jk-ozlabs/openbmcPatrick Williams2-1/+11
Kernel fixes for openbmc
2015-10-16arm/aspeed_defconfig: change CONFIG_USB_G_SERIAL to yJeremy Kerr1-1/+1
It's the only module present. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-16arm/mach-aspeed: Enable UART clock divisorJeremy Kerr1-0/+10
Our .dts assumes that the UART clock is divided by 13, but different u-boots may leave this bit in different states. Initialise it in aspeed_early_init explicitly. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2015-10-13Merge pull request #2 from cyrilbur-ibm/openbmc-devapopple1-3/+8
arm/aspeed_defconfig: Add required options to boot with systemd
2015-10-13arm/aspeed_defconfig: Add required options to boot with systemdCyril Bur1-3/+8
2015-10-06config: update defconfig for ipmi bt host driverJoel Stanley1-0/+5
Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-10-06dts: update device tree for ncsi supportJoel Stanley1-0/+1
Signed-off-by: Joel Stanley <joel@jms.id.au>
2015-10-06net/faraday: Enable offload checksum according to device-treeGavin Shan1-1/+5
This enables IP/UDP/TCP offload checksum according to information passed on from bootloader through device-tree. The offload doesn't working properly when the interface works in NCSI mode. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
2015-10-06net/faraday: Enable NCSI interfaceGavin Shan1-24/+67
The NIC has the possibility to connect to NCSI package and channel. This supports NCSI enabled interface. When the network device is registered, the accompanying NCSI device is registered. When the interface is to be brought up, the NCSI device is started to probe NCSI topology and choose one active channel automatically. On the other handle, when the interface is to be brought down, the interface will be shuted down when the NCSI device is teared down. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
2015-10-06net/faraday: Replace use_nc_si with use_ncsiGavin Shan1-7/+7
The patch replaces variable name "use_nc_si" with "use_ncsi". No function changed. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
2015-10-06net/ncsi: Netlink supportGavin Shan6-1/+1105
This adds netlink support so that userland can retrieve the NCSI topology on the specified interface. Also, more netlink commands are introduced to retrieve information from the active channel or configure the active channel with provided options. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
2015-10-06net/ncsi: Manage NCSI deviceGavin Shan4-3/+584
There are multiple packages and channels connecting to NCSI enabled interface. The available packages and channels are probed with NCSI packets when NCSI device is started. Among the available packages and channels, only one channel should be selected to be active to provide service. When the active channel enters to failure state, we need choose another channel as active one to do failover. This implements the state machine to support above tasks. Also, the public interfaces are exposed for NIC driver to manage NCSI device. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
2015-10-06net/ncsi: Packet handlerGavin Shan7-1/+2141
NCSI packet encapsulated in ethernet frame is recognized by the ethernet protocol field (0x88F8). According to NCSI spec, the destination MAC field should be 0xFF's, but the source MAC field could be arbitrary one since channel field in NCSI header indicates the source of the packet. There are 3 types of packets depending on the type field in the NCSI packet header: command, response, Asynchronous Event Notification (AEN). The command packets are sent from NCSI enabled interace to the NCSI package or channel for purpose of information retrival or configuration. The response packets, as responses to the received command packets, originate from NCSI package or channel and terminate at NCSI enabled interface. AEN packets are sent from NCSI channel for asynchronous events that might indicate failure detected on the active channel. This implements the functions to handle NCSI packets. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
2015-10-06net/ncsi: Resource managementGavin Shan8-0/+758
According to NCSI spec (DSP0222), the NCSI enabled interface can connected to multiple packages simultaneously, up to 8 packages. Each package includes multiple channels, up to 32 channels. At one moment, one channel is enabled to provide service to the NCSI enabled interface. Besides, each channel comprises capabilities, modes, filters, version and statistics etc. All of them are resources to NCSI protocol stack. At the meanwhile, the NCSI device seen from NIC driver is represented by "struct ncsi_dev", which is expected to populated and started by NIC driver before the NIC can work. All possible NCSI packages and NCSI channels connected to the NCSI interface are tracked from the NCSI device. Also, the NCSI device recognizes active channel that is currently providing service to NCSI enabled interface. Also, the NCSI requests (pairs of command and response) are embedded in NCSI device. This introduces the data structs to represents the NCSI resources mentioned as above. Also, functions used by NCSI stack internally are implemented. Besides, this introduces kernel config option CONFIG_NET_NCSI to enable NCSI stack. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
2015-10-06bt/ipmi: Add Aspeed BT IPMI host driverAlistair Popple4-0/+396
This patch adds a simple device driver to expose the iBT interface on Aspeed chips as a character device (/dev/bt). Signed-off-by: Alistair Popple <alistair@popple.id.au>
2015-10-06gpio: Move aspeed Kconfig entry to correct menuAlistair Popple1-8/+7
The Aspeed GPIO menu entry was added under "PCI GPIO expanders" which depends on PCI which may not be enabled for Aspeed. Move the entry to the "Memory mapped GPIO drivers" which describes the Aspeed GPIO driver more correctly. Signed-off-by: Alistair Popple <alistair@popple.id.au>
2015-10-06aspeed: update defconfigJoel Stanley1-2438/+13
Signed-off-by: Joel Stanley <joel@jms.id.au>