lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 4 Apr 2007 11:44:30 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	Tony Lindgren <tony@...mide.com>
Cc:	linux-kernel@...r.kernel.org,
	David Brownell <dbrownell@...rs.sourceforge.net>
Subject: Re: [PATCH 43/90] ARM: OMAP: TUSB EVM init

On Wed,  4 Apr 2007 14:05:22 -0400 Tony Lindgren wrote:

> From: David Brownell <dbrownell@...rs.sourceforge.net>
> 
> Add init support for the TUSB6010 EVM board, as connected to H4.
> 
> Signed-off-by: David Brownell <dbrownell@...rs.sourceforge.net>
> Signed-off-by: Tony Lindgren <tony@...mide.com>
> ---
>  arch/arm/mach-omap2/usb-tusb6010.c |  333 ++++++++++++++++++++++++++++++++++++
>  1 files changed, 333 insertions(+), 0 deletions(-)

...

externs should be in some header file.


> +extern unsigned long gpmc_get_fclk_period(void);
> +
> +/* tusb driver calls this when it changes the chip's clocking */
> +int tusb6010_platform_retime(unsigned is_refclk)
> +{
> +	static const char	error[] =
> +		KERN_ERR "tusb6010 %s retime error %d\n";
> +
> +	unsigned	fclk_ps = gpmc_get_fclk_period();
> +	unsigned	sysclk_ps;
> +	int		status;
> +
> +	if (!refclk_psec)
> +		return -ENODEV;
> +
> +	sysclk_ps = is_refclk ? refclk_psec : TUSB6010_OSCCLK_60;
> +
> +	status = tusb_set_async_mode(sysclk_ps, fclk_ps);
> +	if (status < 0) {
> +		printk(error, "async", status);
> +		goto done;
> +	}
> +	status = tusb_set_sync_mode(sysclk_ps, fclk_ps);
> +	if (status < 0)
> +		printk(error, "sync", status);
> +done:
> +	return status;
> +}
> +EXPORT_SYMBOL_GPL(tusb6010_platform_retime);

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ