X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7768cbe4ff6c0bc199b9151ef3591714f2271698..6e0afb85b95602f9e1208c9e64d40264b979d54d:/target/linux/ixp4xx/patches-2.6.28/500-usr8200_support.patch diff --git a/target/linux/ixp4xx/patches-2.6.28/500-usr8200_support.patch b/target/linux/ixp4xx/patches-2.6.28/500-usr8200_support.patch index ef818c7ca..d0175044d 100644 --- a/target/linux/ixp4xx/patches-2.6.28/500-usr8200_support.patch +++ b/target/linux/ixp4xx/patches-2.6.28/500-usr8200_support.patch @@ -116,7 +116,7 @@ +subsys_initcall(usr8200_pci_init); --- /dev/null +++ b/arch/arm/mach-ixp4xx/usr8200-setup.c -@@ -0,0 +1,211 @@ +@@ -0,0 +1,212 @@ +/* + * arch/arm/mach-ixp4xx/usr8200-setup.c + * @@ -285,6 +285,7 @@ +static struct platform_device usr8200_rtc = { + .name = "rtc7301", + .id = 0, ++ .num_resources = 1, + .resource = &usr8200_rtc_resources, +}; + @@ -308,7 +309,7 @@ + usr8200_rtc_resources.end = IXP4XX_EXP_BUS_BASE(2) + 0x01ff; + + *IXP4XX_EXP_CS0 |= IXP4XX_FLASH_WRITABLE; -+ *IXP4XX_EXP_CS2 = IXP4XX_EXP_BUS_SIZE(0) | IXP4XX_EXP_BUS_WR_EN | ++ *IXP4XX_EXP_CS2 = 0x3fff000 | IXP4XX_EXP_BUS_SIZE(0) | IXP4XX_EXP_BUS_WR_EN | + IXP4XX_EXP_BUS_CS_EN | IXP4XX_EXP_BUS_BYTE_EN; + *IXP4XX_GPIO_GPCLKR = 0x01100000; +