summaryrefslogtreecommitdiff
path: root/common/tools
diff options
context:
space:
mode:
authorOlivier Dufour2013-01-09 17:56:57 +0100
committerOlivier Dufour2013-01-18 09:33:18 +0100
commit5af56fa6d64209da97f4e6866b99195df43d37a7 (patch)
tree83d0ee46aece4836608ce8e20eb545d27f838865 /common/tools
parent50574b89d416d5df33dd6174d0e719d761eaf885 (diff)
common/tools/genNVRAM: add MPR520 nvram default configuration, refs #3636
New iomux configuration is added to genNVRAM, without ethernet 2 and with ARM GPIO 4-7.
Diffstat (limited to 'common/tools')
-rw-r--r--common/tools/genNVRAM/genNVRAM.c1
-rw-r--r--common/tools/genNVRAM/iomux_cfg.h22
-rw-r--r--common/tools/genNVRAM/nvram_mpr520_01.conf23
3 files changed, 46 insertions, 0 deletions
diff --git a/common/tools/genNVRAM/genNVRAM.c b/common/tools/genNVRAM/genNVRAM.c
index 7d0814d73d..f8cd3dc692 100644
--- a/common/tools/genNVRAM/genNVRAM.c
+++ b/common/tools/genNVRAM/genNVRAM.c
@@ -251,6 +251,7 @@ static const struct iomux_config_table_t iomux_config_table[] =
{ "mcr510-ddr2_2", iomux_config_mcr510_ddr2_2 },
{ "mcr510-ddr1_1", iomux_config_mcr510_ddr1_1 },
{ "mcr510-ddr1_2", iomux_config_mcr510_ddr1_2 },
+ { "mpr520_1", iomux_config_mpr520_1 },
{ "mcr500-ddr2_1", iomux_config_mcr500_ddr2_1 },
{ "mcr500-ddr2_2", iomux_config_mcr500_ddr2_2 },
NULL
diff --git a/common/tools/genNVRAM/iomux_cfg.h b/common/tools/genNVRAM/iomux_cfg.h
index 2c7f2ec3b6..2fcc3ecb4b 100644
--- a/common/tools/genNVRAM/iomux_cfg.h
+++ b/common/tools/genNVRAM/iomux_cfg.h
@@ -283,6 +283,28 @@ uint32_t iomux_config_mcr510_ddr1_2[] =
};
/*
+ * MPR520 ref design with :
+ * - ETH1 RGMII mode
+ * - Internal AFE
+ * - UART1 = ARM uart1
+ * - UART2 = ARM uart2 without flow control
+ * - ARM GPIO = 1,7
+ * - LEON GPIO = 0,2
+ *
+ * This is the default configuration.
+ */
+uint32_t iomux_config_mpr520_1[] =
+{
+ 0x00000000, 0x0000, 0xFFFF,
+ 0x00000050, 0x1005, 0x1677,
+ 0x00000080, 0x0100, 0x0F00,
+ 0x00000084, 0x0022, 0x00F2,
+ 0x0000003C, 0x0004, 0x0004,
+ 0x00000048, 0x0001, 0x000F,
+ (uint32_t)-1
+};
+
+/*
* MCR500-DDR2 ref design with :
* - ETH1 RGMII mode
* - ETH2 RMII mode
diff --git a/common/tools/genNVRAM/nvram_mpr520_01.conf b/common/tools/genNVRAM/nvram_mpr520_01.conf
new file mode 100644
index 0000000000..789cc617de
--- /dev/null
+++ b/common/tools/genNVRAM/nvram_mpr520_01.conf
@@ -0,0 +1,23 @@
+pkgcfg=0x0000670f
+iomux_config = mpr520_1
+gpiodir=0x0000aa84
+miu_config = h5ps5162gfr-s6c_4l
+forg=0x00000007
+img0off=0x00140000
+imgmaxsize=0x360000
+phy1=0x2
+ethernet1=00:13:D7:17:10:01
+portnb1=1
+name=MPR520
+plc=00:13:D7:17:00:01
+nbimg=1
+dpw=SPIDCOM-MPR520-01
+serial=MPR520-01
+desc=MPR520 reference design
+oem=SPiDCOM
+factory=SPiDCOM
+brddesc=MPR520 reference design
+ssize=64
+brdid=1
+brdnb=1
+pm_cfg=1