From owner-p4-projects@FreeBSD.ORG Tue May 26 19:16:50 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id F10AB10656B3; Tue, 26 May 2009 19:16:49 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A98E81065688 for ; Tue, 26 May 2009 19:16:49 +0000 (UTC) (envelope-from syl@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 48D7C8FC1E for ; Tue, 26 May 2009 19:16:49 +0000 (UTC) (envelope-from syl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n4QJGnOq023114 for ; Tue, 26 May 2009 19:16:49 GMT (envelope-from syl@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n4QJGnjj023112 for perforce@freebsd.org; Tue, 26 May 2009 19:16:49 GMT (envelope-from syl@FreeBSD.org) Date: Tue, 26 May 2009 19:16:49 GMT Message-Id: <200905261916.n4QJGnjj023112@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to syl@FreeBSD.org using -f From: Sylvestre Gallon To: Perforce Change Reviews Cc: Subject: PERFORCE change 162799 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2009 19:16:50 -0000 http://perforce.freebsd.org/chv.cgi?CH=162799 Change 162799 by syl@syl_rincewind on 2009/05/26 19:16:00 at91sam926x doesn't have the rm9200 st controller, but has watchdog and pit controllers (Programmable Interrupt Timer instead). This commit imports a driver for the pit and the wdt. It also adds these two drivers to cpu_devs and enables the dbgu and the 3 uarts controllers. Affected files ... .. //depot/projects/soc2009/syl_usb/src/sys/arm/at91/at91_pit.c#1 add .. //depot/projects/soc2009/syl_usb/src/sys/arm/at91/at91_pitreg.h#1 add .. //depot/projects/soc2009/syl_usb/src/sys/arm/at91/at91_wdt.c#1 add .. //depot/projects/soc2009/syl_usb/src/sys/arm/at91/at91_wdtreg.h#1 add .. //depot/projects/soc2009/syl_usb/src/sys/arm/at91/files.at91#4 edit .. //depot/projects/soc2009/syl_usb/src/sys/arm/at91/soc_at91sam9261.c#4 edit Differences ... ==== //depot/projects/soc2009/syl_usb/src/sys/arm/at91/files.at91#4 (text) ==== @@ -4,7 +4,9 @@ arm/at91/at91_machdep.c standard arm/at91/at91.c standard arm/at91/at91_cfata.c optional at91_cfata -arm/at91/at91_st.c standard +arm/at91/at91_st.c optional at91rm9200 +arm/at91/at91_pit.c optional at91sam9261 +arm/at91/at91_wdt.c optional at91sam9261 arm/at91/at91_mci.c optional at91_mci arm/at91/at91_pio.c standard arm/at91/at91_pmc.c standard ==== //depot/projects/soc2009/syl_usb/src/sys/arm/at91/soc_at91sam9261.c#4 (text+ko) ==== @@ -132,6 +132,16 @@ { /* PIO need to be check */ { + "at91_pit", 0, + AT91SAM9261_BASE, AT91SAM9261_PIT_BASE, AT91SAM9261_PIT_SIZE, + AT91SAM9261_IRQ_SYSTEM + }, + { + "at91_wdt", 0, + AT91SAM9261_BASE, AT91SAM9261_WDT_BASE, AT91SAM9261_WDT_SIZE, + AT91SAM9261_IRQ_SYSTEM + }, + { "at91_udp", 0, AT91SAM9261_BASE + AT91SAM9261_UDP_BASE, AT91SAM9261_UDP_SIZE, AT91SAM9261_IRQ_UDP, AT91SAM9261_IRQ_PIOB @@ -141,6 +151,26 @@ AT91SAM9261_OHCI_BASE, AT91SAM9261_OHCI_SIZE, AT91SAM9261_IRQ_UHP }, + { + "uart", 0, + AT91SAM9261_BASE, AT91SAM9261_DBGU_BASE, AT91SAM9261_DBGU_SIZE, + AT91SAM9261_IRQ_SYSTEM + }, + { + "uart", 1, + AT91SAM9261_BASE, AT91SAM9261_USART0_BASE, AT91SAM9261_USART_SIZE, + AT91SAM9261_IRQ_USART0 + }, + { + "uart", 2, + AT91SAM9261_BASE, AT91SAM9261_USART1_BASE, AT91SAM9261_USART_SIZE, + AT91SAM9261_IRQ_USART1 + }, + { + "uart", 3, + AT91SAM9261_BASE, AT91SAM9261_USART2_BASE, AT91SAM9261_USART_SIZE, + AT91SAM9261_IRQ_USART2 + }, { 0, 0, 0, 0, 0 } };