diff options
author | Jiri Kosina <jkosina@suse.cz> | 2011-11-13 14:55:35 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-11-13 14:55:53 -0500 |
commit | 2290c0d06d82faee87b1ab2d9d4f7bf81ef64379 (patch) | |
tree | e075e4d5534193f28e6059904f61e5ca03958d3c /arch/cris | |
parent | 4da669a2e3e5bc70b30a0465f3641528681b5f77 (diff) | |
parent | 52e4c2a05256cb83cda12f3c2137ab1533344edb (diff) |
Merge branch 'master' into for-next
Sync with Linus tree to have 157550ff ("mtd: add GPMI-NAND driver
in the config and Makefile") as I have patch depending on that one.
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/arch-v10/drivers/Kconfig | 1 | ||||
-rw-r--r-- | arch/cris/arch-v10/kernel/kgdb.c | 6 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/Kconfig | 1 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/mach-a3/nandflash.c | 2 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/mach-fs/nandflash.c | 2 | ||||
-rw-r--r-- | arch/cris/arch-v32/kernel/kgdb.c | 14 |
6 files changed, 14 insertions, 12 deletions
diff --git a/arch/cris/arch-v10/drivers/Kconfig b/arch/cris/arch-v10/drivers/Kconfig index 0d7221779923..32d90867a984 100644 --- a/arch/cris/arch-v10/drivers/Kconfig +++ b/arch/cris/arch-v10/drivers/Kconfig | |||
@@ -4,6 +4,7 @@ config ETRAX_ETHERNET | |||
4 | bool "Ethernet support" | 4 | bool "Ethernet support" |
5 | depends on ETRAX_ARCH_V10 | 5 | depends on ETRAX_ARCH_V10 |
6 | select NET_ETHERNET | 6 | select NET_ETHERNET |
7 | select NET_CORE | ||
7 | select MII | 8 | select MII |
8 | help | 9 | help |
9 | This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet | 10 | This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet |
diff --git a/arch/cris/arch-v10/kernel/kgdb.c b/arch/cris/arch-v10/kernel/kgdb.c index b9f9c8ce2169..b579dd02e098 100644 --- a/arch/cris/arch-v10/kernel/kgdb.c +++ b/arch/cris/arch-v10/kernel/kgdb.c | |||
@@ -694,7 +694,7 @@ mem2hex(char *buf, unsigned char *mem, int count) | |||
694 | /* Valid mem address. */ | 694 | /* Valid mem address. */ |
695 | for (i = 0; i < count; i++) { | 695 | for (i = 0; i < count; i++) { |
696 | ch = *mem++; | 696 | ch = *mem++; |
697 | buf = pack_hex_byte(buf, ch); | 697 | buf = hex_byte_pack(buf, ch); |
698 | } | 698 | } |
699 | } | 699 | } |
700 | 700 | ||
@@ -868,7 +868,7 @@ stub_is_stopped(int sigval) | |||
868 | /* Send trap type (converted to signal) */ | 868 | /* Send trap type (converted to signal) */ |
869 | 869 | ||
870 | *ptr++ = 'T'; | 870 | *ptr++ = 'T'; |
871 | ptr = pack_hex_byte(ptr, sigval); | 871 | ptr = hex_byte_pack(ptr, sigval); |
872 | 872 | ||
873 | /* Send register contents. We probably only need to send the | 873 | /* Send register contents. We probably only need to send the |
874 | * PC, frame pointer and stack pointer here. Other registers will be | 874 | * PC, frame pointer and stack pointer here. Other registers will be |
@@ -881,7 +881,7 @@ stub_is_stopped(int sigval) | |||
881 | status = read_register (regno, ®_cont); | 881 | status = read_register (regno, ®_cont); |
882 | 882 | ||
883 | if (status == SUCCESS) { | 883 | if (status == SUCCESS) { |
884 | ptr = pack_hex_byte(ptr, regno); | 884 | ptr = hex_byte_pack(ptr, regno); |
885 | *ptr++ = ':'; | 885 | *ptr++ = ':'; |
886 | 886 | ||
887 | ptr = mem2hex(ptr, (unsigned char *)®_cont, | 887 | ptr = mem2hex(ptr, (unsigned char *)®_cont, |
diff --git a/arch/cris/arch-v32/drivers/Kconfig b/arch/cris/arch-v32/drivers/Kconfig index 41a2732e8b9c..e47e9c3401b0 100644 --- a/arch/cris/arch-v32/drivers/Kconfig +++ b/arch/cris/arch-v32/drivers/Kconfig | |||
@@ -4,6 +4,7 @@ config ETRAX_ETHERNET | |||
4 | bool "Ethernet support" | 4 | bool "Ethernet support" |
5 | depends on ETRAX_ARCH_V32 | 5 | depends on ETRAX_ARCH_V32 |
6 | select NET_ETHERNET | 6 | select NET_ETHERNET |
7 | select NET_CORE | ||
7 | select MII | 8 | select MII |
8 | help | 9 | help |
9 | This option enables the ETRAX FS built-in 10/100Mbit Ethernet | 10 | This option enables the ETRAX FS built-in 10/100Mbit Ethernet |
diff --git a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c index f58f2c1c5295..7fb52128ddc9 100644 --- a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c +++ b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c | |||
@@ -163,7 +163,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void) | |||
163 | this->ecc.mode = NAND_ECC_SOFT; | 163 | this->ecc.mode = NAND_ECC_SOFT; |
164 | 164 | ||
165 | /* Enable the following for a flash based bad block table */ | 165 | /* Enable the following for a flash based bad block table */ |
166 | /* this->options = NAND_USE_FLASH_BBT; */ | 166 | /* this->bbt_options = NAND_BBT_USE_FLASH; */ |
167 | 167 | ||
168 | /* Scan to find existence of the device */ | 168 | /* Scan to find existence of the device */ |
169 | if (nand_scan(crisv32_mtd, 1)) { | 169 | if (nand_scan(crisv32_mtd, 1)) { |
diff --git a/arch/cris/arch-v32/drivers/mach-fs/nandflash.c b/arch/cris/arch-v32/drivers/mach-fs/nandflash.c index d5b0cc9f976b..e03238454b0e 100644 --- a/arch/cris/arch-v32/drivers/mach-fs/nandflash.c +++ b/arch/cris/arch-v32/drivers/mach-fs/nandflash.c | |||
@@ -154,7 +154,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void) | |||
154 | this->ecc.mode = NAND_ECC_SOFT; | 154 | this->ecc.mode = NAND_ECC_SOFT; |
155 | 155 | ||
156 | /* Enable the following for a flash based bad block table */ | 156 | /* Enable the following for a flash based bad block table */ |
157 | /* this->options = NAND_USE_FLASH_BBT; */ | 157 | /* this->bbt_options = NAND_BBT_USE_FLASH; */ |
158 | 158 | ||
159 | /* Scan to find existence of the device */ | 159 | /* Scan to find existence of the device */ |
160 | if (nand_scan(crisv32_mtd, 1)) { | 160 | if (nand_scan(crisv32_mtd, 1)) { |
diff --git a/arch/cris/arch-v32/kernel/kgdb.c b/arch/cris/arch-v32/kernel/kgdb.c index c0343c3ea7f8..8c1d35cdf00a 100644 --- a/arch/cris/arch-v32/kernel/kgdb.c +++ b/arch/cris/arch-v32/kernel/kgdb.c | |||
@@ -677,7 +677,7 @@ mem2hex(char *buf, unsigned char *mem, int count) | |||
677 | /* Valid mem address. */ | 677 | /* Valid mem address. */ |
678 | for (i = 0; i < count; i++) { | 678 | for (i = 0; i < count; i++) { |
679 | ch = *mem++; | 679 | ch = *mem++; |
680 | buf = pack_hex_byte(buf, ch); | 680 | buf = hex_byte_pack(buf, ch); |
681 | } | 681 | } |
682 | } | 682 | } |
683 | /* Terminate properly. */ | 683 | /* Terminate properly. */ |
@@ -695,7 +695,7 @@ mem2hex_nbo(char *buf, unsigned char *mem, int count) | |||
695 | mem += count - 1; | 695 | mem += count - 1; |
696 | for (i = 0; i < count; i++) { | 696 | for (i = 0; i < count; i++) { |
697 | ch = *mem--; | 697 | ch = *mem--; |
698 | buf = pack_hex_byte(buf, ch); | 698 | buf = hex_byte_pack(buf, ch); |
699 | } | 699 | } |
700 | 700 | ||
701 | /* Terminate properly. */ | 701 | /* Terminate properly. */ |
@@ -880,7 +880,7 @@ stub_is_stopped(int sigval) | |||
880 | /* Send trap type (converted to signal) */ | 880 | /* Send trap type (converted to signal) */ |
881 | 881 | ||
882 | *ptr++ = 'T'; | 882 | *ptr++ = 'T'; |
883 | ptr = pack_hex_byte(ptr, sigval); | 883 | ptr = hex_byte_pack(ptr, sigval); |
884 | 884 | ||
885 | if (((reg.exs & 0xff00) >> 8) == 0xc) { | 885 | if (((reg.exs & 0xff00) >> 8) == 0xc) { |
886 | 886 | ||
@@ -988,26 +988,26 @@ stub_is_stopped(int sigval) | |||
988 | } | 988 | } |
989 | /* Only send PC, frame and stack pointer. */ | 989 | /* Only send PC, frame and stack pointer. */ |
990 | read_register(PC, ®_cont); | 990 | read_register(PC, ®_cont); |
991 | ptr = pack_hex_byte(ptr, PC); | 991 | ptr = hex_byte_pack(ptr, PC); |
992 | *ptr++ = ':'; | 992 | *ptr++ = ':'; |
993 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[PC]); | 993 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[PC]); |
994 | *ptr++ = ';'; | 994 | *ptr++ = ';'; |
995 | 995 | ||
996 | read_register(R8, ®_cont); | 996 | read_register(R8, ®_cont); |
997 | ptr = pack_hex_byte(ptr, R8); | 997 | ptr = hex_byte_pack(ptr, R8); |
998 | *ptr++ = ':'; | 998 | *ptr++ = ':'; |
999 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[R8]); | 999 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[R8]); |
1000 | *ptr++ = ';'; | 1000 | *ptr++ = ';'; |
1001 | 1001 | ||
1002 | read_register(SP, ®_cont); | 1002 | read_register(SP, ®_cont); |
1003 | ptr = pack_hex_byte(ptr, SP); | 1003 | ptr = hex_byte_pack(ptr, SP); |
1004 | *ptr++ = ':'; | 1004 | *ptr++ = ':'; |
1005 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[SP]); | 1005 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[SP]); |
1006 | *ptr++ = ';'; | 1006 | *ptr++ = ';'; |
1007 | 1007 | ||
1008 | /* Send ERP as well; this will save us an entire register fetch in some cases. */ | 1008 | /* Send ERP as well; this will save us an entire register fetch in some cases. */ |
1009 | read_register(ERP, ®_cont); | 1009 | read_register(ERP, ®_cont); |
1010 | ptr = pack_hex_byte(ptr, ERP); | 1010 | ptr = hex_byte_pack(ptr, ERP); |
1011 | *ptr++ = ':'; | 1011 | *ptr++ = ':'; |
1012 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[ERP]); | 1012 | ptr = mem2hex(ptr, (unsigned char *)®_cont, register_size[ERP]); |
1013 | *ptr++ = ';'; | 1013 | *ptr++ = ';'; |