Hello,

this patch series makes the RTC on the Routerstation Work without 
(hopefully) breaking any other targets. The RTC is connected to the SPI 
bus and shares a CS line with the flash.

The first two patches fix two small errors in the ar71xx spi driver, 
while the third one creates the ability to override the mode bits of it
(needed as the RTC driver needs CS active high).

The fourth creates a work around the problem that linux' SPI framework
does not allow more than one device per CS line, so I created an extra
get_ioc_base that treats CS1 active high as CS0 active high. That way
the RTC is seen by linux on CS1.

The last one adds the required symbols to the kernel configuration for
ar71xx. This is perhaps the most controversial, as this affects other
ar71xx based devices. Although nothing major, just a warning from the
kernel that it could not set the time as it didn't find the rtc.

I wonder if it were best to give the Routerstation Pro its own profile
with configuration to not clobber the default images with the unneeded
RTC stuff.

Regards,
Jonas Gorski

Jonas (5):
  SPI: Also store ioc_base on inactive.
  SPI: Make sure that there always is a falling edge.
  SPI: Allow override of mode_bits.
  Add support for the RTC on the Routerstation Pro.
  Add RTC support and the driver needed for the Routerstation Pro.

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to