r520.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) r520.c (7ca85295d8cc280ea79cf6250c47363b7fd92f92)
1/*
2 * Copyright 2008 Advanced Micro Devices, Inc.
3 * Copyright 2008 Red Hat Inc.
4 * Copyright 2009 Jerome Glisse.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation

--- 72 unchanged lines hidden (view full) ---

81 r420_pipes_init(rdev);
82 gb_pipe_select = RREG32(R400_GB_PIPE_SELECT);
83 tmp = RREG32(R300_DST_PIPE_CONFIG);
84 pipe_select_current = (tmp >> 2) & 3;
85 tmp = (1 << pipe_select_current) |
86 (((gb_pipe_select >> 8) & 0xF) << 4);
87 WREG32_PLL(0x000D, tmp);
88 if (r520_mc_wait_for_idle(rdev)) {
1/*
2 * Copyright 2008 Advanced Micro Devices, Inc.
3 * Copyright 2008 Red Hat Inc.
4 * Copyright 2009 Jerome Glisse.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation

--- 72 unchanged lines hidden (view full) ---

81 r420_pipes_init(rdev);
82 gb_pipe_select = RREG32(R400_GB_PIPE_SELECT);
83 tmp = RREG32(R300_DST_PIPE_CONFIG);
84 pipe_select_current = (tmp >> 2) & 3;
85 tmp = (1 << pipe_select_current) |
86 (((gb_pipe_select >> 8) & 0xF) << 4);
87 WREG32_PLL(0x000D, tmp);
88 if (r520_mc_wait_for_idle(rdev)) {
89 printk(KERN_WARNING "Failed to wait MC idle while "
90 "programming pipes. Bad things might happen.\n");
89 pr_warn("Failed to wait MC idle while programming pipes. Bad things might happen.\n");
91 }
92}
93
94static void r520_vram_get_type(struct radeon_device *rdev)
95{
96 uint32_t tmp;
97
98 rdev->mc.vram_width = 128;

--- 234 unchanged lines hidden ---
90 }
91}
92
93static void r520_vram_get_type(struct radeon_device *rdev)
94{
95 uint32_t tmp;
96
97 rdev->mc.vram_width = 128;

--- 234 unchanged lines hidden ---