register sdram devices correctly
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
86ef24563b
commit
6872d79b73
|
@ -62,12 +62,16 @@ static struct device_d nand_dev = {
|
|||
.platform_data = &nand_pdata,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data sram_pdata = {
|
||||
.name = "sram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0x20000000,
|
||||
.size = 64 * 1024 * 1024,
|
||||
.platform_data = &sram_pdata,
|
||||
};
|
||||
|
||||
static struct at91sam_ether_platform_data macb_pdata = {
|
||||
|
|
|
@ -50,12 +50,16 @@ struct device_d cfi_dev = {
|
|||
.platform_data = &cfi_info,
|
||||
};
|
||||
|
||||
struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0x20000000,
|
||||
.size = 32 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
static struct device_d at91_ath_dev = {
|
||||
|
|
|
@ -46,12 +46,16 @@ static struct device_d cfi_dev = {
|
|||
.size = 64 * 1024 * 1024,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0x80000000,
|
||||
.size = 128 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
static struct fec_platform_data fec_info = {
|
||||
|
|
|
@ -44,12 +44,16 @@ static struct device_d cfi_dev = {
|
|||
.size = 32 * 1024 * 1024,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0xc0000000,
|
||||
.size = 64 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
struct imx_nand_platform_data nand_info = {
|
||||
|
|
|
@ -41,12 +41,16 @@ static struct device_d cfi_dev = {
|
|||
.size = 32 * 1024 * 1024,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0xa0000000,
|
||||
.size = 128 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
static struct fec_platform_data fec_info = {
|
||||
|
|
|
@ -12,12 +12,16 @@ static struct device_d cfi_dev = {
|
|||
.size = 32 * 1024 * 1024,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0x0,
|
||||
.size = 128 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
static struct device_d smc911x_dev = {
|
||||
|
|
|
@ -95,12 +95,16 @@ static struct device_d network_dev1 = {
|
|||
/*
|
||||
* 128MiB of SDRAM, data width is 32 bit
|
||||
*/
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = CFG_SDRAM_ADDRESS,
|
||||
.size = CFG_SDRAM_SIZE,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
static int mcfv4e_devices_init(void)
|
||||
|
|
|
@ -35,12 +35,16 @@
|
|||
#include <linux/mtd/nand.h>
|
||||
#include <asm/arch/ether.h>
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0x20000000,
|
||||
.size = 128 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
static struct device_d cfi_dev = {
|
||||
|
|
|
@ -39,12 +39,16 @@ static struct device_d cfi_dev = {
|
|||
.size = 32 * 1024 * 1024,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0x80000000,
|
||||
.size = 64 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
struct netx_eth_platform_data eth0_data = {
|
||||
|
|
|
@ -236,12 +236,16 @@ static int beagle_console_init(void)
|
|||
console_initcall(beagle_console_init);
|
||||
#endif /* CONFIG_DRIVER_SERIAL_NS16550 */
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data sram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
.map_base = 0x80000000,
|
||||
.size = 128 * 1024 * 1024,
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0x80000000,
|
||||
.size = 128 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
#ifndef CONFIG_CMD_MEMORY
|
||||
|
|
|
@ -634,12 +634,17 @@ static int sdp3430_flash_init(void)
|
|||
#endif
|
||||
return 0;
|
||||
}
|
||||
struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0x80000000,
|
||||
.size = 128 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
/*------------------------- RAM Devices -------------------------------------*/
|
||||
|
|
|
@ -50,17 +50,16 @@ struct device_d cfi_dev = {
|
|||
.size = 16 * 1024 * 1024,
|
||||
};
|
||||
|
||||
struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
|
||||
.map_base = 0x0,
|
||||
.size = 64 * 1024 * 1024,
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
struct device_d scratch_dev = {
|
||||
.name = "ram",
|
||||
.id = "scratch0",
|
||||
struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0x0,
|
||||
.size = 64 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
static struct mpc5xxx_fec_platform_data fec_info = {
|
||||
|
@ -74,18 +73,12 @@ struct device_d eth_dev = {
|
|||
.platform_data = &fec_info,
|
||||
};
|
||||
|
||||
#define SCRATCHMEM_SIZE (1024 * 1024 * 4)
|
||||
|
||||
static int devices_init (void)
|
||||
{
|
||||
register_device(&cfi_dev);
|
||||
register_device(&sdram_dev);
|
||||
register_device(ð_dev);
|
||||
|
||||
scratch_dev.map_base = (unsigned long)sbrk_no_zero(SCRATCHMEM_SIZE);
|
||||
scratch_dev.size = SCRATCHMEM_SIZE;
|
||||
register_device(&scratch_dev);
|
||||
|
||||
devfs_add_partition("nor0", 0x00f00000, 0x40000, PARTITION_FIXED, "self");
|
||||
devfs_add_partition("nor0", 0x00f60000, 0x20000, PARTITION_FIXED, "env");
|
||||
|
||||
|
|
|
@ -46,17 +46,28 @@ static struct device_d cfi_dev = {
|
|||
.size = 32 * 1024 * 1024,
|
||||
};
|
||||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.name = "mem",
|
||||
.map_base = 0xa0000000,
|
||||
.size = 128 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
static struct memory_platform_data sram_pdata = {
|
||||
.name = "sram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sram_dev = {
|
||||
.name = "ram",
|
||||
.id = "sram0",
|
||||
.name = "mem",
|
||||
.map_base = 0xc8000000,
|
||||
.size = 512 * 1024, /* Can be up to 2MiB */
|
||||
.platform_data = &sram_pdata,
|
||||
};
|
||||
|
||||
static struct fec_platform_data fec_info = {
|
||||
|
|
|
@ -66,12 +66,16 @@ static struct device_d fec_dev = {
|
|||
.platform_data = &fec_info,
|
||||
};
|
||||
|
||||
static struct device_d sdram0_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram0_dev = {
|
||||
.name = "mem",
|
||||
.map_base = IMX_SDRAM_CS0,
|
||||
.size = 128 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
struct imx_nand_platform_data nand_info = {
|
||||
|
|
|
@ -38,12 +38,16 @@
|
|||
#include <asm/arch/imx-pll.h>
|
||||
#include <gpio.h>
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0xa0000000,
|
||||
.size = 128 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
static struct fec_platform_data fec_info = {
|
||||
|
|
|
@ -79,13 +79,17 @@ static struct device_d network_dev1 =
|
|||
/*
|
||||
* 128MiB of SDRAM, data width is 32 bit
|
||||
*/
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev =
|
||||
{
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
|
||||
.name = "mem",
|
||||
.map_base = CFG_SDRAM_ADDRESS,
|
||||
.size = CFG_SDRAM_SIZE,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
static int mcfv4e_devices_init(void)
|
||||
|
|
|
@ -35,12 +35,16 @@
|
|||
#include <linux/mtd/nand.h>
|
||||
#include <asm/arch/ether.h>
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "ram",
|
||||
.id = "ram0",
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
.map_base = 0x20000000,
|
||||
.size = 64 * 1024 * 1024,
|
||||
.platform_data = &ram_pdata,
|
||||
};
|
||||
|
||||
static struct device_d cfi_dev = {
|
||||
|
|
|
@ -47,7 +47,6 @@ static struct memory_platform_data sdram_pdata = {
|
|||
|
||||
static struct device_d sdram_dev = {
|
||||
.name = "mem",
|
||||
|
||||
.map_base = 0x08000000,
|
||||
.size = 16 * 1024 * 1024,
|
||||
.platform_data = &sdram_pdata,
|
||||
|
|
Loading…
Reference in New Issue