From: Greg KH <greg@kroah.com>
To: Aneesh V <aneesh@ti.com>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org
Subject: Re: [PATCH v2 1/7] misc: ddr: add LPDDR2 data from JESD209-2
Date: Thu, 15 Mar 2012 12:02:38 -0700 [thread overview]
Message-ID: <20120315190238.GD11142@kroah.com> (raw)
In-Reply-To: <1331835457-5390-2-git-send-email-aneesh@ti.com>
On Thu, Mar 15, 2012 at 11:47:31PM +0530, Aneesh V wrote:
> add LPDDR2 data from the JEDEC spec JESD209-2. The data
> includes:
>
> 1. Addressing information for LPDDR2 memories of different
> densities and types(S2/S4)
> 2. AC timing data.
>
> This data will useful for memory controller device drivers
Right now, only one driver, right?
> +#ifndef __ASSEMBLY__
Why is this needed?
> +/* Structure for DDR addressing info from the JEDEC spec */
> +struct lpddr2_addressing {
> + u32 num_banks;
> + u32 tREFI_ns;
> + u32 tRFCab_ps;
> +};
Do these structures cross the user/kernel boundry somehow? If so,
please use the proper kernel types for this.
> --- a/lib/Makefile
> +++ b/lib/Makefile
> @@ -123,6 +123,9 @@ obj-$(CONFIG_SIGNATURE) += digsig.o
>
> obj-$(CONFIG_CLZ_TAB) += clz_tab.o
>
> +obj-$(CONFIG_DDR) += jedec_ddr_data.o
> +
> +
Why the extra line?
> hostprogs-y := gen_crc32table
> clean-files := crc32table.h
>
> diff --git a/lib/jedec_ddr_data.c b/lib/jedec_ddr_data.c
> new file mode 100644
> index 0000000..fc223d6
> --- /dev/null
> +++ b/lib/jedec_ddr_data.c
> @@ -0,0 +1,135 @@
> +/*
> + * DDR addressing details and AC timing parameters from JEDEC specs
> + *
> + * Copyright (C) 2012 Texas Instruments, Inc.
> + *
> + * Aneesh V <aneesh@ti.com>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include <misc/jedec_ddr.h>
> +#include <linux/module.h>
> +
> +/* LPDDR2 addressing details from JESD209-2 section 2.4 */
> +const struct lpddr2_addressing
> + lpddr2_jedec_addressing_table[NUM_DDR_ADDR_TABLE_ENTRIES] = {
> + {B4, T_REFI_15_6, T_RFC_90}, /* 64M */
> + {B4, T_REFI_15_6, T_RFC_90}, /* 128M */
> + {B4, T_REFI_7_8, T_RFC_90}, /* 256M */
> + {B4, T_REFI_7_8, T_RFC_90}, /* 512M */
> + {B8, T_REFI_7_8, T_RFC_130}, /* 1GS4 */
> + {B8, T_REFI_3_9, T_RFC_130}, /* 2GS4 */
> + {B8, T_REFI_3_9, T_RFC_130}, /* 4G */
> + {B8, T_REFI_3_9, T_RFC_210}, /* 8G */
> + {B4, T_REFI_7_8, T_RFC_130}, /* 1GS2 */
> + {B4, T_REFI_3_9, T_RFC_130}, /* 2GS2 */
> +};
> +EXPORT_SYMBOL(lpddr2_jedec_addressing_table);
EXPORT_SYMBOL_GPL for these and the others?
thanks,
greg k-h
next prev parent reply other threads:[~2012-03-15 19:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-15 18:17 [PATCH v2 0/7] Add TI EMIF SDRAM controller driver Aneesh V
2012-03-15 18:17 ` [PATCH v2 1/7] misc: ddr: add LPDDR2 data from JESD209-2 Aneesh V
2012-03-15 19:02 ` Greg KH [this message]
2012-03-15 19:56 ` Aneesh V
2012-03-16 20:19 ` [PATCH v3] " Aneesh V
2012-03-16 20:50 ` [PATCH v4] " Aneesh V
2012-03-16 21:43 ` Greg KH
2012-03-16 21:50 ` Aneesh V
2012-03-16 20:58 ` [PATCH v2 1/7] " Aneesh V
2012-03-16 21:33 ` Greg KH
2012-03-16 21:53 ` Aneesh V
2012-03-15 18:17 ` [PATCH v2 2/7] misc: emif: add register definitions for EMIF Aneesh V
2012-03-15 18:17 ` [PATCH v2 3/7] misc: emif: add basic infrastructure for EMIF driver Aneesh V
2012-03-15 18:17 ` [PATCH v2 4/7] misc: emif: handle frequency and voltage change events Aneesh V
2012-03-15 18:17 ` [PATCH v2 5/7] misc: emif: add interrupt and temperature handling Aneesh V
2012-03-15 18:17 ` [PATCH v2 6/7] misc: emif: add one-time settings Aneesh V
2012-03-15 18:17 ` [PATCH v2 7/7] misc: emif: add debugfs entries for emif Aneesh V
2012-03-15 19:04 ` [PATCH v2 0/7] Add TI EMIF SDRAM controller driver Greg KH
2012-03-15 20:01 ` Aneesh V
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120315190238.GD11142@kroah.com \
--to=greg@kroah.com \
--cc=aneesh@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox