source: trunk/target/linux/cns3xxx/patches-3.0/002-cns3xxx_wdt.patch @ 27558

Last change on this file since 27558 was 27558, checked in by kaloz, 5 years ago

[cns3xxx/3.0]: use the new upstream l2cache and wdt code, smaller changes, refresh patches

File size: 1.9 KB
  • arch/arm/Kconfig

    1. Made the connection between CNS3xxx SOCs(ARCH_CNS3xxx) and MPcore watchdog
       since the CNS3xxx SOCs have ARM11 MPcore CPU.
    2. Enable mpcore_watchdog option as module to default configuration at
       arch/arm/configs/cns3420vb_defconfig.
    
    Signed-off-by: Tommy Lin <tommy.lin@caviumnetworks.com>
    
    ---
    arch/arm/Kconfig                     |    1 +
     arch/arm/configs/cns3420vb_defconfig |    2 ++
     arch/arm/mach-cns3xxx/cns3420vb.c    |   22 ++++++++++++++++++++++
     3 files changed, 25 insertions(+), 0 deletions(-)
    
    a b config ARCH_CNS3XXX 
    327327        select ARM_GIC 
    328328        select MIGHT_HAVE_PCI 
    329329        select PCI_DOMAINS if PCI 
     330        select HAVE_ARM_TWD 
    330331        help 
    331332          Support for Cavium Networks CNS3XXX platform. 
    332333 
  • arch/arm/configs/cns3420vb_defconfig

    a b CONFIG_LEGACY_PTY_COUNT=16 
    5353# CONFIG_HW_RANDOM is not set 
    5454# CONFIG_HWMON is not set 
    5555# CONFIG_VGA_CONSOLE is not set 
     56CONFIG_WATCHDOG=y 
     57CONFIG_MPCORE_WATCHDOG=m 
    5658# CONFIG_HID_SUPPORT is not set 
    5759# CONFIG_USB_SUPPORT is not set 
    5860CONFIG_MMC=y 
  • arch/arm/mach-cns3xxx/cns3420vb.c

    a b static struct platform_device cns3xxx_us 
    159159        }, 
    160160}; 
    161161 
     162/* Watchdog */ 
     163static struct resource cns3xxx_watchdog_resources[] = { 
     164        [0] = { 
     165                .start = CNS3XXX_TC11MP_TWD_BASE, 
     166                .end   = CNS3XXX_TC11MP_TWD_BASE + PAGE_SIZE - 1, 
     167                .flags = IORESOURCE_MEM, 
     168        }, 
     169        [1] = { 
     170                .start = IRQ_LOCALWDOG, 
     171                .end   = IRQ_LOCALWDOG, 
     172                .flags = IORESOURCE_IRQ, 
     173        } 
     174}; 
     175 
     176static struct platform_device cns3xxx_watchdog_device = { 
     177        .name           = "mpcore_wdt", 
     178        .id             = -1, 
     179        .num_resources  = ARRAY_SIZE(cns3xxx_watchdog_resources), 
     180        .resource       = cns3xxx_watchdog_resources, 
     181}; 
     182 
    162183/* 
    163184 * Initialization 
    164185 */ 
    165186static struct platform_device *cns3420_pdevs[] __initdata = { 
     187        &cns3xxx_watchdog_device, 
    166188        &cns3420_nor_pdev, 
    167189        &cns3xxx_usb_ehci_device, 
    168190        &cns3xxx_usb_ohci_device, 
Note: See TracBrowser for help on using the repository browser.