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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 5 Apr 2007 10:43:48 -0400
From:	Tony Lindgren <tony@...mide.com>
To:	linux-kernel@...r.kernel.org
Cc:	Kai Svahn <kai.svahn@...ia.com>
Subject: Re: [PATCH 60/90] ARM: OMAP: Merge gpmc changes from N800 tree

* Tony Lindgren <tony@...mide.com> [070404 14:11]:
> From: Kai Svahn <kai.svahn@...ia.com>
> 
> This patch merges gpmc changes from N800 tree.
> 
> Signed-off-by: Kai Svahn <kai.svahn@...ia.com>
> Signed-off-by: Tony Lindgren <tony@...mide.com>
> ---
>  arch/arm/mach-omap2/gpmc.c       |    7 +++++++
>  include/asm-arm/arch-omap/gpmc.h |    1 +
>  2 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
> index a3f31f0..b6b47f2 100644
> --- a/arch/arm/mach-omap2/gpmc.c
> +++ b/arch/arm/mach-omap2/gpmc.c
> @@ -111,6 +111,13 @@ unsigned int gpmc_ns_to_ticks(unsigned int time_ns)
>  	return (time_ns * 1000 + tick_ps - 1) / tick_ps;
>  }
>  
> +unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns)
> +{
> +	unsigned long ticks = gpmc_ns_to_ticks(time_ns);
> +
> +	return ticks * gpmc_get_fclk_period() / 1000;
> +}
> +
>  #ifdef DEBUG
>  static int set_gpmc_timing_reg(int cs, int reg, int st_bit, int end_bit,
>  			       int time, const char *name)
> diff --git a/include/asm-arm/arch-omap/gpmc.h b/include/asm-arm/arch-omap/gpmc.h
> index 434672d..0fe920a 100644
> --- a/include/asm-arm/arch-omap/gpmc.h
> +++ b/include/asm-arm/arch-omap/gpmc.h
> @@ -81,6 +81,7 @@ struct gpmc_timings {
>  };
>  
>  extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns);
> +extern unsigned int gpmc_round_ns_to_ticks(unsigned int time_ns);
>  
>  extern void gpmc_cs_write_reg(int cs, int idx, u32 val);
>  extern u32 gpmc_cs_read_reg(int cs, int idx);

Here's an updated version for gpmc_get_fclk_period() needed in
patch 43/90.

Regards,

Tony

View attachment "0060-ARM-OMAP-Merge-gpmc-changes-from-N800-tree.txt" of type "text/plain" (1672 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ