Date: Fri, 4 Aug 2006 14:19:02 GMT From: Kevin Lo <kevlo@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 103170 for review Message-ID: <200608041419.k74EJ2di095329@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103170 Change 103170 by kevlo@kevlo_monet on 2006/08/04 14:18:56 Bring in gpio-based i2c interface support. Affected files ... .. //depot/projects/arm/src/sys/arm/conf/AVILA#2 edit .. //depot/projects/arm/src/sys/arm/xscale/ixp425/files.ixp425#4 edit .. //depot/projects/arm/src/sys/arm/xscale/ixp425/ixdp425reg.h#2 edit .. //depot/projects/arm/src/sys/arm/xscale/ixp425/ixp425.c#9 edit .. //depot/projects/arm/src/sys/arm/xscale/ixp425/ixp425_iic.c#1 add .. //depot/projects/arm/src/sys/dev/iicbus/iicbb.c#3 edit Differences ... ==== //depot/projects/arm/src/sys/arm/conf/AVILA#2 (text+ko) ==== @@ -89,6 +89,13 @@ #options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. +# I2C Bus +device iicbus +device iicbb +device iic + +device ixpiic + # Debugging for use in -current options KDB options DDB #Enable the kernel debugger ==== //depot/projects/arm/src/sys/arm/xscale/ixp425/files.ixp425#4 (text+ko) ==== @@ -5,6 +5,7 @@ arm/xscale/ixp425/ixp425_mem.c standard arm/xscale/ixp425/ixp425_space.c standard arm/xscale/ixp425/ixp425_timer.c standard +arm/xscale/ixp425/ixp425_iic.c optional ixpiic arm/xscale/ixp425/ixp425_pci.c optional pci arm/xscale/ixp425/ixp425_pci_asm.S optional pci arm/xscale/ixp425/ixp425_pci_space.c optional pci ==== //depot/projects/arm/src/sys/arm/xscale/ixp425/ixdp425reg.h#2 (text+ko) ==== @@ -43,7 +43,9 @@ #define GPIO_PCI_INTC 9 #define GPIO_PCI_INTD 8 #define GPIO_I2C_SDA 7 +#define GPIO_I2C_SDA_BIT (1U << 7) #define GPIO_I2C_SCL 6 +#define GPIO_I2C_SCL_BIT (1U << 6) /* Interrupt */ #define PCI_INT_A IXP425_INT_GPIO_11 #define PCI_INT_B IXP425_INT_GPIO_10 ==== //depot/projects/arm/src/sys/arm/xscale/ixp425/ixp425.c#9 (text+ko) ==== @@ -228,6 +228,7 @@ device_add_child(dev, "pcib", 0); device_add_child(dev, "ixpclk", 0); + device_add_child(dev, "ixpiic", 0); if (bus_space_map(sc->sc_iot, IXP425_GPIO_HWBASE, IXP425_GPIO_SIZE, 0, &sc->sc_gpio_ioh)) ==== //depot/projects/arm/src/sys/dev/iicbus/iicbb.c#3 (text+ko) ==== @@ -379,6 +379,7 @@ } DRIVER_MODULE(iicbb, bktr, iicbb_driver, iicbb_devclass, 0, 0); +DRIVER_MODULE(iicbb, ixpiic, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, lpbb, iicbb_driver, iicbb_devclass, 0, 0); DRIVER_MODULE(iicbb, viapm, iicbb_driver, iicbb_devclass, 0, 0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608041419.k74EJ2di095329>