svn commit: r194319 - head/sys/arm/xscale/ixp425

Sam Leffler sam at FreeBSD.org
Wed Jun 17 02:51:17 UTC 2009


Author: sam
Date: Wed Jun 17 02:51:16 2009
New Revision: 194319
URL: http://svn.freebsd.org/changeset/base/194319

Log:
  add ixp4xx_write_feature_bits

Modified:
  head/sys/arm/xscale/ixp425/ixp425.c
  head/sys/arm/xscale/ixp425/ixp425var.h

Modified: head/sys/arm/xscale/ixp425/ixp425.c
==============================================================================
--- head/sys/arm/xscale/ixp425/ixp425.c	Wed Jun 17 02:20:26 2009	(r194318)
+++ head/sys/arm/xscale/ixp425/ixp425.c	Wed Jun 17 02:51:16 2009	(r194319)
@@ -85,6 +85,12 @@ ixp4xx_read_feature_bits(void)
 	return bits;
 }
 
+void
+ixp4xx_write_feature_bits(uint32_t v)
+{
+	IXPREG(IXP425_EXP_VBASE + EXP_FCTRL_OFFSET) = ~v;
+}
+
 struct arm32_dma_range *
 bus_dma_get_range(void)
 {

Modified: head/sys/arm/xscale/ixp425/ixp425var.h
==============================================================================
--- head/sys/arm/xscale/ixp425/ixp425var.h	Wed Jun 17 02:20:26 2009	(r194318)
+++ head/sys/arm/xscale/ixp425/ixp425var.h	Wed Jun 17 02:51:16 2009	(r194319)
@@ -101,6 +101,7 @@ void	ixp425_mem_bs_init(bus_space_tag_t,
 uint32_t ixp425_sdram_size(void);
 uint32_t ixp435_ddram_size(void);
 uint32_t ixp4xx_read_feature_bits(void);
+void	ixp4xx_write_feature_bits(uint32_t);
 
 int	ixp425_md_route_interrupt(device_t, device_t, int);
 void	ixp425_md_attach(device_t);


More information about the svn-src-all mailing list