Commit bc77881247ee6f95d7a9ebc499d26b96bae38c9d

Authored by Anatolij Gustschin
Committed by Wolfgang Denk
1 parent 6a2dcaf1ee

ppc4xx: Support for ATI Radeon 9200 card on sequoia

Adds configuration option for ATI Radeon 9200 card
support to sequoia config file. If CONFIG_VIDEO
is enabled, TEXT_BASE should be changed to 0xFFF80000.

Signed-off-by: Anatolij Gustschin <agust@denx.de>

Showing 1 changed file with 25 additions and 1 deletions Side-by-side Diff

include/configs/sequoia.h
... ... @@ -43,8 +43,14 @@
43 43 #define CONFIG_SYS_CLK_FREQ ((in8(CFG_BCSR_BASE + 3) & 0x80) ? \
44 44 33333333 : 33000000)
45 45  
46   -#if 0
47 46 /*
  47 + * Define this if you want support for video console with radeon 9200 pci card
  48 + * Also set TEXT_BASE to 0xFFF80000 in board/amcc/sequoia/config.mk in this case
  49 + */
  50 +#undef CONFIG_VIDEO
  51 +
  52 +#ifdef CONFIG_VIDEO
  53 +/*
48 54 * 44x dcache supported is working now on sequoia, but we don't enable
49 55 * it yet since it needs further testing
50 56 */
51 57  
... ... @@ -58,8 +64,13 @@
58 64 * Base addresses -- Note these are effective addresses where the actual
59 65 * resources get mapped (not physical addresses).
60 66 */
  67 +#ifndef CONFIG_VIDEO
61 68 #define CFG_MONITOR_LEN (384 * 1024) /* Reserve 384 kiB for Monitor */
62 69 #define CFG_MALLOC_LEN (256 * 1024) /* Reserve 256 kiB for malloc() */
  70 +#else
  71 +#define CFG_MONITOR_LEN (512 * 1024) /* Reserve 512 kB for Monitor */
  72 +#define CFG_MALLOC_LEN (1024 * 1024) /* Reserve 1024 kB for malloc() */
  73 +#endif
63 74  
64 75 #define CFG_TLB_FOR_BOOT_FLASH 0x0003
65 76 #define CFG_BOOT_BASE_ADDR 0xf0000000
... ... @@ -570,6 +581,19 @@
570 581 /* pass open firmware flat tree */
571 582 #define CONFIG_OF_LIBFDT 1
572 583 #define CONFIG_OF_BOARD_SETUP 1
  584 +
  585 +#ifdef CONFIG_VIDEO
  586 +#define CONFIG_BIOSEMU /* x86 bios emulator for vga bios */
  587 +#define CONFIG_ATI_RADEON_FB /* use radeon framebuffer driver */
  588 +#define VIDEO_IO_OFFSET 0xe8000000
  589 +#define CFG_ISA_IO_BASE_ADDRESS VIDEO_IO_OFFSET
  590 +#define CONFIG_VIDEO_SW_CURSOR
  591 +#define CONFIG_VIDEO_LOGO
  592 +#define CONFIG_CFB_CONSOLE
  593 +#define CONFIG_SPLASH_SCREEN
  594 +#define CONFIG_VGA_AS_SINGLE_DEVICE
  595 +#define CONFIG_CMD_BMP
  596 +#endif
573 597  
574 598 #endif /* __CONFIG_H */