mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[adm8668] clean up mach-adm8668 includes
This patch cleans up the include directory, as they were from vendors 2.4 GPL source. Now only what's used is there. Signed-off-by: Scott Nicholas <scott.nicholas@scottn.us> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25175 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -85,9 +85,9 @@ static void adm8668_restart(char *cmd)
|
||||
int i;
|
||||
|
||||
/* stop eth0 and eth1 */
|
||||
ADM8668_LAN_REG(NETCSR6) = BIT_1|BIT_13;
|
||||
ADM8668_LAN_REG(NETCSR6) = (1 << 13) | (1 << 1);
|
||||
ADM8668_LAN_REG(NETCSR7) = 0;
|
||||
ADM8668_WAN_REG(NETCSR6) = BIT_1|BIT_13;
|
||||
ADM8668_WAN_REG(NETCSR6) = (1 << 13) | (1 << 1);
|
||||
ADM8668_WAN_REG(NETCSR7) = 0;
|
||||
|
||||
/* reset PHY */
|
||||
@@ -105,7 +105,7 @@ static void adm8668_restart(char *cmd)
|
||||
/* the real deal */
|
||||
for (i = 0; i < 1000; i++)
|
||||
;
|
||||
ADM8668_CONFIG_REG(ADM8668_CR1) = BIT_0;
|
||||
ADM8668_CONFIG_REG(ADM8668_CR1) = 1;
|
||||
}
|
||||
|
||||
int __devinit adm8668_devs_register(void)
|
||||
|
||||
@@ -96,7 +96,7 @@ void __init prom_setup_cmdline(void)
|
||||
prom_argv[i] = (char *)KSEG0ADDR(prom_argv[i]);
|
||||
|
||||
/* default bootargs has "console=/dev/ttyS0" yet console won't
|
||||
* show up at all if you do this ... */
|
||||
* show up at all if you include the '/dev/' nowadays ... */
|
||||
if (match_tag(prom_argv[i], "console=/dev/")) {
|
||||
char *ptr = prom_argv[i] + strlen("console=/dev/");
|
||||
|
||||
@@ -128,7 +128,6 @@ void __init prom_init(void)
|
||||
|
||||
memsize = bd->bi_memsize;
|
||||
printk("Board info:\n");
|
||||
printk(" Board ID: %#lx\n", bd->bi_arch_number);
|
||||
printk(" RAM size: %d MB\n", (int)memsize/(1024*1024));
|
||||
printk(" NOR start: %#lx\n", bd->bi_flashstart);
|
||||
printk(" NOR size: %#lx\n", bd->bi_flashsize);
|
||||
|
||||
Reference in New Issue
Block a user