[CORE] Add IRQ chaining entry and exit function.

The MXC GPIO driver is base on IRQ chaining, and requires this.
[DRIVERS] Adding MXC GPIO driver.

This driver is required by the i.MX SPI driver.
For now, I tried not to use the generic GPIO driver, as it would increase code
size without being necessary.
This driver cannot be tested yet.