mfd: ioc3: Add driver for SGI IOC3 chip
SGI IOC3 chip has integrated ethernet, keyboard and mouse interface. It also supports connecting a SuperIO chip for serial and parallel interfaces. IOC3 is used inside various SGI systemboards and add-on cards with different equipped external interfaces. Support for ethernet and serial interfaces were implemented inside the network driver. This patchset moves out the not network related parts to a new MFD driver, which takes care of card detection, setup of platform devices and interrupt distribution for the subdevices. Serial portion: Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-for-MFD-by: Lee Jones <lee.jones@linaro.org> Network part: Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com> Network part: Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de> Signed-off-by: Paul Burton <paulburton@kernel.org> Cc: James Hogan <jhogan@kernel.org> Cc: David S. Miller <davem@davemloft.net> Cc: Jiri Slaby <jslaby@suse.com> Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: netdev@vger.kernel.org Cc: linux-serial@vger.kernel.org
This commit is contained in:
committed by
Paul Burton
parent
10cf8300ec
commit
0ce5ebd24d
@@ -168,23 +168,3 @@ void hub_rtc_init(nasid_t nasid)
|
||||
LOCAL_HUB_S(PI_RT_PEND_B, 0);
|
||||
}
|
||||
}
|
||||
|
||||
static int __init sgi_ip27_rtc_devinit(void)
|
||||
{
|
||||
struct resource res;
|
||||
|
||||
memset(&res, 0, sizeof(res));
|
||||
res.start = XPHYSADDR(KL_CONFIG_CH_CONS_INFO(master_nasid)->memory_base +
|
||||
IOC3_BYTEBUS_DEV0);
|
||||
res.end = res.start + 32767;
|
||||
res.flags = IORESOURCE_MEM;
|
||||
|
||||
return IS_ERR(platform_device_register_simple("rtc-m48t35", -1,
|
||||
&res, 1));
|
||||
}
|
||||
|
||||
/*
|
||||
* kludge make this a device_initcall after ioc3 resource conflicts
|
||||
* are resolved
|
||||
*/
|
||||
late_initcall(sgi_ip27_rtc_devinit);
|
||||
|
||||
Reference in New Issue
Block a user