Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54020
b: refs/heads/master
c: 14f1c3b
h: refs/heads/master
v: v3
  • Loading branch information
Juha Yrjola authored and Russell King committed May 5, 2007
1 parent 72ac3c0 commit f80ca6e
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 119 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 13ea55b04eaafb60cd7df759c8d92566d1f19351
refs/heads/master: 14f1c3bf51b78d916a6aff9c9b5e6689e3e006e7
15 changes: 2 additions & 13 deletions trunk/arch/arm/mach-ns9xxx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,19 @@ if ARCH_NS9XXX
menu "NS9xxx Implementations"

config MACH_CC9P9360DEV
bool "ConnectCore 9P 9360 on an A9M9750 Devboard"
bool "Connect Core 9P 9360 on an A9M9750 Devboard"
select PROCESSOR_NS9360
select BOARD_A9M9750DEV
help
Say Y here if you are using the Digi ConnectCore 9P 9360
Say Y here if you are using the Digi Connect Core 9P 9360
on an A9M9750 Development Board.

config MACH_CC9P9360JS
bool "ConnectCore 9P 9360 on a JSCC9P9360 Devboard"
select PROCESSOR_NS9360
select BOARD_JSCC9P9360
help
Say Y here if you are using the Digi ConnectCore 9P 9360
on an JSCC9P9360 Development Board.

config PROCESSOR_NS9360
bool

config BOARD_A9M9750DEV
bool

config BOARD_JSCC9P9360
bool

endmenu

endif
1 change: 0 additions & 1 deletion trunk/arch/arm/mach-ns9xxx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ obj-y := irq.o time.o generic.o
obj-$(CONFIG_MACH_CC9P9360DEV) += mach-cc9p9360dev.o

obj-$(CONFIG_BOARD_A9M9750DEV) += board-a9m9750dev.o
obj-$(CONFIG_BOARD_JSCC9P9360) += board-jscc9p9360.o
17 changes: 0 additions & 17 deletions trunk/arch/arm/mach-ns9xxx/board-jscc9p9360.c

This file was deleted.

13 changes: 0 additions & 13 deletions trunk/arch/arm/mach-ns9xxx/board-jscc9p9360.h

This file was deleted.

29 changes: 0 additions & 29 deletions trunk/arch/arm/mach-ns9xxx/mach-cc9p9360js.c

This file was deleted.

10 changes: 10 additions & 0 deletions trunk/arch/arm/plat-omap/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,10 @@ static int __init _omap_gpio_init(void)
if (bank->method == METHOD_GPIO_24XX) {
__raw_writel(0x00000000, bank->base + OMAP24XX_GPIO_IRQENABLE1);
__raw_writel(0xffffffff, bank->base + OMAP24XX_GPIO_IRQSTATUS1);
__raw_writew(0x0015, bank->base + OMAP24XX_GPIO_SYSCONFIG);

/* Initialize interface clock ungated, module enabled */
__raw_writel(0, bank->base + OMAP24XX_GPIO_CTRL);

gpio_count = 32;
}
Expand All @@ -1104,6 +1108,12 @@ static int __init _omap_gpio_init(void)
if (cpu_is_omap16xx())
omap_writel(omap_readl(ULPD_CAM_CLK_CTRL) | 0x04, ULPD_CAM_CLK_CTRL);

#ifdef CONFIG_ARCH_OMAP24XX
/* Enable autoidle for the OCP interface */
if (cpu_is_omap24xx())
omap_writel(1 << 0, 0x48019010);
#endif

return 0;
}

Expand Down
2 changes: 0 additions & 2 deletions trunk/include/asm-arm/arch-ns9xxx/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@

#define board_is_a9m9750dev() (machine_is_cc9p9360dev())

#define board_is_jscc9p9360() (machine_is_cc9p9360js())

#endif /* ifndef __ASM_ARCH_BOARD_H */
34 changes: 2 additions & 32 deletions trunk/include/asm-arm/arch-ns9xxx/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,13 @@
#ifndef __ASM_ARCH_CLOCK_H
#define __ASM_ARCH_CLOCK_H

#include <asm/arch-ns9xxx/regs-sys.h>

#define CRYSTAL 29491200 /* Hz */

/* The HRM calls this value f_vco */
static inline u32 ns9xxx_systemclock(void) __attribute__((const));
static inline u32 ns9xxx_systemclock(void)
{
u32 pll = SYS_PLL;

/*
* The system clock should be a multiple of HZ * TIMERCLOCKSELECT (in
* time.c).
*
* The following values are given:
* - TIMERCLOCKSELECT == 2^i for an i in {0 .. 6}
* - CRYSTAL == 29491200 == 2^17 * 3^2 * 5^2
* - ND in {0 .. 31}
* - FS in {0 .. 3}
*
* Assuming the worst, we consider:
* - TIMERCLOCKSELECT == 64
* - ND == 0
* - FS == 3
*
* So HZ should be a divisor of:
* (CRYSTAL * (ND + 1) >> FS) / TIMERCLOCKSELECT
* == (2^17 * 3^2 * 5^2 * 1 >> 3) / 64
* == 2^8 * 3^2 * 5^2
* == 57600
*
* Currently HZ is defined to be 100 for this platform.
*
* Fine.
* This should be a multiple of HZ * TIMERCLOCKSELECT (in time.c)
*/
return CRYSTAL * (REGGET(pll, SYS_PLL, ND) + 1)
>> REGGET(pll, SYS_PLL, FS);
return 353894400;
}

static inline u32 ns9xxx_cpuclock(void) __attribute__((const));
Expand Down
5 changes: 2 additions & 3 deletions trunk/include/asm-arm/arch-ns9xxx/hardware.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@
~(__REGVAL(reg ## _ ## field, value)))) \
| (__REGVAL(reg ## _ ## field, value))))

# define REGGET(var, reg, field) \
((var & (reg ## _ ## field)) / \
((reg ## _ ## field) & (-(reg ## _ ## field))))
# define REGGET(reg, field) \
((reg & (reg ## _ ## field)) / (field & (-field)))

#else

Expand Down
3 changes: 1 addition & 2 deletions trunk/include/asm-arm/arch-ns9xxx/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include <asm/mach-types.h>

#define processor_is_ns9360() (machine_is_cc9p9360dev() \
|| machine_is_cc9p9360js())
#define processor_is_ns9360() (machine_is_cc9p9360dev())

#endif /* ifndef __ASM_ARCH_PROCESSOR_H */
6 changes: 0 additions & 6 deletions trunk/include/asm-arm/arch-ns9xxx/regs-sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@
/* PLL Configuration register */
#define SYS_PLL __REG(0xa0900188)

/* PLL FS status */
#define SYS_PLL_FS __REGBITS(24, 23)

/* PLL ND status */
#define SYS_PLL_ND __REGBITS(20, 16)

/* PLL Configuration register: PLL SW change */
#define SYS_PLL_SWC __REGBIT(15)
#define SYS_PLL_SWC_NO __REGVAL(SYS_PLL_SWC, 0)
Expand Down

0 comments on commit f80ca6e

Please sign in to comment.